]> 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)
commit4fd139110a4f94b0d3967b4ce306af10457fd0bd
treedac58c8750c6ba21b2821dc347f4f696c6f0c411
parentae565865344ca3e733008aac3ccea6a6246ef2bf
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: 6819e0733fef ("mlxsw: spectrum: Replace vPorts with Port-VLAN")
Fixes: 3cccb5d07e11 ("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