]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
hv_netvsc: Use the num_online_cpus() for channel limit
authorHaiyang Zhang <haiyangz@microsoft.com>
Mon, 14 May 2018 22:32:08 +0000 (15:32 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 25 May 2018 14:17:27 +0000 (16:17 +0200)
commit36a9609cef4a32a1cfd9b8c765671f11caf03a7d
treec41521481db7eeaab3be3a057c717315d9ec9e1b
parent4c5fef7789571672459e18170add13ca56f33246
hv_netvsc: Use the num_online_cpus() for channel limit

[ Commit 25a39f7f975c3c26a0052fbf9b59201c06744332 upstream. ]

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/hyperv/rndis_filter.c