net/avp: fix RxQ errors stat
authorDavid Marchand <david.marchand@redhat.com>
Mon, 4 Mar 2019 11:18:25 +0000 (12:18 +0100)
committerFerruh Yigit <ferruh.yigit@intel.com>
Thu, 6 Jun 2019 11:21:19 +0000 (20:21 +0900)
Transmit errors must not be reported in q_errors[] which is for
reception.

Fixes: 5a5abe2de94b ("net/avp: add device statistics operations")
Cc: stable@dpdk.org
Signed-off-by: David Marchand <david.marchand@redhat.com>
Acked-by: Allain Legacy <allain.legacy@windriver.com>
drivers/net/avp/avp_ethdev.c

index bd5eba4..57af515 100644 (file)
@@ -2229,7 +2229,6 @@ avp_dev_stats_get(struct rte_eth_dev *eth_dev, struct rte_eth_stats *stats)
 
                        stats->q_opackets[i] += txq->packets;
                        stats->q_obytes[i] += txq->bytes;
-                       stats->q_errors[i] += txq->errors;
                }
        }