summaryrefslogtreecommitdiffstats
path: root/drivers/net/can/mscan
diff options
context:
space:
mode:
authorJakub Kicinski <kuba@kernel.org>2022-05-17 02:23:45 +0200
committerMarc Kleine-Budde <mkl@pengutronix.de>2022-05-19 22:11:28 +0200
commitcaf6b7f81e053dfdc5f16e943b355bc954e0de34 (patch)
treed072abd9da76894ddbaf074f53646df48f8ad545 /drivers/net/can/mscan
parentcan: isotp: isotp_bind(): do not validate unused address information (diff)
downloadlinux-caf6b7f81e053dfdc5f16e943b355bc954e0de34.tar.xz
linux-caf6b7f81e053dfdc5f16e943b355bc954e0de34.zip
can: can-dev: move to netif_napi_add_weight()
We want to remove the weight argument from the basic version of the netif_napi_add() call. Move all the callers in drivers/net/can that pass a custom weight (i.e. not NAPI_POLL_WEIGHT or 64) to the netif_napi_add_weight() API. Link: https://lore.kernel.org/all/20220517002345.1812104-1-kuba@kernel.org Signed-off-by: Jakub Kicinski <kuba@kernel.org> Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
Diffstat (limited to 'drivers/net/can/mscan')
-rw-r--r--drivers/net/can/mscan/mscan.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/can/mscan/mscan.c b/drivers/net/can/mscan/mscan.c
index 5b5802fac772..78a21ab63601 100644
--- a/drivers/net/can/mscan/mscan.c
+++ b/drivers/net/can/mscan/mscan.c
@@ -679,7 +679,7 @@ struct net_device *alloc_mscandev(void)
dev->flags |= IFF_ECHO; /* we support local echo */
- netif_napi_add(dev, &priv->napi, mscan_rx_poll, 8);
+ netif_napi_add_weight(dev, &priv->napi, mscan_rx_poll, 8);
priv->can.bittiming_const = &mscan_bittiming_const;
priv->can.do_set_bittiming = mscan_do_set_bittiming;