summaryrefslogtreecommitdiffstats
path: root/drivers/net/gianfar_ethtool.c
diff options
context:
space:
mode:
authorJiri Pirko <jpirko@redhat.com>2011-07-20 04:54:19 +0000
committerDavid S. Miller <davem@davemloft.net>2011-07-21 13:47:55 -0700
commit87c288c6e9aa31720b72e2bc2d665e24e1653c3e (patch)
tree18706b96ee67715b400868da1da3a46fff5e596e /drivers/net/gianfar_ethtool.c
parent6ede746b62627b6f03fe88afad1a07d38917b85d (diff)
downloadop-kernel-dev-87c288c6e9aa31720b72e2bc2d665e24e1653c3e.zip
op-kernel-dev-87c288c6e9aa31720b72e2bc2d665e24e1653c3e.tar.gz
gianfar: do vlan cleanup
- unify vlan and nonvlan rx path - kill priv->vlgrp and gfar_vlan_rx_register - allow to turn on/off rx/tx vlan accel via ethtool Signed-off-by: Jiri Pirko <jpirko@redhat.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/gianfar_ethtool.c')
-rw-r--r--drivers/net/gianfar_ethtool.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/net/gianfar_ethtool.c b/drivers/net/gianfar_ethtool.c
index 203369c..6e35069 100644
--- a/drivers/net/gianfar_ethtool.c
+++ b/drivers/net/gianfar_ethtool.c
@@ -526,6 +526,9 @@ int gfar_set_features(struct net_device *dev, u32 features)
int err = 0, i = 0;
u32 changed = dev->features ^ features;
+ if (changed & (NETIF_F_HW_VLAN_TX|NETIF_F_HW_VLAN_RX))
+ gfar_vlan_mode(dev, features);
+
if (!(changed & NETIF_F_RXCSUM))
return 0;
OpenPOWER on IntegriCloud