diff options
author | Jakub Kicinski <kuba@kernel.org> | 2022-07-06 01:02:07 +0200 |
---|---|---|
committer | Leon Romanovsky <leonro@nvidia.com> | 2022-07-17 20:29:53 +0200 |
commit | 9217a222fbca0b2e9d1237b147c6b0bfe9ce969f (patch) | |
tree | 63d82ca188a99f621bdf5cc136783c55d14b2f4e | |
parent | IB/hfi1: switch to netif_napi_add_tx() (diff) | |
download | linux-9217a222fbca0b2e9d1237b147c6b0bfe9ce969f.tar.xz linux-9217a222fbca0b2e9d1237b147c6b0bfe9ce969f.zip |
IB/hfi1: switch to netif_napi_add_weight()
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.
Link: https://lore.kernel.org/r/20220705230208.924408-3-kuba@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Leon Romanovsky <leon@kernel.org>
-rw-r--r-- | drivers/infiniband/hw/hfi1/netdev_rx.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |