From bbb2b5d9fe772c43faa5bf73d64f1c8208fa8752 Mon Sep 17 00:00:00 2001 From: Tom Crugnale Date: Tue, 6 Dec 2016 15:16:21 -0500 Subject: [PATCH] net/i40evf: fix reporting of imissed packets Missed packets on RX were erroneously being assigned to the ierrors struct member. Change it to be assigned to imissed. Fixes: 4861cde46116 ("i40e: new poll mode driver") Cc: stable@dpdk.org Signed-off-by: Tom Crugnale Acked-by: Jingjing Wu --- drivers/net/i40e/i40e_ethdev_vf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/i40e/i40e_ethdev_vf.c b/drivers/net/i40e/i40e_ethdev_vf.c index cbcab366c2..55fd344255 100644 --- a/drivers/net/i40e/i40e_ethdev_vf.c +++ b/drivers/net/i40e/i40e_ethdev_vf.c @@ -980,7 +980,7 @@ i40evf_get_statistics(struct rte_eth_dev *dev, struct rte_eth_stats *stats) pstats->rx_broadcast; stats->opackets = pstats->tx_broadcast + pstats->tx_multicast + pstats->tx_unicast; - stats->ierrors = pstats->rx_discards; + stats->imissed = pstats->rx_discards; stats->oerrors = pstats->tx_errors + pstats->tx_discards; stats->ibytes = pstats->rx_bytes; stats->obytes = pstats->tx_bytes; -- 2.20.1