net: stmmac: Use netif_tx_napi_add() for TX polling function
Subsystems (4)
PATCH 1/1 net: stmmac: Use netif_tx_napi_add() for TX polling function
From: Frode Isaksen <[email protected]>
This variant of netif_napi_add() should be used from drivers using NAPI to exclusively poll a TX queue.
Signed-off-by Frode Isaksen <[email protected]>
Tested-by Bartosz Golaszewski <[email protected]>
Signed-off-by Bartosz Golaszewski <[email protected]>
--- drivers/net/ethernet/stmicro/stmmac/stmmac_main.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)
drivers/net/ethernet/stmicro/stmmac/stmmac_main.c +3 -2
@@ -4313,8 +4313,9 @@ int stmmac_dvr_probe(struct device *device, NAPI_POLL_WEIGHT); }if (queue < priv->plat->tx_queues_to_use) { -netif_napi_add (ndev, &ch->tx_napi, stmmac_napi_poll_tx, -NAPI_POLL_WEIGHT ); +netif_tx_napi_add (ndev, &ch->tx_napi, + stmmac_napi_poll_tx, +NAPI_POLL_WEIGHT ); } }
Signature · 1 line
2.21.0
David Miller
maintainerFrom: Bartosz Golaszewski <[email protected]>
Date: Tue, 30 Jul 2019 13:38:14 +0200
Quoted 8 lines
From: Frode Isaksen <[email protected]>
This variant of
netif_napi_add()should be used from drivers using NAPI to exclusively poll a TX queue.Signed-off-by Frode Isaksen <[email protected]>Tested-by Bartosz Golaszewski <[email protected]>Signed-off-by Bartosz Golaszewski <[email protected]>
Applied and queued up for -stable.