]> git.baikalelectronics.ru Git - kernel.git/commit
virtio_net: enable napi for all possible queues during open
authorJason Wang <jasowang@redhat.com>
Tue, 21 May 2013 20:03:58 +0000 (20:03 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 23 May 2013 07:10:59 +0000 (00:10 -0700)
commitebb2cda15b7d9ca5a7fc38e6a56a8b5e2feb12b1
tree29849509c02ed394462c19c6e6b7a1eb41bdcacf
parent3c3df1d13f59198717d60ba3c9443999c8896fd8
virtio_net: enable napi for all possible queues during open

Commit a4bd6e63bb102428cd9a2b5655a7fe6eacfa6f05 (virtio-net: fill only rx
queues which are being used) only does the napi enabling during open for
curr_queue_pairs. This will break multiqueue receiving since napi of new queues
were still disabled after changing the number of queues.

This patch fixes this by enabling napi for all possible queues during open.

Cc: Sasha Levin <sasha.levin@oracle.com>
Signed-off-by: Jason Wang <jasowang@redhat.com>
Acked-by: Rusty Russell <rusty@rustcorp.com.au>
Acked-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/virtio_net.c