hv_netvsc: track memory allocation failures in ethtool stats
authorStephen Hemminger <stephen@networkplumber.org>
Wed, 13 Dec 2017 00:48:36 +0000 (16:48 -0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 13 Dec 2017 20:57:38 +0000 (15:57 -0500)
commitf61a9d62b27e21e23eafdc058f1c300a2a31b204
tree9cbcea09436f40bba4405afc4b7e2dabd5b2417c
parent26a112626d28d6bc0d9c8817682ca71adb99f413
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>
drivers/net/hyperv/hyperv_net.h
drivers/net/hyperv/netvsc_drv.c