commit | 9efc2f7dcd06e04d7b6a3032ae65bfd628b1aebe | [log] [tgz] |
---|---|---|
author | Haiyang Zhang <haiyangz@microsoft.com> | Wed Mar 23 09:43:10 2016 -0700 |
committer | David S. Miller <davem@davemloft.net> | Wed Mar 23 14:38:55 2016 -0400 |
tree | b1177296ef91d34aadc8307915de09240e76eaf9 | |
parent | d212b4633c3a99561939f2d423eacf3263850bcd [diff] |
hv_netvsc: Fix the array sizes to be max supported channels The VRSS_CHANNEL_MAX is the max number of channels supported by Hyper-V hosts. We use it for the related array sizes instead of using NR_CPUS, which may be set to several thousands. This patch reduces possible memory allocation failures. Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com> Reviewed-by: K. Y. Srinivasan <kys@microsoft.com> Signed-off-by: David S. Miller <davem@davemloft.net>