]> 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)
commit72e020b8a5483b5691bff11e539a810f1a782c2f
treef02066f3d26e4024324a93d062217a0b5ad3f941
parent368bb52056375563132ae3a043896bfb34d98d27
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