diff options
author | stephen hemminger <stephen@networkplumber.org> | 2017-08-09 17:46:12 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-08-11 14:00:07 -0700 |
commit | cad5c197704d82faf33ffdbef414f15db08d9ef9 (patch) | |
tree | cf0ded26e32303739cb21d1357a799438f901cc2 /drivers/net/hyperv/netvsc_drv.c | |
parent | 8b5327975ae171ca54dfd93e6c042d1292945867 (diff) | |
download | op-kernel-dev-cad5c197704d82faf33ffdbef414f15db08d9ef9.zip op-kernel-dev-cad5c197704d82faf33ffdbef414f15db08d9ef9.tar.gz |
netvsc: keep track of some non-fatal overload conditions
Add ethtool statistics for case where send chimmeny buffer is
exhausted and driver has to fall back to doing scatter/gather
send. Also, add statistic for case where ring buffer is full and
receive completions are delayed.
Signed-off-by: Stephen Hemminger <sthemmin@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.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/hyperv/netvsc_drv.c b/drivers/net/hyperv/netvsc_drv.c index 873c83a..b33f050 100644 --- a/drivers/net/hyperv/netvsc_drv.c +++ b/drivers/net/hyperv/netvsc_drv.c @@ -1112,6 +1112,8 @@ static const struct { { "tx_no_space", offsetof(struct netvsc_ethtool_stats, tx_no_space) }, { "tx_too_big", offsetof(struct netvsc_ethtool_stats, tx_too_big) }, { "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) }, }, vf_stats[] = { { "vf_rx_packets", offsetof(struct netvsc_vf_pcpu_stats, rx_packets) }, { "vf_rx_bytes", offsetof(struct netvsc_vf_pcpu_stats, rx_bytes) }, |