[dpdk-dev] [PATCH 2/2] virtio: remove unnecessary rx_mbuf_alloc_failed counter clearing
Igor Ryzhov
iryzhov at nfware.com
Fri Nov 27 11:31:07 CET 2015
This counter is cleared in rte_eth_stats_reset.
Signed-off-by: Igor Ryzhov <iryzhov at nfware.com>
---
drivers/net/virtio/virtio_ethdev.c | 2 --
1 file changed, 2 deletions(-)
diff --git a/drivers/net/virtio/virtio_ethdev.c b/drivers/net/virtio/virtio_ethdev.c
index 74c00ee..f5b72a3 100644
--- a/drivers/net/virtio/virtio_ethdev.c
+++ b/drivers/net/virtio/virtio_ethdev.c
@@ -788,8 +788,6 @@ virtio_dev_stats_reset(struct rte_eth_dev *dev)
rxvq->broadcast = 0;
memset(rxvq->size_bins, 0, sizeof(rxvq->size_bins[0]) * 8);
}
-
- dev->data->rx_mbuf_alloc_failed = 0;
}
static void
--
2.4.9 (Apple Git-60)
More information about the dev
mailing list