Skip to content

Commit

Permalink
mv643xx_eth: fix NAPI weight being > 64
Browse files Browse the repository at this point in the history
3.10-rc1 issues the following warning:

netif_napi_add() called with weight 128 on device eth%d

This patch reduce the weight to 64, using NAPI_POLL_WEIGHT.

Signed-off-by: Andrew Lunn <andrew@lunn.ch>
Acked-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Andrew Lunn authored and David S. Miller committed May 14, 2013
1 parent 54d27fc commit a3659aa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/ethernet/marvell/mv643xx_eth.c
Original file line number Diff line number Diff line change
Expand Up @@ -2745,7 +2745,7 @@ static int mv643xx_eth_probe(struct platform_device *pdev)

INIT_WORK(&mp->tx_timeout_task, tx_timeout_task);

netif_napi_add(dev, &mp->napi, mv643xx_eth_poll, 128);
netif_napi_add(dev, &mp->napi, mv643xx_eth_poll, NAPI_POLL_WEIGHT);

init_timer(&mp->rx_oom);
mp->rx_oom.data = (unsigned long)mp;
Expand Down

0 comments on commit a3659aa

Please sign in to comment.