]> git.baikalelectronics.ru Git - kernel.git/commit
hv_netvsc: Use the num_online_cpus() for channel limit
authorHaiyang Zhang <haiyangz@microsoft.com>
Fri, 19 Jan 2018 20:26:43 +0000 (13:26 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 22 Jan 2018 21:24:08 +0000 (16:24 -0500)
commit42c46a722045cafa1c3d14034360317cdd130463
tree4e45592e16f7b1b59e437aa1ef4053c972a7bee2
parent1004c64ee7843843e332cc42800422553fe0ee14
hv_netvsc: Use the num_online_cpus() for channel limit

Since we no longer localize channel/CPU affiliation within one NUMA
node, num_online_cpus() is used as the number of channel cap, instead of
the number of processors in a NUMA node.

This patch allows a bigger range for tuning the number of channels.

Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/hyperv/rndis_filter.c