From: Jiri Pirko <j...@resnulli.us>
Date: Tue, 18 Oct 2016 18:50:23 +0200

> From: Ido Schimmel <ido...@mellanox.com>
> 
> We recently got the following warning after setting up a vlan device on
> top of an offloaded bridge and executing 'bridge link':
...
> The problem is that the 8021q module propagates the call to
> ndo_bridge_getlink() via switchdev ops, but the switch driver doesn't
> recognize the netdev, as it's not offloaded.
> 
> While we can ignore calls being made to non-bridge ports inside the
> driver, a better fix would be to push this check up to the switchdev
> layer.
> 
> Note that these ndos can be called for non-bridged netdev, but this only
> happens in certain PF drivers which don't call the corresponding
> switchdev functions anyway.
> 
> Fixes: 99f44bb3527b ("mlxsw: spectrum: Enable L3 interfaces on top of bridge 
> devices")
> Signed-off-by: Ido Schimmel <ido...@mellanox.com>
> Reported-by: Tamir Winetroub <tam...@mellanox.com>
> Tested-by: Tamir Winetroub <tam...@mellanox.com>
> Signed-off-by: Jiri Pirko <j...@mellanox.com>

Applied and queued up for -stable, thanks.

Reply via email to