diff options
author | Ezequiel Garcia <ezequiel.garcia@free-electrons.com> | 2014-05-19 12:59:58 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-05-22 14:57:16 -0400 |
commit | 4d48d58907169110fe6887775e8465475ef062ff (patch) | |
tree | 21bc0e14c79b1219931944665a9d0e2458320f9d /drivers/net/ethernet/marvell/mv643xx_eth.c | |
parent | 84411f73b8849c494fc6dd3bb6b5f10ee6e58a5b (diff) |
net: mv643xx_eth: Factorize feature setting
In order to ease the addition of new features, let's factorize the
feature list.
Signed-off-by: Ezequiel Garcia <ezequiel.garcia@free-electrons.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/marvell/mv643xx_eth.c')
-rw-r--r-- | drivers/net/ethernet/marvell/mv643xx_eth.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/drivers/net/ethernet/marvell/mv643xx_eth.c b/drivers/net/ethernet/marvell/mv643xx_eth.c index 5ad19d2e2f2d..01fde2c3f56d 100644 --- a/drivers/net/ethernet/marvell/mv643xx_eth.c +++ b/drivers/net/ethernet/marvell/mv643xx_eth.c | |||
@@ -2941,9 +2941,11 @@ static int mv643xx_eth_probe(struct platform_device *pdev) | |||
2941 | dev->watchdog_timeo = 2 * HZ; | 2941 | dev->watchdog_timeo = 2 * HZ; |
2942 | dev->base_addr = 0; | 2942 | dev->base_addr = 0; |
2943 | 2943 | ||
2944 | dev->hw_features = NETIF_F_SG | NETIF_F_IP_CSUM | NETIF_F_RXCSUM; | 2944 | dev->features = NETIF_F_SG | NETIF_F_IP_CSUM; |
2945 | dev->features = NETIF_F_SG | NETIF_F_IP_CSUM | NETIF_F_RXCSUM; | 2945 | dev->vlan_features = dev->features; |
2946 | dev->vlan_features = NETIF_F_SG | NETIF_F_IP_CSUM; | 2946 | |
2947 | dev->features |= NETIF_F_RXCSUM; | ||
2948 | dev->hw_features = dev->features; | ||
2947 | 2949 | ||
2948 | dev->priv_flags |= IFF_UNICAST_FLT; | 2950 | dev->priv_flags |= IFF_UNICAST_FLT; |
2949 | 2951 | ||