Commit a3659aa09a2ee7e0028349b9100d8b4a7750a4be
Committed by
David S. Miller
1 parent
54d27fcb33
Exists in
smarc-l5.0.0_1.0.0-ga
and in
5 other branches
mv643xx_eth: fix NAPI weight being > 64
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>
Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff
drivers/net/ethernet/marvell/mv643xx_eth.c
... | ... | @@ -2745,7 +2745,7 @@ |
2745 | 2745 | |
2746 | 2746 | INIT_WORK(&mp->tx_timeout_task, tx_timeout_task); |
2747 | 2747 | |
2748 | - netif_napi_add(dev, &mp->napi, mv643xx_eth_poll, 128); | |
2748 | + netif_napi_add(dev, &mp->napi, mv643xx_eth_poll, NAPI_POLL_WEIGHT); | |
2749 | 2749 | |
2750 | 2750 | init_timer(&mp->rx_oom); |
2751 | 2751 | mp->rx_oom.data = (unsigned long)mp; |