vlan: fix GVRP at dismantle time MIME-Version: 1.0
[linux-flexiantxendom0-natty.git] / net / 8021q / vlan.c
index 6e64f7c..8a7de0f 100644 (file)
@@ -124,6 +124,9 @@ void unregister_vlan_dev(struct net_device *dev, struct list_head *head)
 
        grp->nr_vlans--;
 
+       if (vlan->flags & VLAN_FLAG_GVRP)
+               vlan_gvrp_request_leave(dev);
+
        vlan_group_set_device(grp, vlan_id, NULL);
        if (!grp->killall)
                synchronize_net();