ethdev: fix reset of Rx mbuf allocation failures
authorIgor Ryzhov <iryzhov@nfware.com>
Fri, 27 Nov 2015 10:31:06 +0000 (13:31 +0300)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Mon, 7 Dec 2015 03:55:31 +0000 (04:55 +0100)
commite1cf0d085327c0057ca4961c939381b237f06111
tree3474a1a7df62809f6974cba6119053f65f5bf97b
parent57ccb278088fae9edc664893037e35cec8dea181
ethdev: fix reset of Rx mbuf allocation failures

The rx_mbuf_alloc_failed counter was only cleared by virtio driver.
Now it is cleared by common rte_eth_stats_reset function for all
drivers at once.

Signed-off-by: Igor Ryzhov <iryzhov@nfware.com>
Acked-by: Thomas Monjalon <thomas.monjalon@6wind.com>
drivers/net/virtio/virtio_ethdev.c
lib/librte_ether/rte_ethdev.c