From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ido Schimmel Subject: Re: [PATCH 00/12] net: Introduce ndo_get_port_parent_id() Date: Tue, 5 Feb 2019 07:14:48 +0000 Message-ID: <20190205071445.GA7480@splinter> References: <20190204233633.20421-1-f.fainelli@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Return-path: In-Reply-To: <20190204233633.20421-1-f.fainelli@gmail.com> Content-Language: en-US Content-ID: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: bridge-bounces@lists.linux-foundation.org Errors-To: bridge-bounces@lists.linux-foundation.org To: Florian Fainelli Cc: Andrew Lunn , Alexandre Belloni , Jakub Kicinski , John Hurley , "open list:NETRONOME ETHERNET DRIVERS" , Eric Dumazet , Ioana Ciornei , Tyler Hicks , Ivan Vecera , David Ahern , Ioana Radulescu , "open list:MELLANOX MLX5 core VPI driver" , "moderated list:ETHERNET BRIDGE" , Amritha Nambiar , Saeed Mahameed , Dirk van der Merwe , Alexey Kuznetsov , Vivien Didelot , Alexander Duyck open li List-Id: linux-rdma@vger.kernel.org On Mon, Feb 04, 2019 at 03:36:21PM -0800, Florian Fainelli wrote: > Hi all, >=20 > Based on discussion with Ido and feedback from Jakub there are clearly > two classes of users that implement SWITCHDEV_ATTR_ID_PORT_PARENT_ID: >=20 > - PF/VF drivers which typically only implement return the port's parent > ID, yet have to implement switchdev_port_attr_get() just for that >=20 > - Ethernet switch drivers: mlxsw, ocelot, DSA, etc. which implement more > attributes which we want to be able to eventually veto in the context > of the caller, thus making them candidates for using a blocking notifie= r > chain Florian, thanks for working on this. I think you're missing implementation over stacked devices. At least 8021q, bond and team need to implement this ndo as well. For bond and team we can return an error if not all the slaves have the same parent ID. It would be consistent with what switchdev_port_attr_get() is doing.