Skip to content

Commit b5a049a

Browse files
Jiawen WuNipaLocal
authored andcommitted
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: 46b92e1 ("net: libwx: support hardware statistics") Cc: [email protected] Signed-off-by: Jiawen Wu <[email protected]> Reviewed-by: Simon Horman <[email protected]> Signed-off-by: NipaLocal <nipa@local>
1 parent 4c4c1db commit b5a049a

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
@@ -2786,6 +2786,8 @@ void wx_update_stats(struct wx *wx)
27862786
hwstats->fdirmiss += rd32(wx, WX_RDB_FDIR_MISS);
27872787
}
27882788

2789+
/* qmprc is not cleared on read, manual reset it */
2790+
hwstats->qmprc = 0;
27892791
for (i = wx->num_vfs * wx->num_rx_queues_per_pool;
27902792
i < wx->mac.max_rx_queues; i++)
27912793
hwstats->qmprc += rd32(wx, WX_PX_MPRC(i));

0 commit comments

Comments
 (0)