net/avp: fix RxQ errors stat

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

Fixes: 5a5abe2de9 ("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>
This commit is contained in:
David Marchand 2019-03-04 12:18:25 +01:00 committed by Ferruh Yigit
parent 3b79ed8a39
commit f75916cf88

View 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;
}
}