aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/hyperv/hyperv_net.h
diff options
context:
space:
mode:
authorAndrew Schwartzmeyer <[email protected]>2015-08-12 00:14:31 +0000
committerDavid S. Miller <[email protected]>2015-08-12 21:45:38 +0000
commit8ebdcc52b9b8a53e3ba2643f515d41fff44d4743 (patch)
treeb9d83ff663e11cb4c38199b4e4fa8d4d668b9de0 /drivers/net/hyperv/hyperv_net.h
parentlan78xx: Remove BUG_ON() (diff)
downloadkernel-8ebdcc52b9b8a53e3ba2643f515d41fff44d4743.tar.gz
kernel-8ebdcc52b9b8a53e3ba2643f515d41fff44d4743.zip
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 <[email protected]> Reviewed-by: Haiyang Zhang <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'drivers/net/hyperv/hyperv_net.h')
-rw-r--r--drivers/net/hyperv/hyperv_net.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/hyperv/hyperv_net.h b/drivers/net/hyperv/hyperv_net.h
index 5ce7020ca530..5fa98f599b3d 100644
--- a/drivers/net/hyperv/hyperv_net.h
+++ b/drivers/net/hyperv/hyperv_net.h
@@ -162,6 +162,7 @@ struct netvsc_device_info {
bool link_state; /* 0 - link up, 1 - link down */
int ring_size;
u32 max_num_vrss_chns;
+ u32 num_chn;
};
enum rndis_device_state {