net: bcmgenet: Use netif_tx_napi_add() for TX NAPI
authorFlorian Fainelli <f.fainelli@gmail.com>
Thu, 23 Jan 2020 17:49:34 +0000 (09:49 -0800)
committerDavid S. Miller <davem@davemloft.net>
Sat, 25 Jan 2020 09:31:28 +0000 (10:31 +0100)
Before commit 7587935cfa11 ("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: 7587935cfa11 ("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>
drivers/net/ethernet/broadcom/genet/bcmgenet.c

index 120fa05a39ff201f40baa53559de9a54c50304e0..0a8624be44a912d197f1b9ae03f994b6c0871fe6 100644 (file)
@@ -2164,8 +2164,8 @@ 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,
-                      NAPI_POLL_WEIGHT);
+       netif_tx_napi_add(priv->dev, &ring->napi, bcmgenet_tx_poll,
+                         NAPI_POLL_WEIGHT);
 }
 
 /* Initialize a RDMA ring */