]> git.baikalelectronics.ru Git - kernel.git/commit
mlxsw: spectrum_switchdev: Don't warn about valid situations
authorIdo Schimmel <idosch@mellanox.com>
Fri, 4 Aug 2017 12:12:29 +0000 (14:12 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 4 Aug 2017 18:15:07 +0000 (11:15 -0700)
commit1238d1959d83368e0baf46af9e4a6720dd0a4d66
treedac58c8750c6ba21b2821dc347f4f696c6f0c411
parentb6c4b91d4658e48e2743d401dc21bc1e972ce666
mlxsw: spectrum_switchdev: Don't warn about valid situations

Some operations in the bridge driver such as MDB deletion are preformed
in an atomic context and thus deferred to a process context by the
switchdev infrastructure.

Therefore, by the time the operation is performed by the underlying
device driver it's possible the bridge port context is already gone.
This is especially true for removal flows, but theoretically can also be
invoked during addition.

Remove the warnings in such situations and return normally.

Fixes: 60b1332f23f3 ("mlxsw: spectrum: Replace vPorts with Port-VLAN")
Fixes: afa017871a41 ("net: bridge: Add support for offloading port attributes")
Signed-off-by: Ido Schimmel <idosch@mellanox.com>
Signed-off-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c