]> 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)
commit34976475cacf11a35a042b29da58aa52d353b865
tree9cbcea09436f40bba4405afc4b7e2dabd5b2417c
parent24ef7f63e723eda8e5a80953a10b9bdb6c737468
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