]> git.baikalelectronics.ru Git - kernel.git/commit
netvsc: change max channel calculation
authorstephen hemminger <stephen@networkplumber.org>
Wed, 22 Mar 2017 21:50:59 +0000 (14:50 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 23 Mar 2017 02:38:56 +0000 (19:38 -0700)
commitbcb074c31050d542ab074a4f9897ff78cfc74932
treef02066f3d26e4024324a93d062217a0b5ad3f941
parent4fe71020caa354a022a7cc9979dc5ef3e9c7399b
netvsc: change max channel calculation

The default number of maximum channels should be limited to the
number of cpus available on the numa node of the primary channel.
This also makes sure maximum channels <= num_online_cpus

Signed-off-by: Stephen Hemminger <sthemmin@microsoft.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/hyperv/netvsc_drv.c
drivers/net/hyperv/rndis_filter.c