From: Andrew Schwartzmeyer Date: Wed, 12 Aug 2015 00:14:32 +0000 (-0700) Subject: hv_netvsc: Implement set_channels ethtool op X-Git-Tag: omap-for-v4.3/fixes-rc1~110^2~186 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b5960e6e2b5c52520cec5888c3feb71b71ba1980;p=pandora-kernel.git hv_netvsc: Implement set_channels ethtool op This enables the use of ethtool --set-channels devname combined N to change the number of vRSS queues. Separate rx, tx, and other parameters are not supported. The maximum is rsscap.num_recv_que. It passes the given value to rndis_filter_device_add through the device_info->num_chn field. If the procedure fails, it attempts to recover to the prior state. If the recovery fails, it logs an error and aborts. Current num_chn is saved and restored when changing the MTU. Signed-off-by: Andrew Schwartzmeyer Reviewed-by: Haiyang Zhang Signed-off-by: David S. Miller --- Reading git-diff-tree failed