diff options
-rw-r--r-- | net/bridge/br_vlan.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/net/bridge/br_vlan.c b/net/bridge/br_vlan.c index 57074be62fcb..af5ebd18d705 100644 --- a/net/bridge/br_vlan.c +++ b/net/bridge/br_vlan.c | |||
@@ -390,6 +390,7 @@ int nbp_vlan_delete(struct net_bridge_port *port, u16 vid) | |||
390 | void nbp_vlan_flush(struct net_bridge_port *port) | 390 | void nbp_vlan_flush(struct net_bridge_port *port) |
391 | { | 391 | { |
392 | struct net_port_vlans *pv; | 392 | struct net_port_vlans *pv; |
393 | u16 vid; | ||
393 | 394 | ||
394 | ASSERT_RTNL(); | 395 | ASSERT_RTNL(); |
395 | 396 | ||
@@ -397,6 +398,9 @@ void nbp_vlan_flush(struct net_bridge_port *port) | |||
397 | if (!pv) | 398 | if (!pv) |
398 | return; | 399 | return; |
399 | 400 | ||
401 | for_each_set_bit(vid, pv->vlan_bitmap, VLAN_N_VID) | ||
402 | vlan_vid_del(port->dev, htons(ETH_P_8021Q), vid); | ||
403 | |||
400 | __vlan_flush(pv); | 404 | __vlan_flush(pv); |
401 | } | 405 | } |
402 | 406 | ||