Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

net: libwx: fix multicast packets received count

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>

authored by

Jiawen Wu and committed by
Jakub Kicinski
2b30a3d1 d4f9b884

+2
+2
drivers/net/ethernet/wangxun/libwx/wx_hw.c
··· 2777 2777 hwstats->fdirmiss += rd32(wx, WX_RDB_FDIR_MISS); 2778 2778 } 2779 2779 2780 + /* qmprc is not cleared on read, manual reset it */ 2781 + hwstats->qmprc = 0; 2780 2782 for (i = wx->num_vfs * wx->num_rx_queues_per_pool; 2781 2783 i < wx->mac.max_rx_queues; i++) 2782 2784 hwstats->qmprc += rd32(wx, WX_PX_MPRC(i));