diff options
author | Jiri Pirko <jiri@mellanox.com> | 2015-10-14 19:40:53 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-10-15 06:09:50 -0700 |
commit | 56607386e80cc7ce923592e115a3492485b47c72 (patch) | |
tree | 7d6cce62e322c0926cde33503de35f4ede539328 /net/bridge/br_if.c | |
parent | 4d429c5ddc5128fccd3048059ae26bb39f0d8284 (diff) |
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>
Diffstat (limited to 'net/bridge/br_if.c')
-rw-r--r-- | net/bridge/br_if.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/net/bridge/br_if.c b/net/bridge/br_if.c index 45e4757c6fd2..ec02f5869a78 100644 --- a/net/bridge/br_if.c +++ b/net/bridge/br_if.c @@ -24,6 +24,7 @@ #include <linux/slab.h> #include <net/sock.h> #include <linux/if_vlan.h> +#include <net/switchdev.h> #include "br_private.h" @@ -250,6 +251,8 @@ static void del_nbp(struct net_bridge_port *p) nbp_vlan_flush(p); br_fdb_delete_by_port(br, p, 0, 1); + switchdev_deferred_process(); + nbp_update_port_count(br); netdev_upper_dev_unlink(dev, br->dev); |