Skip to content

Commit

Permalink
fec: Use NAPI_POLL_WEIGHT
Browse files Browse the repository at this point in the history
Instead of using a custom 'FEC_NAPI_WEIGHT', just use the generic
'NAPI_POLL_WEIGHT' definition instead.

Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Fabio Estevam authored and David S. Miller committed Aug 29, 2013
1 parent 7613f5f commit 322555f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions drivers/net/ethernet/freescale/fec_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,6 @@ static void set_multicast_list(struct net_device *ndev);
#endif

#define DRIVER_NAME "fec"
#define FEC_NAPI_WEIGHT 64

/* Pause frame feild and FIFO threshold */
#define FEC_ENET_FCE (1 << 5)
Expand Down Expand Up @@ -1981,7 +1980,7 @@ static int fec_enet_init(struct net_device *ndev)
ndev->ethtool_ops = &fec_enet_ethtool_ops;

writel(FEC_RX_DISABLED_IMASK, fep->hwp + FEC_IMASK);
netif_napi_add(ndev, &fep->napi, fec_enet_rx_napi, FEC_NAPI_WEIGHT);
netif_napi_add(ndev, &fep->napi, fec_enet_rx_napi, NAPI_POLL_WEIGHT);

if (id_entry->driver_data & FEC_QUIRK_HAS_VLAN) {
/* enable hw VLAN support */
Expand Down

0 comments on commit 322555f

Please sign in to comment.