diff options
author | Ezequiel Garcia <ezequiel.garcia@free-electrons.com> | 2014-05-19 16:59:53 (GMT) |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-05-22 18:57:15 (GMT) |
commit | 01ef26ca44fdfc04a611975f9abe34a04261f98e (patch) | |
tree | 8932d089e7ec831a095b960433a3b7a681d7368e /drivers/net/ethernet/marvell | |
parent | e876f208af18b074f800656e4d1b99da75b2135f (diff) | |
download | linux-01ef26ca44fdfc04a611975f9abe34a04261f98e.tar.xz |
net: mvneta: 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')
-rw-r--r-- | drivers/net/ethernet/marvell/mvneta.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/ethernet/marvell/mvneta.c b/drivers/net/ethernet/marvell/mvneta.c index c7cbaf3..ed7f924 100644 --- a/drivers/net/ethernet/marvell/mvneta.c +++ b/drivers/net/ethernet/marvell/mvneta.c @@ -2896,8 +2896,8 @@ static int mvneta_probe(struct platform_device *pdev) netif_napi_add(dev, &pp->napi, mvneta_poll, pp->weight); dev->features = NETIF_F_SG | NETIF_F_IP_CSUM; - dev->hw_features |= NETIF_F_SG | NETIF_F_IP_CSUM; - dev->vlan_features |= NETIF_F_SG | NETIF_F_IP_CSUM; + dev->hw_features |= dev->features; + dev->vlan_features |= dev->features; dev->priv_flags |= IFF_UNICAST_FLT; err = register_netdev(dev); |