diff options
| author | Stephen Hemminger <[email protected]> | 2017-12-13 00:48:36 +0000 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2017-12-13 20:57:38 +0000 |
| commit | f61a9d62b27e21e23eafdc058f1c300a2a31b204 (patch) | |
| tree | 9cbcea09436f40bba4405afc4b7e2dabd5b2417c /drivers/net/hyperv/hyperv_net.h | |
| parent | hv_netvsc: copy_to_send buf can be void (diff) | |
| download | kernel-f61a9d62b27e21e23eafdc058f1c300a2a31b204.tar.gz kernel-f61a9d62b27e21e23eafdc058f1c300a2a31b204.zip | |
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 <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
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 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; }; |
