bridge: defer switchdev fdb del call in fdb_del_external_learn
authorJiri Pirko <jiri@mellanox.com>
Wed, 14 Oct 2015 17:40:53 +0000 (19:40 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 15 Oct 2015 13:09:50 +0000 (06:09 -0700)
commit56607386e80cc7ce923592e115a3492485b47c72
tree7d6cce62e322c0926cde33503de35f4ede539328
parent4d429c5ddc5128fccd3048059ae26bb39f0d8284
bridge: defer switchdev fdb del call in fdb_del_external_learn

Since spinlock is held here, defer the switchdev operation. Also, ensure
that defered switchdev ops are processed before port master device
is unlinked.

Signed-off-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/bridge/br_fdb.c
net/bridge/br_if.c