aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/chelsio/cxgb4vf
diff options
context:
space:
mode:
authorPatrick McHardy <kaber@trash.net>2013-04-18 22:04:27 -0400
committerDavid S. Miller <davem@davemloft.net>2013-04-19 14:45:26 -0400
commitf646968f8f7c624587de729115d802372b9063dd (patch)
tree2b8c6604306f5e74af9e16c17e2b611610982b65 /drivers/net/ethernet/chelsio/cxgb4vf
parentc2962897c94605bc8f158a37dee8d867dda9f116 (diff)
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 <kaber@trash.net> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/chelsio/cxgb4vf')
-rw-r--r--drivers/net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c15
1 files changed, 8 insertions, 7 deletions
diff --git a/drivers/net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c b/drivers/net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c
index 7fcac2003769..73aef76a526c 100644
--- a/drivers/net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c
+++ b/drivers/net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c
@@ -1100,10 +1100,10 @@ static netdev_features_t cxgb4vf_fix_features(struct net_device *dev,
1100 * Since there is no support for separate rx/tx vlan accel 1100 * Since there is no support for separate rx/tx vlan accel
1101 * enable/disable make sure tx flag is always in same state as rx. 1101 * enable/disable make sure tx flag is always in same state as rx.
1102 */ 1102 */
1103 if (features & NETIF_F_HW_VLAN_RX) 1103 if (features & NETIF_F_HW_VLAN_CTAG_RX)
1104 features |= NETIF_F_HW_VLAN_TX; 1104 features |= NETIF_F_HW_VLAN_CTAG_TX;
1105 else 1105 else
1106 features &= ~NETIF_F_HW_VLAN_TX; 1106 features &= ~NETIF_F_HW_VLAN_CTAG_TX;
1107 1107
1108 return features; 1108 return features;
1109} 1109}
@@ -1114,9 +1114,9 @@ static int cxgb4vf_set_features(struct net_device *dev,
1114 struct port_info *pi = netdev_priv(dev); 1114 struct port_info *pi = netdev_priv(dev);
1115 netdev_features_t changed = dev->features ^ features; 1115 netdev_features_t changed = dev->features ^ features;
1116 1116
1117 if (changed & NETIF_F_HW_VLAN_RX) 1117 if (changed & NETIF_F_HW_VLAN_CTAG_RX)
1118 t4vf_set_rxmode(pi->adapter, pi->viid, -1, -1, -1, -1, 1118 t4vf_set_rxmode(pi->adapter, pi->viid, -1, -1, -1, -1,
1119 features & NETIF_F_HW_VLAN_TX, 0); 1119 features & NETIF_F_HW_VLAN_CTAG_TX, 0);
1120 1120
1121 return 0; 1121 return 0;
1122} 1122}
@@ -2623,11 +2623,12 @@ static int cxgb4vf_pci_probe(struct pci_dev *pdev,
2623 2623
2624 netdev->hw_features = NETIF_F_SG | TSO_FLAGS | 2624 netdev->hw_features = NETIF_F_SG | TSO_FLAGS |
2625 NETIF_F_IP_CSUM | NETIF_F_IPV6_CSUM | 2625 NETIF_F_IP_CSUM | NETIF_F_IPV6_CSUM |
2626 NETIF_F_HW_VLAN_RX | NETIF_F_RXCSUM; 2626 NETIF_F_HW_VLAN_CTAG_RX | NETIF_F_RXCSUM;
2627 netdev->vlan_features = NETIF_F_SG | TSO_FLAGS | 2627 netdev->vlan_features = NETIF_F_SG | TSO_FLAGS |
2628 NETIF_F_IP_CSUM | NETIF_F_IPV6_CSUM | 2628 NETIF_F_IP_CSUM | NETIF_F_IPV6_CSUM |
2629 NETIF_F_HIGHDMA; 2629 NETIF_F_HIGHDMA;
2630 netdev->features = netdev->hw_features | NETIF_F_HW_VLAN_TX; 2630 netdev->features = netdev->hw_features |
2631 NETIF_F_HW_VLAN_CTAG_TX;
2631 if (pci_using_dac) 2632 if (pci_using_dac)
2632 netdev->features |= NETIF_F_HIGHDMA; 2633 netdev->features |= NETIF_F_HIGHDMA;
2633 2634