Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp603241ybz; Fri, 24 Apr 2020 06:13:51 -0700 (PDT) X-Google-Smtp-Source: APiQypIazI3uOCK5gBsMlVwr9us/k1U40Y0oATaoNbeQW+UY3Ug1dYAyxtM7A23x63JdiFjjeMA8 X-Received: by 2002:a17:906:4e8a:: with SMTP id v10mr6768854eju.63.1587734031654; Fri, 24 Apr 2020 06:13:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587734031; cv=none; d=google.com; s=arc-20160816; b=z7PWVmXjJ7qZrKKqRIImmvtMpM4tcXDW/dH8faZybCtXOsC9gh7LLzmYG81l2/Zig3 n+gAcOmfFS4XnF35Ub4A/fxu0xNCtN1UpKe0mCxbLZzL3uQFuL/5d7KtB6Yx8MXBsYR4 HdZnQXUeXuUv7bR7purQWR1dabP6qEGVl/uxacHbN3eXoPc7to2vdSvS2xFWjC8zgKmA MnewZNp8/65m62HndfnM20hOWIZ34P/zZPpoKJndaHMCExGHxNlDUfvVvETMqTRFjTKX uNpRHQqYNwCtPB1ndnPi4zq08+Cb3PlVZ8l+i+iGUAi5QuYUA4LWL3yhTbSjZRXK8bju 7O1g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:to:subject:dkim-signature; bh=Gx9hNKg0l/txCpQUT0mCibQINePXOppVz6cuR/nn8AA=; b=Y9d3FJhQwTITCfEjCvMztB8wwMdUjlAZ0ch6cN8W6tw262qfelJX/lhNO3H5W7TlE8 ruhR1zV6KsnMAGP0g1w58vKm7tyuSSQc0iaWVximw1j9cq6oJ0SNL1Rlvg6maQeOGiww 8ffqKVPvArXBtobAdmx5jEqD5CsI1HPGrz6CBBdsE2OaCsPMUOU24kiy8yMi2NdStIcI PdgesXP91lTT3WDhrunUw/a6TOKvitF2XoGHErWLliiGYYWT51sDtq3Pnn3Wv+PUF/Sz XS4zPwmOxzumwQ5qfU8LibpJ3cBmrkVfVm7EbO+T3yX9x+BAJ2MXFLAbUGivhvrkDofD q2rA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@cumulusnetworks.com header.s=google header.b=a5yL4+q4; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=cumulusnetworks.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id n12si3527182eds.584.2020.04.24.06.13.26; Fri, 24 Apr 2020 06:13:51 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@cumulusnetworks.com header.s=google header.b=a5yL4+q4; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=cumulusnetworks.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728199AbgDXNLX (ORCPT + 99 others); Fri, 24 Apr 2020 09:11:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58406 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726698AbgDXNLW (ORCPT ); Fri, 24 Apr 2020 09:11:22 -0400 Received: from mail-lj1-x244.google.com (mail-lj1-x244.google.com [IPv6:2a00:1450:4864:20::244]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5EAF4C09B045 for ; Fri, 24 Apr 2020 06:11:22 -0700 (PDT) Received: by mail-lj1-x244.google.com with SMTP id y4so9885697ljn.7 for ; Fri, 24 Apr 2020 06:11:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cumulusnetworks.com; s=google; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-language:content-transfer-encoding; bh=Gx9hNKg0l/txCpQUT0mCibQINePXOppVz6cuR/nn8AA=; b=a5yL4+q452l7JxoNgJo2bhKexP37/cRH1AQbPNfIZSiGptvZXs8q+gLLzv+J8bCwgP wUe0NXRCO+V7B6dinuZT8ts9HB26TQv6R+ai4l3w+IiZ9kBnKW9TtG0LY5VjJh+VlJDE Pz8EUD4+EsG1qkecWUklJ2Ysmurt3CyRnGygE= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=Gx9hNKg0l/txCpQUT0mCibQINePXOppVz6cuR/nn8AA=; b=SImdgfCD4cOxV7mlRY+bpSeiRjRkgo3R+DFEgKak+ijp9JKi27ZsCxzbaghD60SBdF 4wFzHLoo3LPsOyK7KaP1j1k3hQ1kn/N80j9ElFSDJJ/CbXuH+kViegCMQ+Q9gDN+La6l o8lf6ql7ea+j7HNc2bezngQfilDEduxY3aK5KzI/zCLKuXsaKZ0Xz6Oh0R4zrdPGGEHe GVLsIfAKI2cdcbItEuxVmgZ7iDylKZ5sdisxTeIatHWhTerKbredZdqD+fxG0pdgxYL7 qtThjuq9aH72AcSqvsDFQz6u2A9tHJmtpBM3jGVrheoCNUUeBtDNsYuXqN0RMiSeKO3u 3X3g== X-Gm-Message-State: AGi0PuYlta1r4PTPFjtVygKt3KLoeukUF54fSAatuUJtBJmbz6mufjM6 zwejI8n9uraSbuqLTW2HJJ1sWg== X-Received: by 2002:a2e:9118:: with SMTP id m24mr5951942ljg.172.1587733880848; Fri, 24 Apr 2020 06:11:20 -0700 (PDT) Received: from [192.168.0.109] (84-238-136-197.ip.btc-net.bg. [84.238.136.197]) by smtp.gmail.com with ESMTPSA id x21sm4180540ljm.74.2020.04.24.06.11.18 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 24 Apr 2020 06:11:19 -0700 (PDT) Subject: Re: [PATCH net-next v3 01/11] bridge: uapi: mrp: Add mrp attributes. To: Horatiu Vultur , davem@davemloft.net, jiri@resnulli.us, ivecera@redhat.com, kuba@kernel.org, roopa@cumulusnetworks.com, olteanv@gmail.com, andrew@lunn.ch, UNGLinuxDriver@microchip.com, linux-kernel@vger.kernel.org, netdev@vger.kernel.org, bridge@lists.linux-foundation.org References: <20200422161833.1123-1-horatiu.vultur@microchip.com> <20200422161833.1123-2-horatiu.vultur@microchip.com> From: Nikolay Aleksandrov Message-ID: <2969c2e1-2ed4-87fd-7053-f70a3f923567@cumulusnetworks.com> Date: Fri, 24 Apr 2020 16:11:16 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.6.0 MIME-Version: 1.0 In-Reply-To: <20200422161833.1123-2-horatiu.vultur@microchip.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 22/04/2020 19:18, Horatiu Vultur wrote: > Add new nested netlink attribute to configure the MRP. These attributes are used > by the userspace to add/delete/configure MRP instances and by the kernel to > notify the userspace when the MRP ring gets open/closed. MRP nested attribute > has the following attributes: > > IFLA_BRIDGE_MRP_INSTANCE - the parameter type is br_mrp_instance which contains > the instance id, and the ifindex of the two ports. The ports can't be part of > multiple instances. This is used to create/delete MRP instances. > > IFLA_BRIDGE_MRP_PORT_STATE - the parameter type is u32. Which can be forwarding, > blocking or disabled. > > IFLA_BRIDGE_MRP_PORT_ROLE - the parameter type is br_mrp_port_role which > contains the instance id and the role. The role can be primary or secondary. > > IFLA_BRIDGE_MRP_RING_STATE - the parameter type is br_mrp_ring_state which > contains the instance id and the state. The state can be open or closed. > > IFLA_BRIDGE_MRP_RING_ROLE - the parameter type is br_mrp_ring_role which > contains the instance id and the ring role. The role can be MRM or MRC. > > IFLA_BRIDGE_MRP_START_TEST - the parameter type is br_mrp_start_test which > contains the instance id, the interval at which to send the MRP_Test frames, > how many test frames can be missed before declaring the ring open and the > period which represent for how long to send the test frames. > > Also add the file include/uapi/linux/mrp_bridge.h which defines all the types > used by MRP that are also needed by the userpace. > > Signed-off-by: Horatiu Vultur > --- > include/uapi/linux/if_bridge.h | 42 +++++++++++++++++ > include/uapi/linux/if_ether.h | 1 + > include/uapi/linux/mrp_bridge.h | 84 +++++++++++++++++++++++++++++++++ > 3 files changed, 127 insertions(+) > create mode 100644 include/uapi/linux/mrp_bridge.h > Reviewed-by: Nikolay Aleksandrov