]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commita9783d813ca5f9d351e754a22a9ff5fb8cf9d365
tree9cbcea09436f40bba4405afc4b7e2dabd5b2417c
parent8ed2610c19f084350cb6fe87e4e6adbdbdb6fa6a
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