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 6449BA0547; Mon, 30 Aug 2021 05:32:47 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id E518B4068A; Mon, 30 Aug 2021 05:32:46 +0200 (CEST) Received: from mail-m972.mail.163.com (mail-m972.mail.163.com [123.126.97.2]) by mails.dpdk.org (Postfix) with ESMTP id 4F2DD40142; Mon, 30 Aug 2021 05:32:44 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=163.com; s=s110527; h=From:Subject:Date:Message-Id:MIME-Version; bh=iMWG6 HjBmDzbNKUNdkGAk7Yjt9uQ0zrAsryClWPP81s=; b=XuLoPMOVgwi1I/tC+7Tki ZyQ5Slbc/4Q/+neQmtLVpidTZG9tMh7JNVfhGHP+JVLsL0dXKUJYQY3nXiB3YW/a LfCoSnw2EK6u5C9hHy7QYISWcoNtWpXBQ4/iZ0TAEaXhHtEGf9Xet1n7Ykpnxtks zW4moFcv/f0pZwNZZVOqR0= Received: from localhost.localdomain (unknown [124.160.214.152]) by smtp2 (Coremail) with SMTP id GtxpCgBnTxxWUSxhD9QrQg--.41318S2; Mon, 30 Aug 2021 11:32:41 +0800 (CST) From: Qiming Chen To: dev@dpdk.org Cc: haiyue.wang@intel.com, Qiming Chen , stable@dpdk.org Date: Mon, 30 Aug 2021 11:31:57 +0800 Message-Id: <20210830033157.4981-1-chenqiming_huawei@163.com> X-Mailer: git-send-email 2.30.1.windows.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-CM-TRANSID: GtxpCgBnTxxWUSxhD9QrQg--.41318S2 X-Coremail-Antispam: 1Uf129KBjvdXoWrtF1rAFy3CryfGFW5CrWDtwb_yoWfGwc_ur 1xZFW7Ar45Gw1FkF4Ykr43ZF1Skan8WF1kZr42qrZ5Xw1UXFZ5J3sYvrnxAws8Ww12yFn8 trnrG3yS9Fy7AjkaLaAFLSUrUUUUUb8apTn2vfkv8UJUUUU8Yxn0WfASr-VFAUDa7-sFnT 9fnUUvcSsGvfC2KfnxnUUI43ZEXa7IUYd73DUUUUU== X-Originating-IP: [124.160.214.152] X-CM-SenderInfo: xfkh01xlpl0w5bkxt4lhl6il2tof0z/1tbiDhr+oFXl1K3rGwAAsz Subject: [dpdk-dev] [PATCH] net/ixgbe: fix rx multicst count isn't clear 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 Sender: "dev" In the implementation of the vf driver ixgbevf_update_stats to obtain statistics, the multicast count hw_stats->vfmprc has been obtained, but it is not cleared in the corresponding ixgbevf_dev_stats_reset interface. Fixes: abf7275bbaa2 ("ixgbe: move to drivers/net/") Cc: stable@dpdk.org Signed-off-by: Qiming Chen --- drivers/net/ixgbe/ixgbe_ethdev.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/ixgbe/ixgbe_ethdev.c b/drivers/net/ixgbe/ixgbe_ethdev.c index b5371568b5..ccb01ed344 100644 --- a/drivers/net/ixgbe/ixgbe_ethdev.c +++ b/drivers/net/ixgbe/ixgbe_ethdev.c @@ -3798,6 +3798,7 @@ ixgbevf_dev_stats_reset(struct rte_eth_dev *dev) hw_stats->vfgorc = 0; hw_stats->vfgptc = 0; hw_stats->vfgotc = 0; + hw_stats->vfmprc = 0; return 0; } -- 2.30.1.windows.1