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
Approved by: re (gjb)
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)

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
rG494de30b63de: net: Remove vlan metadata on pcp / vlan encapsulation
Branches
Unknown
Tags
Unknown