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 0F0604265B for ; Thu, 28 Sep 2023 07:05:39 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 05F1640277; Thu, 28 Sep 2023 07:05:39 +0200 (CEST) Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.93]) by mails.dpdk.org (Postfix) with ESMTP id 806CD40150; Thu, 28 Sep 2023 07:05:36 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1695877536; x=1727413536; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=vVvam9VrMir2wlPS3EiiBEYrCWh7GZDkgqhSw23g0k4=; b=BYBqeXNAA+BGG7HY8YuabffvusyO+hG9ENHAykT7VPNNf34XrlrcS5lC D9Eguj47gb/Gzv+qDYj7Dj7IHhPWuBFy9SqdEeqcBZB0PbRJcFhEvEpqA YXPRph3HPZFAw/W6Vuume8MQNxP4MqY3/02ixwbpc71hiX2TUbZK0SDBt KvPHh2btZjP92TGmZ87TqMx/RtVlBfaaYYBDxhgn7XewshTxvm6nL8NHf q7pcQsEqRscLPKPYigcJVu96E5hootTiP0ZCaJpepksDmdY6SSQq6XR2A ZibILhfefBxpwlKuH/4JJu+6NFCx1nJaif+kmW5hmZFDOXRBPyqqjDxII g==; X-IronPort-AV: E=McAfee;i="6600,9927,10846"; a="379263064" X-IronPort-AV: E=Sophos;i="6.03,183,1694761200"; d="scan'208";a="379263064" Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 27 Sep 2023 22:05:30 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10846"; a="819718934" X-IronPort-AV: E=Sophos;i="6.03,183,1694761200"; d="scan'208";a="819718934" Received: from dpdk-wenjing-02.sh.intel.com ([10.67.119.3]) by fmsmga004.fm.intel.com with ESMTP; 27 Sep 2023 22:05:28 -0700 From: yuying.zhang@intel.com To: yuying.zhang@intel.com, dev@dpdk.org, qi.z.zhang@intel.com, jingjing.wu@intel.com, beilei.xing@intel.com Cc: stable@dpdk.org Subject: [PATCH v1] net/idpf: fix incorrect status calculation Date: Thu, 28 Sep 2023 05:05:20 +0000 Message-Id: <20230928050520.2327245-1-yuying.zhang@intel.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: stable-bounces@dpdk.org From: Yuying Zhang Fix the incorrect ingress packet number calculation. Fixes: 7514d76d407b ("net/idpf: add basic statistics") Cc: stable@dpdk.org Signed-off-by: Yuying Zhang --- drivers/net/idpf/idpf_ethdev.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/idpf/idpf_ethdev.c b/drivers/net/idpf/idpf_ethdev.c index 3af7cf0bb7..6ae2ac2681 100644 --- a/drivers/net/idpf/idpf_ethdev.c +++ b/drivers/net/idpf/idpf_ethdev.c @@ -281,7 +281,7 @@ idpf_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->ierrors = pstats->rx_errors; -- 2.34.1