[dpdk-dev] [PATCH 02/12] net/avp: fix incorrect rxq errors stat

David Marchand david.marchand at redhat.com
Mon Mar 4 12:18:25 CET 2019


Transmit errors must not be reported in q_errors[] which is for
reception.

Fixes: 5a5abe2de94b ("net/avp: add device statistics operations")
Cc: stable at dpdk.org
Cc: Allain Legacy <allain.legacy at windriver.com>
Cc: Matt Peters <matt.peters at windriver.com>
Signed-off-by: David Marchand <david.marchand at redhat.com>
---
 drivers/net/avp/avp_ethdev.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/drivers/net/avp/avp_ethdev.c b/drivers/net/avp/avp_ethdev.c
index 09388d0..5d069a2 100644
--- a/drivers/net/avp/avp_ethdev.c
+++ b/drivers/net/avp/avp_ethdev.c
@@ -2228,7 +2228,6 @@ struct avp_queue {
 
 			stats->q_opackets[i] += txq->packets;
 			stats->q_obytes[i] += txq->bytes;
-			stats->q_errors[i] += txq->errors;
 		}
 	}
 
-- 
1.8.3.1



More information about the dev mailing list