Skip to content

Commit

Permalink
net: lantiq: use netif_tx_napi_add() for TX NAPI
Browse files Browse the repository at this point in the history
[ Upstream commit 74c7b80 ]

netif_tx_napi_add() should be used for NAPI in the TX direction instead
of the netif_napi_add() function.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  • Loading branch information
hauke authored and gregkh committed Sep 26, 2020
1 parent 19dd093 commit 9efed2a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/ethernet/lantiq_xrx200.c
Original file line number Diff line number Diff line change
Expand Up @@ -501,7 +501,7 @@ static int xrx200_probe(struct platform_device *pdev)

/* setup NAPI */
netif_napi_add(net_dev, &priv->chan_rx.napi, xrx200_poll_rx, 32);
netif_napi_add(net_dev, &priv->chan_tx.napi, xrx200_tx_housekeeping, 32);
netif_tx_napi_add(net_dev, &priv->chan_tx.napi, xrx200_tx_housekeeping, 32);

platform_set_drvdata(pdev, priv);

Expand Down

0 comments on commit 9efed2a

Please sign in to comment.