Skip to content

Commit fd6abf8

Browse files
Jiawen Wugregkh
authored andcommitted
net: libwx: fix multicast packets received count
commit 2b30a3d 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: 46b92e1 ("net: libwx: support hardware statistics") Cc: [email protected] Signed-off-by: Jiawen Wu <[email protected]> Reviewed-by: Simon Horman <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Jakub Kicinski <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent 30a279c commit fd6abf8

File tree

1 file changed

+2
-0
lines changed
  • drivers/net/ethernet/wangxun/libwx

1 file changed

+2
-0
lines changed

drivers/net/ethernet/wangxun/libwx/wx_hw.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2523,6 +2523,8 @@ void wx_update_stats(struct wx *wx)
25232523
hwstats->fdirmiss += rd32(wx, WX_RDB_FDIR_MISS);
25242524
}
25252525

2526+
/* qmprc is not cleared on read, manual reset it */
2527+
hwstats->qmprc = 0;
25262528
for (i = 0; i < wx->mac.max_rx_queues; i++)
25272529
hwstats->qmprc += rd32(wx, WX_PX_MPRC(i));
25282530
}

0 commit comments

Comments
 (0)