git: 0fdc24727429 - main - tcp: make RACK loadable again using the default configuration
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 26 Sep 2022 10:39:01 UTC
The branch main has been updated by tuexen: URL: https://cgit.FreeBSD.org/src/commit/?id=0fdc247274293a5f77868e8eed45457ffeaaba29 commit 0fdc247274293a5f77868e8eed45457ffeaaba29 Author: Michael Tuexen <tuexen@FreeBSD.org> AuthorDate: 2022-09-26 10:30:50 +0000 Commit: Michael Tuexen <tuexen@FreeBSD.org> CommitDate: 2022-09-26 10:30:50 +0000 tcp: make RACK loadable again using the default configuration Without this patch, loading the RACK stack required the newreno CC module to be compiled into the kernel. This is not the case anymore since CUBIC is the default now. Reviewed by: rscheff@ Sponsored by: Netflix, Inc. Differential Revision: https://reviews.freebsd.org/D36707 --- sys/netinet/cc/cc.c | 1 + sys/netinet/cc/cc_newreno.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/sys/netinet/cc/cc.c b/sys/netinet/cc/cc.c index 0c2d6cb0e86d..cd65d5a1a992 100644 --- a/sys/netinet/cc/cc.c +++ b/sys/netinet/cc/cc.c @@ -106,6 +106,7 @@ VNET_DEFINE(struct cc_algo *, default_cc_ptr) = NULL; VNET_DEFINE(uint32_t, newreno_beta) = 50; #define V_newreno_beta VNET(newreno_beta) +VNET_DEFINE(uint32_t, newreno_beta_ecn) = 80; void cc_refer(struct cc_algo *algo) diff --git a/sys/netinet/cc/cc_newreno.c b/sys/netinet/cc/cc_newreno.c index 90895e0f6988..43f3d81389f3 100644 --- a/sys/netinet/cc/cc_newreno.c +++ b/sys/netinet/cc/cc_newreno.c @@ -99,7 +99,7 @@ static size_t newreno_data_sz(void); VNET_DECLARE(uint32_t, newreno_beta); #define V_newreno_beta VNET(newreno_beta) -VNET_DEFINE(uint32_t, newreno_beta_ecn) = 80; +VNET_DECLARE(uint32_t, newreno_beta_ecn); #define V_newreno_beta_ecn VNET(newreno_beta_ecn) struct cc_algo newreno_cc_algo = {