diff options
author | Jakub Kicinski <kuba@kernel.org> | 2022-05-16 17:23:45 -0700 |
---|---|---|
committer | Marc Kleine-Budde <mkl@pengutronix.de> | 2022-05-19 22:11:28 +0200 |
commit | caf6b7f81e053dfdc5f16e943b355bc954e0de34 (patch) | |
tree | d072abd9da76894ddbaf074f53646df48f8ad545 /drivers/net/can/dev | |
parent | b76b163f46b661499921a0049982764a6659bfe7 (diff) | |
download | linux-caf6b7f81e053dfdc5f16e943b355bc954e0de34.tar.gz linux-caf6b7f81e053dfdc5f16e943b355bc954e0de34.tar.bz2 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/dev')
-rw-r--r-- | drivers/net/can/dev/rx-offload.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/net/can/dev/rx-offload.c b/drivers/net/can/dev/rx-offload.c index 6d0dc18c03e7..509d21170c8c 100644 --- a/drivers/net/can/dev/rx-offload.c +++ b/drivers/net/can/dev/rx-offload.c @@ -337,7 +337,8 @@ static int can_rx_offload_init_queue(struct net_device *dev, skb_queue_head_init(&offload->skb_queue); __skb_queue_head_init(&offload->skb_irq_queue); - netif_napi_add(dev, &offload->napi, can_rx_offload_napi_poll, weight); + netif_napi_add_weight(dev, &offload->napi, can_rx_offload_napi_poll, + weight); dev_dbg(dev->dev.parent, "%s: skb_queue_len_max=%d\n", __func__, offload->skb_queue_len_max); |