xen-netback: respect user provided max_queues
authorWei Liu <wei.liu2@citrix.com>
Thu, 10 Sep 2015 10:18:57 +0000 (11:18 +0100)
committerDavid S. Miller <davem@davemloft.net>
Thu, 10 Sep 2015 17:11:48 +0000 (10:11 -0700)
commit4c82ac3c37363e8c4ded6a5fe1ec5fa756b34df3
tree04627a9acfd0dfb8f56d69bdb9d24e976d82cbc1
parent420203204eada39cfe0e8eb65e609da7b209cf33
xen-netback: respect user provided max_queues

Originally that parameter was always reset to num_online_cpus during
module initialisation, which renders it useless.

The fix is to only set max_queues to num_online_cpus when user has not
provided a value.

Reported-by: Johnny Strom <johnny.strom@linuxsolutions.fi>
Signed-off-by: Wei Liu <wei.liu2@citrix.com>
Reviewed-by: David Vrabel <david.vrabel@citrix.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/xen-netback/netback.c