]> 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)
commitbb1e1034e1964fdd3ddc766fb83f8d3e545306e7
tree29849509c02ed394462c19c6e6b7a1eb41bdcacf
parent01930bd483685e2d038a88ee4b5129dffbd8d5fb
virtio_net: enable napi for all possible queues during open

Commit 6b86fcb3cbb7385ecb732cb81d770e5244551448 (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