]> www.infradead.org Git - users/jedix/linux-maple.git/commit
net: libwx: Fix statistics of multicast packets
authorJiawen Wu <jiawenwu@trustnetic.com>
Fri, 23 May 2025 08:04:37 +0000 (16:04 +0800)
committerJakub Kicinski <kuba@kernel.org>
Wed, 28 May 2025 01:17:11 +0000 (18:17 -0700)
commit06ac0776d549d93adf23c823b810118980265ad9
tree09051e82c8ed4768dc382b9462d80995453162d5
parente9cb929670a1e98b592b30f03f06e9e20110f318
net: libwx: Fix statistics of multicast packets

When SR-IOV is enabled, the number of multicast packets is mistakenly
counted starting from queue 0. It would be a wrong count that includes
the packets received on VF. Fix it to count from the correct offset.

Fixes: c52d4b898901 ("net: libwx: Redesign flow when sriov is enabled")
Signed-off-by: Jiawen Wu <jiawenwu@trustnetic.com>
Reviewed-by: Simon Horman <horms@kernel.org>
Link: https://patch.msgid.link/F70910CFE86C1F6F+20250523080438.27968-1-jiawenwu@trustnetic.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/wangxun/libwx/wx_hw.c