]> git.baikalelectronics.ru Git - kernel.git/commit
hv_netvsc: Set vRSS with num_chn in RNDIS filter
authorAndrew Schwartzmeyer <andschwa@microsoft.com>
Wed, 12 Aug 2015 00:14:31 +0000 (17:14 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 12 Aug 2015 21:45:38 +0000 (14:45 -0700)
commitd6674fab22f656d1979870a7701a04e12c533ce9
treeb9d83ff663e11cb4c38199b4e4fa8d4d668b9de0
parent6c0f7e0d92dc77dec3919096201cb155fb205006
hv_netvsc: Set vRSS with num_chn in RNDIS filter

Uses device_info->num_chn to pass user provided number of vRSS
queues (from ethtool --set-channels) to rndis_filter_device_add. If
nonzero and less than the maximum, set net_device->num_chn to the given
value; else default to prior algorithm.

Always initialize struct device_info to 0, otherwise not all its fields
are guaranteed to be 0, which is necessary when checking if num_chn has
been purposefully set.

Signed-off-by: Andrew Schwartzmeyer <andschwa@microsoft.com>
Reviewed-by: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/hyperv/hyperv_net.h
drivers/net/hyperv/netvsc_drv.c
drivers/net/hyperv/rndis_filter.c