Skip to contentSkip to conversation

net: stmmac: Use netif_tx_napi_add() for TX polling function

PATCH In review Bartosz Golaszewski 2 participants 2 messages Jul 30, 2019 – Jul 31, 2019

Subsystems (4)
lore
Share & tools
lore
#0 lore raw

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.

---
 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
index 98b1a5c6d537..390dad5b9819 100644
@@ -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