mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 11:41:38 -04:00
net: vlan: rename NETIF_F_HW_VLAN_* feature flags to NETIF_F_HW_VLAN_CTAG_*
Rename the hardware VLAN acceleration features to include "CTAG" to indicate that they only support CTAGs. Follow up patches will introduce 802.1ad server provider tagging (STAGs) and require the distinction for hardware not supporting acclerating both. Signed-off-by: Patrick McHardy <[email protected]> Signed-off-by: David S. Miller <[email protected]>
This commit is contained in:
parent
c2962897c9
commit
f646968f8f
78 changed files with 285 additions and 266 deletions
|
|
@ -348,10 +348,10 @@ void br_dev_setup(struct net_device *dev)
|
|||
|
||||
dev->features = NETIF_F_SG | NETIF_F_FRAGLIST | NETIF_F_HIGHDMA |
|
||||
NETIF_F_GSO_MASK | NETIF_F_HW_CSUM | NETIF_F_LLTX |
|
||||
NETIF_F_NETNS_LOCAL | NETIF_F_HW_VLAN_TX;
|
||||
NETIF_F_NETNS_LOCAL | NETIF_F_HW_VLAN_CTAG_TX;
|
||||
dev->hw_features = NETIF_F_SG | NETIF_F_FRAGLIST | NETIF_F_HIGHDMA |
|
||||
NETIF_F_GSO_MASK | NETIF_F_HW_CSUM |
|
||||
NETIF_F_HW_VLAN_TX;
|
||||
NETIF_F_HW_VLAN_CTAG_TX;
|
||||
|
||||
br->dev = dev;
|
||||
spin_lock_init(&br->lock);
|
||||
|
|
|
|||
|
|
@ -54,7 +54,7 @@ static int __vlan_add(struct net_port_vlans *v, u16 vid, u16 flags)
|
|||
dev = br->dev;
|
||||
}
|
||||
|
||||
if (p && (dev->features & NETIF_F_HW_VLAN_FILTER)) {
|
||||
if (p && (dev->features & NETIF_F_HW_VLAN_CTAG_FILTER)) {
|
||||
/* Add VLAN to the device filter if it is supported.
|
||||
* Stricly speaking, this is not necessary now, since
|
||||
* devices are made promiscuous by the bridge, but if
|
||||
|
|
@ -82,7 +82,7 @@ static int __vlan_add(struct net_port_vlans *v, u16 vid, u16 flags)
|
|||
return 0;
|
||||
|
||||
out_filt:
|
||||
if (p && (dev->features & NETIF_F_HW_VLAN_FILTER))
|
||||
if (p && (dev->features & NETIF_F_HW_VLAN_CTAG_FILTER))
|
||||
dev->netdev_ops->ndo_vlan_rx_kill_vid(dev, vid);
|
||||
return err;
|
||||
}
|
||||
|
|
@ -98,7 +98,7 @@ static int __vlan_del(struct net_port_vlans *v, u16 vid)
|
|||
if (v->port_idx && vid) {
|
||||
struct net_device *dev = v->parent.port->dev;
|
||||
|
||||
if (dev->features & NETIF_F_HW_VLAN_FILTER)
|
||||
if (dev->features & NETIF_F_HW_VLAN_CTAG_FILTER)
|
||||
dev->netdev_ops->ndo_vlan_rx_kill_vid(dev, vid);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue