From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Marchand Subject: [PATCH 11/12] net/szedata2: fix incorrect rxq errors stat Date: Mon, 4 Mar 2019 12:18:34 +0100 Message-ID: <1551698315-2611-12-git-send-email-david.marchand@redhat.com> References: <1551698315-2611-1-git-send-email-david.marchand@redhat.com> Cc: stable@dpdk.org, Jan Remes To: dev@dpdk.org Return-path: In-Reply-To: <1551698315-2611-1-git-send-email-david.marchand@redhat.com> List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" Transmit errors must not be reported in q_errors[] which is for reception. Fixes: abef3dd62e7a ("szedata2: add new poll mode driver") Cc: stable@dpdk.org Cc: Jan Remes Signed-off-by: David Marchand --- drivers/net/szedata2/rte_eth_szedata2.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/net/szedata2/rte_eth_szedata2.c b/drivers/net/szedata2/rte_eth_szedata2.c index 88448ef..a6fbfe3 100644 --- a/drivers/net/szedata2/rte_eth_szedata2.c +++ b/drivers/net/szedata2/rte_eth_szedata2.c @@ -1093,7 +1093,6 @@ struct szedata2_tx_queue { if (i < RTE_ETHDEV_QUEUE_STAT_CNTRS) { stats->q_opackets[i] = txq->tx_pkts; stats->q_obytes[i] = txq->tx_bytes; - stats->q_errors[i] = txq->err_pkts; } tx_total += txq->tx_pkts; tx_total_bytes += txq->tx_bytes; -- 1.8.3.1