[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <1b4d616e-35e3-6699-3031-66ea469d4e7f@nvidia.com>
Date: Mon, 19 Apr 2021 11:51:03 +0300
From: Nikolay Aleksandrov <nikolay@...dia.com>
To: Vladimir Oltean <olteanv@...il.com>,
Jakub Kicinski <kuba@...nel.org>,
"David S. Miller" <davem@...emloft.net>, netdev@...r.kernel.org
Cc: Ioana Ciornei <ioana.ciornei@....com>,
Vadym Kochan <vkochan@...vell.com>,
Taras Chornyi <tchornyi@...vell.com>,
Jiri Pirko <jiri@...dia.com>, Ido Schimmel <idosch@...dia.com>,
Grygorii Strashko <grygorii.strashko@...com>,
Ivan Vecera <ivecera@...hat.com>,
Roopa Prabhu <roopa@...dia.com>, Andrew Lunn <andrew@...n.ch>,
Vivien Didelot <vivien.didelot@...il.com>,
Florian Fainelli <f.fainelli@...il.com>,
Vignesh Raghavendra <vigneshr@...com>,
Linus Walleij <linus.walleij@...aro.org>,
linux-omap@...r.kernel.org,
Vladimir Oltean <vladimir.oltean@....com>,
Tobias Waldekranz <tobias@...dekranz.com>
Subject: Re: [PATCH resend net-next 2/2] net: bridge: switchdev: include local
flag in FDB notifications
On 14/04/2021 19:52, Vladimir Oltean wrote:
> From: Vladimir Oltean <vladimir.oltean@....com>
>
> As explained in bugfix commit 6ab4c3117aec ("net: bridge: don't notify
> switchdev for local FDB addresses") as well as in this discussion:
> https://lore.kernel.org/netdev/20210117193009.io3nungdwuzmo5f7@skbuf/
>
> the switchdev notifiers for FDB entries managed to have a zero-day bug,
> which was that drivers would not know what to do with local FDB entries,
> because they were not told that they are local. The bug fix was to
> simply not notify them of those addresses.
>
> Let us now add the 'is_local' bit to bridge FDB entries, and make all
> drivers ignore these entries by their own choice.
>
> Co-developed-by: Tobias Waldekranz <tobias@...dekranz.com>
> Signed-off-by: Tobias Waldekranz <tobias@...dekranz.com>
> Signed-off-by: Vladimir Oltean <vladimir.oltean@....com>
> ---
> drivers/net/ethernet/freescale/dpaa2/dpaa2-switch.c | 4 ++--
> drivers/net/ethernet/marvell/prestera/prestera_switchdev.c | 2 +-
> drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c | 5 +++--
> drivers/net/ethernet/rocker/rocker_main.c | 4 ++--
> drivers/net/ethernet/ti/am65-cpsw-switchdev.c | 4 ++--
> drivers/net/ethernet/ti/cpsw_switchdev.c | 4 ++--
> include/net/switchdev.h | 1 +
> net/bridge/br_switchdev.c | 3 +--
> net/dsa/slave.c | 2 +-
> 9 files changed, 15 insertions(+), 14 deletions(-)
>
For the bridge change:
Acked-by: Nikolay Aleksandrov <nikolay@...dia.com>
Powered by blists - more mailing lists