From d064464945878df38127279233bc433fef529c90 Mon Sep 17 00:00:00 2001 From: Dimitri Staessens Date: Sun, 11 Jul 2021 22:06:50 +0200 Subject: 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 Signed-off-by: Sander Vrijders --- src/ipcpd/unicast/pol/ca-mb-ecn.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 */ -- cgit v1.2.3