diff options
author | Andrew Schwartzmeyer <andrew@schwartzmeyer.com> | 2015-02-27 01:27:14 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-02-28 22:51:36 +0100 |
commit | 59995370dbca7636c105ddadc0447fab86ad3887 (patch) | |
tree | 99f9469b129665f94333926f397f4288bf1aacbf /drivers/net/hyperv/hyperv_net.h | |
parent | Merge branch 'tcp-tso' (diff) | |
download | linux-59995370dbca7636c105ddadc0447fab86ad3887.tar.xz linux-59995370dbca7636c105ddadc0447fab86ad3887.zip |
hyperv: Implement netvsc_get_channels() ethool op
This adds support for reporting the actual and maximum combined channels
count of the hv_netvsc driver via 'ethtool --show-channels'.
This required adding 'max_chn' to 'struct netvsc_device', and assigning
it 'rsscap.num_recv_que' in 'rndis_filter_device_add'. Now we can access
the combined maximum channel count via 'struct netvsc_device' in the
ethtool callback.
Signed-off-by: Andrew Schwartzmeyer <andrew@schwartzmeyer.com>
Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/hyperv/hyperv_net.h')
-rw-r--r-- | drivers/net/hyperv/hyperv_net.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/hyperv/hyperv_net.h b/drivers/net/hyperv/hyperv_net.h index 384ca4f4de4a..4815843a6019 100644 --- a/drivers/net/hyperv/hyperv_net.h +++ b/drivers/net/hyperv/hyperv_net.h @@ -634,6 +634,7 @@ struct netvsc_device { struct vmbus_channel *chn_table[NR_CPUS]; u32 send_table[VRSS_SEND_TAB_SIZE]; + u32 max_chn; u32 num_chn; atomic_t queue_sends[NR_CPUS]; |