15 lines
476 B
Diff
15 lines
476 B
Diff
diff --git a/net/8021q/vlan.c b/net/8021q/vlan.c
|
|
index efea35b..cf4a49c 100644
|
|
--- a/net/8021q/vlan.c
|
|
+++ b/net/8021q/vlan.c
|
|
@@ -403,6 +403,9 @@ static int vlan_device_event(struct notifier_block *unused, unsigned long event,
|
|
break;
|
|
|
|
case NETDEV_DOWN:
|
|
+ if (dev->features & NETIF_F_HW_VLAN_FILTER)
|
|
+ vlan_vid_del(dev, 0);
|
|
+
|
|
/* Put all VLANs for this dev in the down state too. */
|
|
for (i = 0; i < VLAN_N_VID; i++) {
|
|
vlandev = vlan_group_get_device(grp, i);
|