Skip to content

Commit

Permalink
net: mv643xx_eth: Factorize feature setting
Browse files Browse the repository at this point in the history
In order to ease the addition of new features, let's factorize the
feature list.

Signed-off-by: Ezequiel Garcia <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
  • Loading branch information
ezequielgarcia authored and davem330 committed May 22, 2014
1 parent 84411f7 commit 4d48d58
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions drivers/net/ethernet/marvell/mv643xx_eth.c
Original file line number Diff line number Diff line change
Expand Up @@ -2941,9 +2941,11 @@ static int mv643xx_eth_probe(struct platform_device *pdev)
dev->watchdog_timeo = 2 * HZ;
dev->base_addr = 0;

dev->hw_features = NETIF_F_SG | NETIF_F_IP_CSUM | NETIF_F_RXCSUM;
dev->features = NETIF_F_SG | NETIF_F_IP_CSUM | NETIF_F_RXCSUM;
dev->vlan_features = NETIF_F_SG | NETIF_F_IP_CSUM;
dev->features = NETIF_F_SG | NETIF_F_IP_CSUM;
dev->vlan_features = dev->features;

dev->features |= NETIF_F_RXCSUM;
dev->hw_features = dev->features;

dev->priv_flags |= IFF_UNICAST_FLT;

Expand Down

0 comments on commit 4d48d58

Please sign in to comment.