From 5f05e95cd5d90c2132bbb238ef46638f68b478da Mon Sep 17 00:00:00 2001 From: Tetsuya Mukawa Date: Fri, 24 Jun 2016 11:04:20 +0900 Subject: [PATCH] net/vhost: fix Tx error counting According to 'rte_eth_stats' structure comments, 'imissed' should represent RX error counting, but currently 'imissed' is used to count TX error. The patch replaces 'imissed' by 'oerrors'. Fixes: ee584e9710b9 ("vhost: add driver on top of the library") Signed-off-by: Tetsuya Mukawa Acked-by: Yuanhan Liu --- drivers/net/vhost/rte_eth_vhost.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/vhost/rte_eth_vhost.c b/drivers/net/vhost/rte_eth_vhost.c index c5bbb87fd4..3b5094653f 100644 --- a/drivers/net/vhost/rte_eth_vhost.c +++ b/drivers/net/vhost/rte_eth_vhost.c @@ -594,7 +594,7 @@ eth_stats_get(struct rte_eth_dev *dev, struct rte_eth_stats *stats) stats->ipackets = rx_total; stats->opackets = tx_total; - stats->imissed = tx_missed_total; + stats->oerrors = tx_missed_total; stats->ibytes = rx_total_bytes; stats->obytes = tx_total_bytes; } -- 2.20.1