OSDN Git Service

hv_netvsc: report stop_queue and wake_queue
authorSimon Xiao <sixiao@microsoft.com>
Fri, 29 Sep 2017 18:39:46 +0000 (11:39 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sun, 1 Oct 2017 03:10:30 +0000 (04:10 +0100)
commit09af87d18f6ba05588e6316c47fdacf06e28cce8
tree15e85eec8cb6d92fbd5386303d3c70836e90385c
parent721e08dad17e226ef68819d0a23dc53c25fe8ea5
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>
drivers/net/hyperv/hyperv_net.h
drivers/net/hyperv/netvsc.c
drivers/net/hyperv/netvsc_drv.c