virtio_net: zero is an invald queue_pairs number
authorAmos Kong <akong@redhat.com>
Fri, 18 Apr 2014 05:45:41 +0000 (13:45 +0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 22 Apr 2014 20:01:35 +0000 (16:01 -0400)
Execute "ethtool -L eth0 combined 0" in guest, if multiqueue
is enabled, virtnet_send_command() will return -EINVAL error,
there is a validation in QEMU.

But if multiqueue is disabled, virtnet_set_queues() will just
return zero (success). We should return error for this situation.

Signed-off-by: Amos Kong <akong@redhat.com>
Acked-by: Jason Wang <jasowang@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/virtio_net.c

Simple merge