|
@@ -1686,7 +1686,9 @@ static int tun_set_iff(struct net *net, struct file *file, struct ifreq *ifr)
|
|
TUN_USER_FEATURES | NETIF_F_HW_VLAN_CTAG_TX |
|
|
TUN_USER_FEATURES | NETIF_F_HW_VLAN_CTAG_TX |
|
|
NETIF_F_HW_VLAN_STAG_TX;
|
|
NETIF_F_HW_VLAN_STAG_TX;
|
|
dev->features = dev->hw_features;
|
|
dev->features = dev->hw_features;
|
|
- dev->vlan_features = dev->features;
|
|
|
|
|
|
+ dev->vlan_features = dev->features &
|
|
|
|
+ ~(NETIF_F_HW_VLAN_CTAG_TX |
|
|
|
|
+ NETIF_F_HW_VLAN_STAG_TX);
|
|
|
|
|
|
INIT_LIST_HEAD(&tun->disabled);
|
|
INIT_LIST_HEAD(&tun->disabled);
|
|
err = tun_attach(tun, file, false);
|
|
err = tun_attach(tun, file, false);
|