diff options
author | Jakub Kicinski <kuba@kernel.org> | 2022-04-28 14:23:19 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2022-04-29 11:56:42 +0100 |
commit | bbbe6ecbc36d55e0ac49251f52f3ccffa51ec32a (patch) | |
tree | 974e38f42f325dbabc5858aadbeeef9dca72bc00 /drivers/net/ethernet/freescale/gianfar.c | |
parent | e702def527ecdeabe0c8a302db0370161892d740 (diff) |
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>
Diffstat (limited to 'drivers/net/ethernet/freescale/gianfar.c')
-rw-r--r-- | drivers/net/ethernet/freescale/gianfar.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/freescale/gianfar.c b/drivers/net/ethernet/freescale/gianfar.c index 206b7a35eaf5..f0b652a65043 100644 --- a/drivers/net/ethernet/freescale/gianfar.c +++ b/drivers/net/ethernet/freescale/gianfar.c @@ -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); } |