From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by dpdk.space (Postfix) with ESMTP id 2A0F6A00E6 for ; Tue, 11 Jun 2019 12:53:50 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id D887C1C3AB; Tue, 11 Jun 2019 12:53:44 +0200 (CEST) Received: from mx0b-0016f401.pphosted.com (mx0b-0016f401.pphosted.com [67.231.156.173]) by dpdk.org (Postfix) with ESMTP id 8C6471C385 for ; Tue, 11 Jun 2019 12:53:40 +0200 (CEST) Received: from pps.filterd (m0045851.ppops.net [127.0.0.1]) by mx0b-0016f401.pphosted.com (8.16.0.27/8.16.0.27) with SMTP id x5BAf4fh019518; Tue, 11 Jun 2019 03:53:39 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : mime-version : content-type; s=pfpt0818; bh=4lvuZfZFrL/kAiNakZSfadWdmQtcacO2eRLdfKDQOno=; b=I73KUHX34hX4uYhz97a7Q0vcG4/yxh/yR0I22av5Wr3EZ9BWtnMmEpErRyTVEkvlGmnU nvn7ujrOiWe9ztN0wLIxgHf7so0eGA0zE/Jk6Z0GaVZUWLgX+5Kqupz4ytWwwqykfIVu aEk3rlK2MfPmYCqAekZkOiYLar3Mu7RwJ8pE42JJaw26XJpVCG5UBRL/0NZfnUd0ln9w 4AP9E3VmEuewwbSVLj142w2pqLG9rBnTDwplcWL9CexGAqkQDo8CCvwCe+h366JyznNz 5Vak051ZLbIrYB3Uqmhud7q9Agp5YL3gMKu/6BPTbyrae72iCTE5D4kgklvx0uN/e2rf Ow== Received: from sc-exch02.marvell.com ([199.233.58.182]) by mx0b-0016f401.pphosted.com with ESMTP id 2t20f4tb7r-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT); Tue, 11 Jun 2019 03:53:38 -0700 Received: from SC-EXCH01.marvell.com (10.93.176.81) by SC-EXCH02.marvell.com (10.93.176.82) with Microsoft SMTP Server (TLS) id 15.0.1367.3; Tue, 11 Jun 2019 03:53:36 -0700 Received: from maili.marvell.com (10.93.176.43) by SC-EXCH01.marvell.com (10.93.176.81) with Microsoft SMTP Server id 15.0.1367.3 via Frontend Transport; Tue, 11 Jun 2019 03:53:36 -0700 Received: from pt-lxl0023.marvell.com (pt-lxl0023.marvell.com [10.5.213.12]) by maili.marvell.com (Postfix) with ESMTP id 931C33F7044; Tue, 11 Jun 2019 03:53:35 -0700 (PDT) From: To: CC: , , Liron Himi Date: Tue, 11 Jun 2019 16:06:45 +0300 Message-ID: <1560258407-26378-2-git-send-email-lironh@marvell.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1560258407-26378-1-git-send-email-lironh@marvell.com> References: <1560258407-26378-1-git-send-email-lironh@marvell.com> MIME-Version: 1.0 Content-Type: text/plain X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:, , definitions=2019-06-11_05:, , signatures=0 Subject: [dpdk-dev] [PATCH 1/3] net/mvneta: fix: ierror counted twice X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" From: Liron Himi Change-Id: Ieaac221e774e4caf1f9105e6761540df04313d4f Signed-off-by: Liron Himi Reviewed-by: Yuri Chipchev Tested-by: Liron Himi --- drivers/net/mvneta/mvneta_ethdev.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/drivers/net/mvneta/mvneta_ethdev.c b/drivers/net/mvneta/mvneta_ethdev.c index 9657444..d6e64a8 100644 --- a/drivers/net/mvneta/mvneta_ethdev.c +++ b/drivers/net/mvneta/mvneta_ethdev.c @@ -707,10 +707,7 @@ mvneta_stats_get(struct rte_eth_dev *dev, struct rte_eth_stats *stats) stats->imissed += ppio_stats.rx_discard + ppio_stats.rx_overrun - priv->prev_stats.imissed; - - stats->ierrors = ppio_stats.rx_packets_err + - ppio_stats.rx_errors + - ppio_stats.rx_crc_error - + stats->ierrors = ppio_stats.rx_packets_err - priv->prev_stats.ierrors; stats->oerrors = ppio_stats.tx_errors - priv->prev_stats.oerrors; -- 2.7.4