net: dsa: mt7530: modernize MIB handling + fix
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
Patches in v1 All 6 applied
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/6 | net: dsa: mt7530: generalize read port stats logicdrivers/ | +18 | 0 replies | Applied |
| 2/6 | net: dsa: mt7530: move pkt size and rx err MIB counter to rmon stats APIdrivers/ drivers/ | +72 | 0 replies | Applied |
| 3/6 | net: dsa: mt7530: move pause MIB counter to eth_ctrl stats APIdrivers/ drivers/ | +15 | 0 replies | Applied |
| 4/6 | net: dsa: mt7530: move pkt stats and err MIB counter to eth_mac stats APIdrivers/ drivers/ | +70 | 0 replies | Applied |
| 5/6 | net: dsa: mt7530: move remaining MIB counter to definedrivers/ drivers/ | +18 | 0 replies | Applied |
| 6/6 | net: dsa: mt7530: implement .get_stats64drivers/ | +46 | 0 replies | Applied |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
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