ipoib: switch to netif_napi_add_weight()
authorJakub Kicinski <kuba@kernel.org>
Tue, 5 Jul 2022 23:02:08 +0000 (16:02 -0700)
committerLeon Romanovsky <leonro@nvidia.com>
Sun, 17 Jul 2022 18:30:02 +0000 (21:30 +0300)
We want to remove the weight argument from the basic
netif_napi_add() API and just default to 64.
Switch ipoib to the new API for explicitly specifying
the weight.

Link: https://lore.kernel.org/r/20220705230208.924408-4-kuba@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Leon Romanovsky <leon@kernel.org>
drivers/infiniband/ulp/ipoib/ipoib_main.c

index 2a8961b..a490437 100644 (file)
@@ -1664,8 +1664,10 @@ static void ipoib_napi_add(struct net_device *dev)
 {
        struct ipoib_dev_priv *priv = ipoib_priv(dev);
 
-       netif_napi_add(dev, &priv->recv_napi, ipoib_rx_poll, IPOIB_NUM_WC);
-       netif_napi_add(dev, &priv->send_napi, ipoib_tx_poll, MAX_SEND_CQE);
+       netif_napi_add_weight(dev, &priv->recv_napi, ipoib_rx_poll,
+                             IPOIB_NUM_WC);
+       netif_napi_add_weight(dev, &priv->send_napi, ipoib_tx_poll,
+                             MAX_SEND_CQE);
 }
 
 static void ipoib_napi_del(struct net_device *dev)