]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit2263ca109829a41c937b46798ed3c0d95eab88b9
tree04627a9acfd0dfb8f56d69bdb9d24e976d82cbc1
parent13e3c572c2b3aaf6895848d41e9c389da77830d6
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