summaryrefslogtreecommitdiff
path: root/src/ipcpd/unicast/pol
diff options
context:
space:
mode:
authorDimitri Staessens <dimitri@ouroboros.rocks>2021-07-10 11:55:32 +0200
committerSander Vrijders <sander@ouroboros.rocks>2021-07-10 16:35:04 +0200
commit547ab6389e91290a4aa099f82259251fa552a5c5 (patch)
tree9ec65f572a01aa19385860439ef8f63f40d67ae3 /src/ipcpd/unicast/pol
parent7613c50332469146838cdc524ecee40b3f379322 (diff)
downloadouroboros-547ab6389e91290a4aa099f82259251fa552a5c5.tar.gz
ouroboros-547ab6389e91290a4aa099f82259251fa552a5c5.zip
unicast: Fix RIB stats for congestion avoidance
The upstream/downstream stats were switched. Signed-off-by: Dimitri Staessens <dimitri@ouroboros.rocks> Signed-off-by: Sander Vrijders <sander@ouroboros.rocks>
Diffstat (limited to 'src/ipcpd/unicast/pol')
-rw-r--r--src/ipcpd/unicast/pol/ca-mb-ecn.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ipcpd/unicast/pol/ca-mb-ecn.c b/src/ipcpd/unicast/pol/ca-mb-ecn.c
index 7f570a9e..f61cb08b 100644
--- a/src/ipcpd/unicast/pol/ca-mb-ecn.c
+++ b/src/ipcpd/unicast/pol/ca-mb-ecn.c
@@ -287,8 +287,8 @@ ssize_t mb_ecn_print_stats(void * _ctx,
"Max bytes in this window: %20zu\n"
"Current congestion regime: %20s\n",
"Multi-bit ECN",
- ctx->rx_ece, ctx->rx_ctr,
- ctx->tx_ece, ctx->tx_ctr, (size_t) (1UL << ctx->tx_mul),
+ ctx->tx_ece, ctx->tx_ctr,
+ ctx->rx_ece, ctx->rx_ctr, (size_t) (1UL << ctx->tx_mul),
ctx->tx_wpc, ctx->tx_wbc, ctx->tx_wbl,
regime);