From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 5D018425A3; Fri, 15 Sep 2023 11:03:24 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 009FE40A79; Fri, 15 Sep 2023 11:02:49 +0200 (CEST) Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.120]) by mails.dpdk.org (Postfix) with ESMTP id BE9614069D for ; Fri, 15 Sep 2023 11:02:46 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1694768567; x=1726304567; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=nYAWkt0MIoOQaMdr++xxFWc7HKtoFf1YTi+HcMB4Elc=; b=a9nz+sbsBWkG1RBAX3UEPzbtI837T8gN6jMwfyN/waY+SiKcgVAED2xO CpweOg8wGjDlGYLzXrc5Z8hC9thJRLdfyMixNnDc/8KTbw0M6ZMWYtsMx LfCPgYHfjznLkS399JITslZVWl7rZAVYiQ7Wql6OQxUG5jerK3WdKuiTz OpR7nqco80huc/w/LPPpYQiQU5ZfVdbSRY+LYL0xiTgaV0Qepu3yOB4F7 uStUmxl9AAfKrpryuXaC/jyKNWa+uC2PbLosnHJYvCpRkJGlzOhgsBY7p J/yxiUMLhco/YXay4Lc/o1U7PX9YJpWWAJnOKfQfRV5CQ3WO2fcN6jqHP Q==; X-IronPort-AV: E=McAfee;i="6600,9927,10833"; a="378118139" X-IronPort-AV: E=Sophos;i="6.02,148,1688454000"; d="scan'208";a="378118139" Received: from orsmga004.jf.intel.com ([10.7.209.38]) by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 15 Sep 2023 02:02:18 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10833"; a="868631068" X-IronPort-AV: E=Sophos;i="6.02,148,1688454000"; d="scan'208";a="868631068" Received: from dpdk-pengyuan-mev.sh.intel.com ([10.67.119.128]) by orsmga004.jf.intel.com with ESMTP; 15 Sep 2023 02:02:16 -0700 From: "Zhang, Yuying" To: yuying.zhang@intel.com, dev@dpdk.org, qi.z.zhang@intel.com, beilei.xing@intel.com, jingjing.wu@intel.com Cc: mingxia.liu@intel.com Subject: [PATCH v5 9/9] net/cpfl: fix incorrect status calculation Date: Fri, 15 Sep 2023 10:00:47 +0000 Message-Id: <20230915100047.90153-10-yuying.zhang@intel.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230915100047.90153-1-yuying.zhang@intel.com> References: <20230906093407.3635038-1-wenjing.qiao@intel.com> <20230915100047.90153-1-yuying.zhang@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org From: Yuying Zhang Fix the incorrect ingress packet number calculation. Fixes: e3289d8fb63f ("net/cpfl: support basic statistics") Signed-off-by: Yuying Zhang --- drivers/net/cpfl/cpfl_ethdev.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/cpfl/cpfl_ethdev.c b/drivers/net/cpfl/cpfl_ethdev.c index cb407e66af..5b5abc7684 100644 --- a/drivers/net/cpfl/cpfl_ethdev.c +++ b/drivers/net/cpfl/cpfl_ethdev.c @@ -322,7 +322,7 @@ cpfl_dev_stats_get(struct rte_eth_dev *dev, struct rte_eth_stats *stats) idpf_vport_stats_update(&vport->eth_stats_offset, pstats); stats->ipackets = pstats->rx_unicast + pstats->rx_multicast + - pstats->rx_broadcast - pstats->rx_discards; + pstats->rx_broadcast; stats->opackets = pstats->tx_broadcast + pstats->tx_multicast + pstats->tx_unicast; stats->imissed = pstats->rx_discards; -- 2.34.1