From: David Marchand Date: Mon, 4 Mar 2019 11:18:26 +0000 (+0100) Subject: net/bnxt: fix RxQ errors stat X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=eeb05ecc4d3686498d4515d5070e44bab93fad31;p=dpdk.git net/bnxt: fix RxQ errors stat Transmit errors must not be reported in q_errors[] which is for reception. Fixes: 577d3dced0dc ("net/bnxt: refactor the query stats") Cc: stable@dpdk.org Signed-off-by: David Marchand Reviewed-by: Ferruh Yigit --- diff --git a/drivers/net/bnxt/bnxt_hwrm.c b/drivers/net/bnxt/bnxt_hwrm.c index 4f0142cdbc..c5aca89b21 100644 --- a/drivers/net/bnxt/bnxt_hwrm.c +++ b/drivers/net/bnxt/bnxt_hwrm.c @@ -3187,7 +3187,6 @@ int bnxt_hwrm_ctx_qstats(struct bnxt *bp, uint32_t cid, int idx, stats->q_obytes[idx] = rte_le_to_cpu_64(resp->tx_ucast_bytes); stats->q_obytes[idx] += rte_le_to_cpu_64(resp->tx_mcast_bytes); stats->q_obytes[idx] += rte_le_to_cpu_64(resp->tx_bcast_bytes); - stats->q_errors[idx] += rte_le_to_cpu_64(resp->tx_err_pkts); }