Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp1908120ybl; Sat, 25 Jan 2020 11:32:50 -0800 (PST) X-Google-Smtp-Source: APXvYqwd9FObf8EGNemy/49M4CevHfkzdxBPnibVPATY9ForirastvrNQNv8yYBYZ2hQBIc6Y25f X-Received: by 2002:a05:6830:18ce:: with SMTP id v14mr7017790ote.36.1579980770463; Sat, 25 Jan 2020 11:32:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1579980770; cv=none; d=google.com; s=arc-20160816; b=DClVtYM9kQo7Lx/N1p1dvHpHKDoJGyHQe6QdzwYHZMLirNvfnenzoB9W7tO7L/Owzy JkrFUcQtsjYqsSQZZ1Il8xQ6DU3gIP92weF/F758f0muewfYPUFGW4j4FVDG+Q1LivNV 7TQVm9t99nGf6CTFK8yWEIWn+JpVf8AMsoB/5L2JI/vUk06vHHiJMLc1zznViaY9V+5n R2mBMGNC/65ChIFVbFPOagX0bhEbySVGtI7Yc9BbnX6zzN8E5ZvJT1h94HeB/LHFQ53W 0Fy5LbUykMRBsh3qi67hz/GKPB8ZyYvs5PmRrrC+xnSTaqFDdEzlldLrl1XzpPccEfoo 5Stw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :ironport-sdr; bh=Lbb0ES20uM0FX4PPp7PDolbsLomzYKq40n/tyhPmQHw=; b=rF+IP3Y0yYqI9dMtr3VLeREZeZKYrXqpyvWjWTumnk5hyGqiTylizJTM1Q+ztbOAht l2fVnEU6ygrVQP4ulvSStTgU0da2k6r3E5tkGK/FdsFJohLbncpuG0/7l/aqcZTKSKTr 2YgqxlwP4KlIcYx6KgM8iMcu2K6TbrM3TvW/tToNcaYZ5BWWIKXkicGdYAj2tv3ywll/ +OoIbSog7E9VBwA/tdl5XoQfvR6VsDlYtbYKxZBNuU0XGPTvvPFSz0cCwfT/OrdsB/RM pD9uaNvYLh7wST4qrix2+PL/bQxxvu5NO366DbWVAmAOA1zHGTUDmKXi0+wNa+32CGCy xW4g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=microchip.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n7si4667720otk.277.2020.01.25.11.32.24; Sat, 25 Jan 2020 11:32:50 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=microchip.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727285AbgAYT3A (ORCPT + 99 others); Sat, 25 Jan 2020 14:29:00 -0500 Received: from esa5.microchip.iphmx.com ([216.71.150.166]:58892 "EHLO esa5.microchip.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726448AbgAYT27 (ORCPT ); Sat, 25 Jan 2020 14:28:59 -0500 Received-SPF: Pass (esa5.microchip.iphmx.com: domain of Allan.Nielsen@microchip.com designates 198.175.253.82 as permitted sender) identity=mailfrom; client-ip=198.175.253.82; receiver=esa5.microchip.iphmx.com; envelope-from="Allan.Nielsen@microchip.com"; x-sender="Allan.Nielsen@microchip.com"; x-conformance=spf_only; x-record-type="v=spf1"; x-record-text="v=spf1 mx a:ushub1.microchip.com a:smtpout.microchip.com -exists:%{i}.spf.microchip.iphmx.com include:servers.mcsv.net include:mktomail.com include:spf.protection.outlook.com ~all" Received-SPF: None (esa5.microchip.iphmx.com: no sender authenticity information available from domain of postmaster@email.microchip.com) identity=helo; client-ip=198.175.253.82; receiver=esa5.microchip.iphmx.com; envelope-from="Allan.Nielsen@microchip.com"; x-sender="postmaster@email.microchip.com"; x-conformance=spf_only Authentication-Results: esa5.microchip.iphmx.com; dkim=none (message not signed) header.i=none; spf=Pass smtp.mailfrom=Allan.Nielsen@microchip.com; spf=None smtp.helo=postmaster@email.microchip.com; dmarc=pass (p=none dis=none) d=microchip.com IronPort-SDR: LmzuGqhttF/xfKlz3vN8UCSxVJmlEhupmImJsA7v4AzRU/HKQvQqYBREmoaEzf+fHW7WIsMl7d CJQdgDUnTp8T+WbR1g4LluoF3HR3zCJ7ZS99n26UVEIn0FbZK8bmD1e+kFjofsUYFwG9eFW0fq YSB+PhTunKvzHwEISleY9WBeDY944oDZV4e2oWUl8bJMVeei5KZm5G91QMePUXiW3RM+myr0qX RV2LMM1yghDqn02BzjkdGJHEtTxOxSjdOVElTsrCJjxcqXr1teKz1+mNmt078ke8Q6gaseFvj5 0CY= X-IronPort-AV: E=Sophos;i="5.70,362,1574146800"; d="scan'208";a="63107753" Received: from smtpout.microchip.com (HELO email.microchip.com) ([198.175.253.82]) by esa5.microchip.iphmx.com with ESMTP/TLS/AES256-SHA256; 25 Jan 2020 12:28:58 -0700 Received: from chn-vm-ex03.mchp-main.com (10.10.85.151) by chn-vm-ex02.mchp-main.com (10.10.85.144) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1713.5; Sat, 25 Jan 2020 12:28:53 -0700 Received: from localhost (10.10.85.251) by chn-vm-ex03.mchp-main.com (10.10.85.151) with Microsoft SMTP Server id 15.1.1713.5 via Frontend Transport; Sat, 25 Jan 2020 12:28:55 -0700 Date: Sat, 25 Jan 2020 20:28:54 +0100 From: "Allan W. Nielsen" To: Andrew Lunn CC: Horatiu Vultur , , , , , , , , , , , , Subject: Re: [RFC net-next v3 04/10] net: bridge: mrp: Add generic netlink interface to configure MRP Message-ID: <20200125192854.yi544iu2atvbbwey@lx-anielsen.microsemi.net> References: <20200124161828.12206-1-horatiu.vultur@microchip.com> <20200124161828.12206-5-horatiu.vultur@microchip.com> <20200125153403.GB18311@lunn.ch> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8"; format=flowed Content-Disposition: inline In-Reply-To: <20200125153403.GB18311@lunn.ch> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 25.01.2020 16:34, Andrew Lunn wrote: >EXTERNAL EMAIL: Do not click links or open attachments unless you know the content is safe > >On Fri, Jan 24, 2020 at 05:18:22PM +0100, Horatiu Vultur wrote: >> Implement the generic netlink interface to configure MRP. The implementation >> will do sanity checks over the attributes and then eventually call the MRP >> interface which eventually will call the switchdev API. >What was your thinking between adding a new generic netlink interface, >and extending the current one? > >I've not looked at your user space code yet, but i assume it has to >make use of both? It needs to create the bridge and add the >interfaces. And then it needs to control the MRP state. > >Allan mentioned you might get around to implementing 802.1CB? Would >that be another generic netlink interface, or would you extend the MRP >interface? Horatiu, if you have given this any thoughts, then please share them. Here are my thoughts on 802.1CB: If we look at this with the traditional NIC/host POW, then it would be natural to look at the HSR interface as Vinicius suggested, and expose it as a new interface (HSR0). But when looking at how 802.1CB say a bridge should act, and also what the capabilities of the HW are, then it seem more natural to extend the TC system. In HW it is a TCAM classifying the traffic, and it has some actions to either replicate the matched frames, or eliminate the additional copies. The HW also supports CFM (see [1]), which we need (partly) to complete the MRP implementation with MIM/MIC roles. This is also useful for none MRP users (like ERPS). This seems like an argument for moving this to the existing netlink interfaces instead of having it as a generic netlink. [1] https://en.wikipedia.org/wiki/IEEE_802.1ag /Allan