diff mbox series

[rdma-next,2/3] IB/hfi1: switch to netif_napi_add_weight()

Message ID 20220705230208.924408-3-kuba@kernel.org (mailing list archive)
State Accepted
Headers show
Series rdma: move to the new NAPI helpers | expand

Commit Message

Jakub Kicinski July 5, 2022, 11:02 p.m. UTC
Since we'll remove the last argument from netif_napi_add()
soon switch this RDMA driver to netif_napi_add_weight()
for now to avoid cross-tree patches.

Signed-off-by: Jakub Kicinski <kuba@kernel.org>
---
CC: dennis.dalessandro@cornelisnetworks.com
CC: jgg@ziepe.ca
CC: leon@kernel.org
CC: linux-rdma@vger.kernel.org
---
 drivers/infiniband/hw/hfi1/netdev_rx.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/drivers/infiniband/hw/hfi1/netdev_rx.c b/drivers/infiniband/hw/hfi1/netdev_rx.c
index 03b098a494b5..3dfa5aff2512 100644
--- a/drivers/infiniband/hw/hfi1/netdev_rx.c
+++ b/drivers/infiniband/hw/hfi1/netdev_rx.c
@@ -216,7 +216,7 @@  static int hfi1_netdev_rxq_init(struct hfi1_netdev_rx *rx)
 		 * right now.
 		 */
 		set_bit(NAPI_STATE_NO_BUSY_POLL, &rxq->napi.state);
-		netif_napi_add(dev, &rxq->napi, hfi1_netdev_rx_napi, 64);
+		netif_napi_add_weight(dev, &rxq->napi, hfi1_netdev_rx_napi, 64);
 		rc = msix_netdev_request_rcd_irq(rxq->rcd);
 		if (rc)
 			goto bail_context_irq_failure;