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)
commit3071ada4916e26a8961c1b99f7766a73b9007bfc
treef02066f3d26e4024324a93d062217a0b5ad3f941
parent163891d7d42935e7499daa0646a8eb3c44504300
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