aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJakub Kicinski <[email protected]>2025-01-07 16:08:41 +0000
committerPaolo Abeni <[email protected]>2025-01-09 14:33:08 +0000
commit00adf88b186fa09a0b4005bdcf440aa2f926a75b (patch)
tree8db4530f6bef53160fb7d6328cb37f372fd44430
parentnetdev: define NETDEV_INTERNAL (diff)
downloadkernel-00adf88b186fa09a0b4005bdcf440aa2f926a75b.tar.gz
kernel-00adf88b186fa09a0b4005bdcf440aa2f926a75b.zip
netdevsim: support NAPI config
Link the NAPI instances to their configs. This will be needed to test that NAPI config doesn't break list ordering. Reviewed-by: Willem de Bruijn <[email protected]> Reviewed-by: Eric Dumazet <[email protected]> Signed-off-by: Jakub Kicinski <[email protected]> Signed-off-by: Paolo Abeni <[email protected]>
-rw-r--r--drivers/net/netdevsim/netdev.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/netdevsim/netdev.c b/drivers/net/netdevsim/netdev.c
index e068a9761c09..a4aacd372cdd 100644
--- a/drivers/net/netdevsim/netdev.c
+++ b/drivers/net/netdevsim/netdev.c
@@ -390,7 +390,7 @@ static int nsim_init_napi(struct netdevsim *ns)
for (i = 0; i < dev->num_rx_queues; i++) {
rq = &ns->rq[i];
- netif_napi_add(dev, &rq->napi, nsim_poll);
+ netif_napi_add_config(dev, &rq->napi, nsim_poll, i);
}
for (i = 0; i < dev->num_rx_queues; i++) {