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)
commit17b334a876fe121abbd6634ace83ca58deea4bc5
treedac58c8750c6ba21b2821dc347f4f696c6f0c411
parent337f1b07db97b75bfd91eb333ff3ec3b82c5b1e6
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: c57529e1d5d8 ("mlxsw: spectrum: Replace vPorts with Port-VLAN")
Fixes: 3922285d96e7 ("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