Skip to content

net: dsa: mt7530: modernize MIB handling + fix

Christian Marangi linux-arm-kernel linux-mediatek lkml netdev 1 version Applied

Status from this message: This series was applied to netdev/net-next.git (main)

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest6 patches 2 repliesApplied 6/6

Patches in v1 All 6 applied

#Subject and filesSizeRepliesApplied
1/6net: dsa: mt7530: generalize read port stats logicdrivers/net/dsa/mt7530.c+18 -80 repliesApplied
2/6net: dsa: mt7530: move pkt size and rx err MIB counter to rmon stats APIdrivers/net/dsa/mt7530.c drivers/net/dsa/mt7530.h+72 -160 repliesApplied
3/6net: dsa: mt7530: move pause MIB counter to eth_ctrl stats APIdrivers/net/dsa/mt7530.c drivers/net/dsa/mt7530.h+15 -20 repliesApplied
4/6net: dsa: mt7530: move pkt stats and err MIB counter to eth_mac stats APIdrivers/net/dsa/mt7530.c drivers/net/dsa/mt7530.h+70 -140 repliesApplied
5/6net: dsa: mt7530: move remaining MIB counter to definedrivers/net/dsa/mt7530.c drivers/net/dsa/mt7530.h+18 -90 repliesApplied
6/6net: dsa: mt7530: implement .get_stats64drivers/net/dsa/mt7530.c+46 -00 repliesApplied

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [net-next PATCH 0/6] net: dsa: mt7530: modernize MIB handling + fix

This small series modernize MIB handling for MT7530 and also implement .get_stats64.

It was reported that kernel and Switch MIB desync in scenario where a packet is forwarded from a port to another. In such case, the forwarding is offloaded and the kernel is not aware of the transmitted packet. To handle this, read the counter directly from Switch registers.

Christian Marangi (6):
net: dsa: mt7530: generalize read port stats logic
net: dsa: mt7530: move pkt size and rx err MIB counter to rmon stats
API
net: dsa: mt7530: move pause MIB counter to eth_ctrl stats API
net: dsa: mt7530: move pkt stats and err MIB counter to eth_mac stats
API
net: dsa: mt7530: move remaining MIB counter to define
net: dsa: mt7530: implement .get_stats64

 drivers/net/dsa/mt7530.c | 246 +++++++++++++++++++++++++++++++--------
 drivers/net/dsa/mt7530.h |  42 +++++++
 2 files changed, 239 insertions(+), 49 deletions(-)
Signature · 1 line
2.48.1