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 928F8425A3; Fri, 15 Sep 2023 10:48:36 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 182A640E68; Fri, 15 Sep 2023 10:47:56 +0200 (CEST) Received: from mgamail.intel.com (mgamail.intel.com [134.134.136.31]) by mails.dpdk.org (Postfix) with ESMTP id 380F840A67 for ; Fri, 15 Sep 2023 10:47:47 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1694767667; x=1726303667; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=nYAWkt0MIoOQaMdr++xxFWc7HKtoFf1YTi+HcMB4Elc=; b=TDR3cKtfeJAbFF95TiQEsN50BKrJ9U++jevuBXOX86Eos9GsCN3wai4o /GN6mzZ5nZ8rxfiP/+wyzvDOEFPpDWhcE1PYP0sob6mikOwZBe9cRJZtC X5oPsZitVAsFW98RoOhprdbclSrsFYOtBV7oU3el7WTJsAAsjOZsl/2q3 nt//Cax1vjStxegU2lPNpnWuzDwb+3QlKeUPl8noaDpU0qW0XfJFpEq8T B8DRCKqRLnfXNLv1ye3L3k0CUakPHD0ljxxkfzzdSi5aOdIaO8kJC5dVZ +LirKN+xKUYWMCubn+V0OLSzmRuovCtZTexPzyYhZioX0GjX12Uy34v6c A==; X-IronPort-AV: E=McAfee;i="6600,9927,10833"; a="443265032" X-IronPort-AV: E=Sophos;i="6.02,148,1688454000"; d="scan'208";a="443265032" Received: from orsmga007.jf.intel.com ([10.7.209.58]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 15 Sep 2023 01:47:46 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10833"; a="738254414" X-IronPort-AV: E=Sophos;i="6.02,148,1688454000"; d="scan'208";a="738254414" Received: from dpdk-pengyuan-mev.sh.intel.com ([10.67.119.128]) by orsmga007.jf.intel.com with ESMTP; 15 Sep 2023 01:47:45 -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 v4 9/9] net/cpfl: fix incorrect status calculation Date: Tue, 15 Aug 2023 16:50:50 +0000 Message-Id: <20230815165050.86595-10-yuying.zhang@intel.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230815165050.86595-1-yuying.zhang@intel.com> References: <20230906093407.3635038-1-wenjing.qiao@intel.com> <20230815165050.86595-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