mirror of
https://github.com/torvalds/linux.git
synced 2026-06-01 02:53:36 +02:00
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 <willemb@google.com> Reviewed-by: Eric Dumazet <edumazet@google.com> Signed-off-by: Jakub Kicinski <kuba@kernel.org> Signed-off-by: Paolo Abeni <pabeni@redhat.com>
This commit is contained in:
parent
0b7bdc7fab
commit
00adf88b18
|
|
@ -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++) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user