Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F107104021
D41691.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D41691.diff
View Options
diff --git a/sys/netinet/tcp_fastopen.c b/sys/netinet/tcp_fastopen.c
--- a/sys/netinet/tcp_fastopen.c
+++ b/sys/netinet/tcp_fastopen.c
@@ -271,7 +271,7 @@
static int sysctl_net_inet_tcp_fastopen_ccache_bucket_limit(SYSCTL_HANDLER_ARGS);
SYSCTL_PROC(_net_inet_tcp_fastopen, OID_AUTO, ccache_bucket_limit,
- CTLFLAG_VNET | CTLTYPE_UINT | CTLFLAG_RWTUN | CTLFLAG_NEEDGIANT,
+ CTLFLAG_VNET | CTLTYPE_UINT | CTLFLAG_RWTUN | CTLFLAG_NOFETCH | CTLFLAG_NEEDGIANT,
NULL, 0, &sysctl_net_inet_tcp_fastopen_ccache_bucket_limit, "IU",
"Max entries per bucket in client cookie cache");
@@ -393,7 +393,8 @@
V_tcp_fastopen_keys.newest = TCP_FASTOPEN_MAX_KEYS - 1;
V_tcp_fastopen_keys.newest_psk = TCP_FASTOPEN_MAX_PSKS - 1;
- /* May already be non-zero if kernel tunable was set */
+ TUNABLE_INT_FETCH("net.inet.tcp.fastopen.ccache_bucket_limit",
+ &V_tcp_fastopen_ccache.bucket_limit);
if (V_tcp_fastopen_ccache.bucket_limit == 0)
V_tcp_fastopen_ccache.bucket_limit =
TCP_FASTOPEN_CCACHE_BUCKET_LIMIT_DEFAULT;
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Jan 11, 4:23 AM (18 h, 40 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
15750077
Default Alt Text
D41691.diff (1 KB)
Attached To
Mode
D41691: tcp: Initialize maximum number of entries in a client cookie cache bucket
Attached
Detach File
Event Timeline
Log In to Comment