From: Jiri Pirko <[email protected]> Date: Tue, 18 Oct 2016 18:50:23 +0200
> From: Ido Schimmel <[email protected]> > > 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 <[email protected]> > Reported-by: Tamir Winetroub <[email protected]> > Tested-by: Tamir Winetroub <[email protected]> > Signed-off-by: Jiri Pirko <[email protected]> Applied and queued up for -stable, thanks.
