mirror of
https://github.com/logicog/RTLPlayground.git
synced 2026-10-29 17:54:14 +08:00
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:
1 parent
d2d7ab7ff1
commit
48c12fa0bb
2 files changed
+11
-11
No files matched your search
+8
-8
@@ -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");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user