summaryrefslogtreecommitdiff
path: root/drivers/net/ethernet/neterion/vxge/vxge-main.c
diff options
context:
space:
mode:
authorJakub Kicinski <kuba@kernel.org>2022-05-06 20:07:48 +0300
committerDavid S. Miller <davem@davemloft.net>2022-05-08 13:33:57 +0300
commitb707b89f7be36147187ebc52d91c085040c26de9 (patch)
tree9173d0c07f68348af75029bc5fc3a4ceb2e2151f /drivers/net/ethernet/neterion/vxge/vxge-main.c
parentbe8af67fabcb94b2f4e0897e5782bccd3104bef3 (diff)
downloadlinux-b707b89f7be36147187ebc52d91c085040c26de9.tar.xz
eth: switch to netif_napi_add_weight()
Switch all Ethernet drivers which use custom napi weights to the new API. Signed-off-by: Jakub Kicinski <kuba@kernel.org> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/neterion/vxge/vxge-main.c')
-rw-r--r--drivers/net/ethernet/neterion/vxge/vxge-main.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/drivers/net/ethernet/neterion/vxge/vxge-main.c b/drivers/net/ethernet/neterion/vxge/vxge-main.c
index db4dfae8c01d..d2de8ac44f72 100644
--- a/drivers/net/ethernet/neterion/vxge/vxge-main.c
+++ b/drivers/net/ethernet/neterion/vxge/vxge-main.c
@@ -2720,8 +2720,8 @@ static int vxge_open(struct net_device *dev)
}
if (vdev->config.intr_type != MSI_X) {
- netif_napi_add(dev, &vdev->napi, vxge_poll_inta,
- vdev->config.napi_weight);
+ netif_napi_add_weight(dev, &vdev->napi, vxge_poll_inta,
+ vdev->config.napi_weight);
napi_enable(&vdev->napi);
for (i = 0; i < vdev->no_of_vpath; i++) {
vpath = &vdev->vpaths[i];
@@ -2730,8 +2730,9 @@ static int vxge_open(struct net_device *dev)
} else {
for (i = 0; i < vdev->no_of_vpath; i++) {
vpath = &vdev->vpaths[i];
- netif_napi_add(dev, &vpath->ring.napi,
- vxge_poll_msix, vdev->config.napi_weight);
+ netif_napi_add_weight(dev, &vpath->ring.napi,
+ vxge_poll_msix,
+ vdev->config.napi_weight);
napi_enable(&vpath->ring.napi);
vpath->ring.napi_p = &vpath->ring.napi;
}