From: Andrew Schwartzmeyer Date: Wed, 12 Aug 2015 00:14:31 +0000 (-0700) Subject: hv_netvsc: Set vRSS with num_chn in RNDIS filter X-Git-Tag: omap-for-v4.3/fixes-rc1~110^2~187 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8ebdcc52b9b8a53e3ba2643f515d41fff44d4743;p=pandora-kernel.git 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 Reviewed-by: Haiyang Zhang Signed-off-by: David S. Miller --- Reading git-diff-tree failed