virtio-net: support changing the number of queue pairs through ethtool
authorJason Wang <jasowang@redhat.com>
Fri, 7 Dec 2012 07:04:57 +0000 (07:04 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sun, 9 Dec 2012 05:30:55 +0000 (00:30 -0500)
commitd73bcd2c28e3c77d9f52d42a45a52455488e287e
tree38c315252ce27702680807107619d0aad2e60129
parent986a4f4d452dec004697f667439d27c3fda9c928
virtio-net: support changing the number of queue pairs through ethtool

This patch implements the ethtool_{set|get}_channels method of virtio-net to
allow user to change the number of queues when the device is running on demand.

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