Correct TX and RX good MIB counter

The counters for good TX and RX packages were swapped. Fix this
and also use propper names for the counters.
This commit is contained in:
logicog committed 2026-01-11 07:51:18 +01:00
1 parent d2d7ab7ff1
commit 48c12fa0bb
2 files changed
+11 -11

No files matched your search

+8 -8
View File
@@ -400,17 +400,17 @@ void port_stats_print(void) __banked
print_string("Up\t");
break;
}
STAT_GET(0x2f, i);
STAT_GET(STAT_COUNTER_TX_PKTS, i);
print_reg(RTL837X_STAT_V_LOW); write_char('\t');
STAT_GET(0x30, i);
STAT_GET(STAT_COUNTER_ERR_PKTS, i);
print_reg(RTL837X_STAT_V_LOW); write_char('\t');
STAT_GET(STAT_COUNTER_RX_PKTS, i);
print_reg(RTL837X_STAT_V_LOW); write_char('\t');
STAT_GET(STAT_COUNTER_ERR_PKTS, i);
print_reg(RTL837X_STAT_V_HIGH); write_char('\t');
STAT_GET(0x2e, i);
print_reg(RTL837X_STAT_V_LOW); write_char('\t');
STAT_GET(0x30, i);
print_reg(RTL837X_STAT_V_LOW); write_char('\t');
print_string("\n");
}
}