mirror of
https://github.com/torvalds/linux.git
synced 2024-12-11 13:41:55 +00:00
net: bcmgenet: Use netif_tx_napi_add() for TX NAPI
Before commit7587935cfa
("net: bcmgenet: move NAPI initialization to ring initialization") moved the code, this used to be netif_tx_napi_add(), but we lost that small semantic change in the process, restore that. Fixes:7587935cfa
("net: bcmgenet: move NAPI initialization to ring initialization") Signed-off-by: Florian Fainelli <f.fainelli@gmail.com> Acked-by: Doug Berger <opendmb@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
61b1f2aff4
commit
148965df1a
@ -2164,7 +2164,7 @@ static void bcmgenet_init_tx_ring(struct bcmgenet_priv *priv,
|
||||
DMA_END_ADDR);
|
||||
|
||||
/* Initialize Tx NAPI */
|
||||
netif_napi_add(priv->dev, &ring->napi, bcmgenet_tx_poll,
|
||||
netif_tx_napi_add(priv->dev, &ring->napi, bcmgenet_tx_poll,
|
||||
NAPI_POLL_WEIGHT);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user