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 1/3] IB/hfi1: switch to netif_napi_add_tx()
Date: Tue, 5 Jul 2022 16:02:06 -0700 [thread overview]
Message-ID: <20220705230208.924408-2-kuba@kernel.org> (raw)
In-Reply-To: <20220705230208.924408-1-kuba@kernel.org>
Switch to the new API not requiring the NAPI_POLL_WEIGHT argument.
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/ipoib_tx.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/drivers/infiniband/hw/hfi1/ipoib_tx.c b/drivers/infiniband/hw/hfi1/ipoib_tx.c
index d6bbdb8fcb50..5d9a7b09ca37 100644
--- a/drivers/infiniband/hw/hfi1/ipoib_tx.c
+++ b/drivers/infiniband/hw/hfi1/ipoib_tx.c
@@ -742,9 +742,7 @@ int hfi1_ipoib_txreq_init(struct hfi1_ipoib_dev_priv *priv)
kzalloc_node(sizeof(*tx->sdma_hdr),
GFP_KERNEL, priv->dd->node);
- netif_tx_napi_add(dev, &txq->napi,
- hfi1_ipoib_poll_tx_ring,
- NAPI_POLL_WEIGHT);
+ netif_napi_add_tx(dev, &txq->napi, hfi1_ipoib_poll_tx_ring);
}
return 0;
--
2.36.1
next prev 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 ` Jakub Kicinski [this message]
2022-07-05 23:02 ` [PATCH rdma-next 2/3] IB/hfi1: switch to netif_napi_add_weight() Jakub Kicinski
2022-07-05 23:02 ` [PATCH rdma-next 3/3] ipoib: " 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-2-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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).