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

Commit 55257d72bd1c51f25106350f4983ec19f62ed1fa (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