net, virtio_net: replace the magic value
authorZhi Yong Wu <wuzhy@linux.vnet.ibm.com>
Mon, 18 Nov 2013 13:19:27 +0000 (21:19 +0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 18 Nov 2013 21:23:09 +0000 (16:23 -0500)
commit0f13b66b01c6e2ec4913a7812414183844d1cc4f
tree29a03c25a18b831472e2e55a95069d6a6c74da4b
parentcf970c002d270c36202bd5b9c2804d3097a52da0
net, virtio_net: replace the magic value

It is more appropriate to use # of queue pairs currently used by
the driver instead of a magic value.

Signed-off-by: Zhi Yong Wu <wuzhy@linux.vnet.ibm.com>
Acked-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/virtio_net.c