commit | c18e9cd623b8aa88090615602c3db7f1386a139d | [log] [tgz] |
---|---|---|
author | Amos Kong <akong@redhat.com> | Fri Apr 18 13:45:41 2014 +0800 |
committer | David S. Miller <davem@davemloft.net> | Tue Apr 22 16:01:35 2014 -0400 |
tree | 323cdee996e69c3d25862087585ac8125591a4b9 | |
parent | 235a251abad38910120ba2dbd77296983c1d71b2 [diff] |
virtio_net: zero is an invald queue_pairs number 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>