net/bnxt: fix RxQ errors stat
authorDavid Marchand <david.marchand@redhat.com>
Mon, 4 Mar 2019 11:18:26 +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: 577d3dced0dc ("net/bnxt: refactor the query stats")
Cc: stable@dpdk.org
Signed-off-by: David Marchand <david.marchand@redhat.com>
Reviewed-by: Ferruh Yigit <ferruh.yigit@intel.com>
drivers/net/bnxt/bnxt_hwrm.c

index 4f0142c..c5aca89 100644 (file)
@@ -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);
        }