summaryrefslogtreecommitdiffstats
path: root/drivers/net/hyperv/netvsc_drv.c
diff options
context:
space:
mode:
authorSimon Xiao2017-09-29 20:39:46 +0200
committerDavid S. Miller2017-10-01 05:10:30 +0200
commit09af87d18f6ba05588e6316c47fdacf06e28cce8 (patch)
tree15e85eec8cb6d92fbd5386303d3c70836e90385c /drivers/net/hyperv/netvsc_drv.c
parentbpf: Fix compiler warning on info.map_ids for 32bit platform (diff)
downloadkernel-qcow2-linux-09af87d18f6ba05588e6316c47fdacf06e28cce8.tar.gz
kernel-qcow2-linux-09af87d18f6ba05588e6316c47fdacf06e28cce8.tar.xz
kernel-qcow2-linux-09af87d18f6ba05588e6316c47fdacf06e28cce8.zip
hv_netvsc: report stop_queue and wake_queue
Report the numbers of events for stop_queue and wake_queue in ethtool stats. Example: ethtool -S eth0 NIC statistics: ... stop_queue: 7 wake_queue: 7 ... Signed-off-by: Simon Xiao <sixiao@microsoft.com> Reviewed-by: Haiyang Zhang <haiyangz@microsoft.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/hyperv/netvsc_drv.c')
-rw-r--r--drivers/net/hyperv/netvsc_drv.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/hyperv/netvsc_drv.c b/drivers/net/hyperv/netvsc_drv.c
index e9d54c9ee78c..f300ae61c6c6 100644
--- a/drivers/net/hyperv/netvsc_drv.c
+++ b/drivers/net/hyperv/netvsc_drv.c
@@ -1126,6 +1126,8 @@ static const struct {
{ "tx_busy", offsetof(struct netvsc_ethtool_stats, tx_busy) },
{ "tx_send_full", offsetof(struct netvsc_ethtool_stats, tx_send_full) },
{ "rx_comp_busy", offsetof(struct netvsc_ethtool_stats, rx_comp_busy) },
+ { "stop_queue", offsetof(struct netvsc_ethtool_stats, stop_queue) },
+ { "wake_queue", offsetof(struct netvsc_ethtool_stats, wake_queue) },
}, vf_stats[] = {
{ "vf_rx_packets", offsetof(struct netvsc_vf_pcpu_stats, rx_packets) },
{ "vf_rx_bytes", offsetof(struct netvsc_vf_pcpu_stats, rx_bytes) },