Skip to content

Commit 00adf88

Browse files
kuba-mooPaolo Abeni
authored andcommitted
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]>
1 parent 0b7bdc7 commit 00adf88

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/net/netdevsim/netdev.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -390,7 +390,7 @@ static int nsim_init_napi(struct netdevsim *ns)
390390
for (i = 0; i < dev->num_rx_queues; i++) {
391391
rq = &ns->rq[i];
392392

393-
netif_napi_add(dev, &rq->napi, nsim_poll);
393+
netif_napi_add_config(dev, &rq->napi, nsim_poll, i);
394394
}
395395

396396
for (i = 0; i < dev->num_rx_queues; i++) {

0 commit comments

Comments
 (0)