From: Qiming Chen Date: Mon, 30 Aug 2021 03:31:57 +0000 (+0800) Subject: net/ixgbe: fix Rx multicast statistics after reset X-Git-Url: http://git.droids-corp.org/?p=dpdk.git;a=commitdiff_plain;h=8908691632a51a81d6ce27d3d12a8781842a7518 net/ixgbe: fix Rx multicast statistics after reset 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 Acked-by: Haiyue Wang --- 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; }