HomeFreeBSD

tcp: Allocate t_tcpreq_info on demand

Description

tcp: Allocate t_tcpreq_info on demand

When TCP_REQUEST_TRK is enabled, the tcb grows by 600 bytes
to accommodate the t_tcpreq_info[MAX_TCP_TRK_REQ] array.
Even when the option is enabled, not every connection is using
this feature. So let's allocate it on-demand, and save 600
bytes in the common case.

Sponsored by: Netflix
Reviewed by: rrs, tuexen
Differential Revision: https://reviews.freebsd.org/D56484

Details

Provenance
gallatinAuthored on Apr 17 2026, 8:01 PM
Reviewer
rrs
Differential Revision
D56484: tcp: Allocate t_tcpreq_info on demand
Parents
rG90383181aae9: rtw88: update module Makefile for v7.0 driver version
Branches
Unknown
Tags
Unknown