All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jakub Kicinski <kuba@kernel.org>
To: jgg@ziepe.ca, leon@kernel.org
Cc: linux-rdma@vger.kernel.org, Jakub Kicinski <kuba@kernel.org>,
	dennis.dalessandro@cornelisnetworks.com
Subject: [PATCH rdma-next 2/3] IB/hfi1: switch to netif_napi_add_weight()
Date: Tue,  5 Jul 2022 16:02:07 -0700	[thread overview]
Message-ID: <20220705230208.924408-3-kuba@kernel.org> (raw)
In-Reply-To: <20220705230208.924408-1-kuba@kernel.org>

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 --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;
-- 
2.36.1


  parent reply	other threads:[~2022-07-05 23:02 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-07-05 23:02 [PATCH rdma-next 0/3] rdma: move to the new NAPI helpers Jakub Kicinski
2022-07-05 23:02 ` [PATCH rdma-next 1/3] IB/hfi1: switch to netif_napi_add_tx() Jakub Kicinski
2022-07-05 23:02 ` Jakub Kicinski [this message]
2022-07-05 23:02 ` [PATCH rdma-next 3/3] ipoib: switch to netif_napi_add_weight() Jakub Kicinski
2022-07-17 18:34 ` [PATCH rdma-next 0/3] rdma: move to the new NAPI helpers Leon Romanovsky

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20220705230208.924408-3-kuba@kernel.org \
    --to=kuba@kernel.org \
    --cc=dennis.dalessandro@cornelisnetworks.com \
    --cc=jgg@ziepe.ca \
    --cc=leon@kernel.org \
    --cc=linux-rdma@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.