summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDimitri Staessens <dimitri@ouroboros.rocks>2021-07-11 22:06:50 +0200
committerSander Vrijders <sander@ouroboros.rocks>2021-07-12 09:07:54 +0200
commitd064464945878df38127279233bc433fef529c90 (patch)
tree769ef06e1f793b97a5da523c2408efb9da88517e
parent547ab6389e91290a4aa099f82259251fa552a5c5 (diff)
downloadouroboros-d064464945878df38127279233bc433fef529c90.tar.gz
ouroboros-d064464945878df38127279233bc433fef529c90.zip
ipcpd: Fix update rate for Multi-Bit ECN
The rate was supposed to be 1 update per 8 data packets, but the calculation was doing 1 update per 4 data packets. Signed-off-by: Dimitri Staessens <dimitri@ouroboros.rocks> Signed-off-by: Sander Vrijders <sander@ouroboros.rocks>
-rw-r--r--src/ipcpd/unicast/pol/ca-mb-ecn.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ipcpd/unicast/pol/ca-mb-ecn.c b/src/ipcpd/unicast/pol/ca-mb-ecn.c
index f61cb08b..a2454072 100644
--- a/src/ipcpd/unicast/pol/ca-mb-ecn.c
+++ b/src/ipcpd/unicast/pol/ca-mb-ecn.c
@@ -41,7 +41,7 @@
/* congestion avoidance constants */
#define CA_SHFT 5 /* Average over 32 pkts */
#define CA_WND (1 << CA_SHFT) /* 32 pkts receiver wnd */
-#define CA_UPD (1 << (CA_SHFT - 3)) /* Update snd every 8 pkt */
+#define CA_UPD (1 << (CA_SHFT - 2)) /* Update snd every 8 pkt */
#define CA_SLOT 24 /* Initial slot = 16 ms */
#define CA_INC 1UL << 16 /* ~4MiB/s^2 additive inc */
#define CA_IWL 1UL << 16 /* Initial limit ~4MiB/s */