eth: gfar: remove a copy of the NAPI_POLL_WEIGHT define
Defining local versions of NAPI_POLL_WEIGHT with the same values in the drivers just makes refactoring harder. Signed-off-by: Jakub Kicinski <kuba@kernel.org> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
e702def527
commit
bbbe6ecbc3
@ -3232,7 +3232,7 @@ static int gfar_probe(struct platform_device *ofdev)
|
||||
/* Register for napi ...We are registering NAPI for each grp */
|
||||
for (i = 0; i < priv->num_grps; i++) {
|
||||
netif_napi_add(dev, &priv->gfargrp[i].napi_rx,
|
||||
gfar_poll_rx_sq, GFAR_DEV_WEIGHT);
|
||||
gfar_poll_rx_sq, NAPI_POLL_WEIGHT);
|
||||
netif_tx_napi_add(dev, &priv->gfargrp[i].napi_tx,
|
||||
gfar_poll_tx_sq, 2);
|
||||
}
|
||||
|
@ -52,9 +52,6 @@ struct ethtool_rx_list {
|
||||
unsigned int count;
|
||||
};
|
||||
|
||||
/* The maximum number of packets to be handled in one call of gfar_poll */
|
||||
#define GFAR_DEV_WEIGHT 64
|
||||
|
||||
/* Length for FCB */
|
||||
#define GMAC_FCB_LEN 8
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user