]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
net: libwx: fix multicast packets received count
authorJiawen Wu <jiawenwu@trustnetic.com>
Mon, 14 Jul 2025 01:56:56 +0000 (09:56 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 24 Jul 2025 06:58:41 +0000 (08:58 +0200)
commitfd6abf8f75db226c4985e283d4c45b6af1aae7b7
tree8f8ff197c0475454bd5a6047f4bd4bcfaee66583
parent30a279c3d8c1782112584bae7248aa5ad3bd4086
net: libwx: fix multicast packets received count

commit 2b30a3d1ec2538a1fd363fde746b9fe1d38abc77 upstream.

Multicast good packets received by PF rings that pass ethternet MAC
address filtering are counted for rtnl_link_stats64.multicast. The
counter is not cleared on read. Fix the duplicate counting on updating
statistics.

Fixes: 46b92e10d631 ("net: libwx: support hardware statistics")
Cc: stable@vger.kernel.org
Signed-off-by: Jiawen Wu <jiawenwu@trustnetic.com>
Reviewed-by: Simon Horman <horms@kernel.org>
Link: https://patch.msgid.link/DA229A4F58B70E51+20250714015656.91772-1-jiawenwu@trustnetic.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/ethernet/wangxun/libwx/wx_hw.c