]> git.ipfire.org Git - thirdparty/linux.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)
commit25a39f7f975c3c26a0052fbf9b59201c06744332
tree4e45592e16f7b1b59e437aa1ef4053c972a7bee2
parente158624155f194da6fcaea67639f91c2a467bddf
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