Skip to content
Snippets Groups Projects
Commit 29c7be1c authored by Markus Gothe's avatar Markus Gothe :ok_hand:
Browse files

airoha: Fix typo in TX counter.

The TX drop counter will incorrectly be overwritten
by the RX drop counter.

This commit solves this behaviour.
parent d777636c
No related branches found
No related tags found
1 merge request!7airoha: Fix typo in TX counter.
Pipeline #114700 passed
......@@ -103,7 +103,7 @@ int ecnt_prvt_get_port_statistics(uint32_t port,
if (rstats != NULL) {
#define FILL_RSTATS_FOR_DIRECTION(__rmon_field, __ecnt_prefix) \
do { \
rstats->tx.drop_events = \
rstats->__rmon_field.drop_events = \
portcnt.__ecnt_prefix ## DropFramesCnt; \
rstats->__rmon_field.bytes = \
portcnt.__ecnt_prefix ## BytesCnt_Lo; \
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment