HomeFreeBSD

tcp: Initialize the maximum number of entries in a client cookie cache bucket

Description

tcp: Initialize the maximum number of entries in a client cookie cache bucket

This vnet loader tunable is defined with SYSCTL_PROC, thus will not be
initialized by kernel on vnet creating and will always have the default
value TCP_FASTOPEN_CCACHE_BUCKET_LIMIT_DEFAULT.

Fix by fetching the value from the corresponding kernel environment during
vnet constructing.

PR: 273509
Reviewed by: transport, tuexen
Fixes: c560df6f12f1 This is an implementation of the client side of TCP Fast Open (TFO) [RFC7413]
MFC after: 3 days
Differential Revision: https://reviews.freebsd.org/D41691

(cherry picked from commit 224aec05e732bb97a0d3c91142973b98a91238d1)
(cherry picked from commit 144851777edad9522390036d3073ea656d7b648d)
(cherry picked from commit 3fc299d68897a0748d96510de5f191f5a8249216)

Details

Provenance
zleiAuthored on Sep 2 2023, 8:34 PM
Reviewer
transport
Differential Revision
D41691: tcp: Initialize maximum number of entries in a client cookie cache bucket
Parents
rGc0038743d357: net: Remove vlan metadata on pcp / vlan encapsulation
Branches
Unknown
Tags
Unknown