summaryrefslogtreecommitdiff
path: root/drivers/net/hyperv/hyperv_net.h
diff options
context:
space:
mode:
authorStephen Hemminger <stephen@networkplumber.org>2017-12-13 03:48:36 +0300
committerDavid S. Miller <davem@davemloft.net>2017-12-13 23:57:38 +0300
commitf61a9d62b27e21e23eafdc058f1c300a2a31b204 (patch)
tree9cbcea09436f40bba4405afc4b7e2dabd5b2417c /drivers/net/hyperv/hyperv_net.h
parent26a112626d28d6bc0d9c8817682ca71adb99f413 (diff)
downloadlinux-f61a9d62b27e21e23eafdc058f1c300a2a31b204.tar.xz
hv_netvsc: track memory allocation failures in ethtool stats
When skb can not be allocated, update ethtool statisitics rather than rx_dropped which is intended for netif_receive. Signed-off-by: Stephen Hemminger <sthemmin@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.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 845ddc7bba46..ef8c9fb7d2ef 100644
--- a/drivers/net/hyperv/hyperv_net.h
+++ b/drivers/net/hyperv/hyperv_net.h
@@ -705,6 +705,7 @@ struct netvsc_ethtool_stats {
unsigned long tx_busy;
unsigned long tx_send_full;
unsigned long rx_comp_busy;
+ unsigned long rx_no_memory;
unsigned long stop_queue;
unsigned long wake_queue;
};