HomeFreeBSD

tcp: virtualise net.inet.tcp.msl sysctl.

Description

tcp: virtualise net.inet.tcp.msl sysctl.

VNET teardown waits 2*MSL (60 seconds by default) before expiring
tcp PCBs. These PCBs holds references to nexthops, which, in turn,
reference ifnets. This chain results in VNET interfaces being destroyed
and moved to default VNET only after 60 seconds.
Allow tcp_msl to be set in jail by virtualising net.inet.tcp.msl sysctl,
permitting more predictable VNET tests outcomes.

MFC after: 1 week
Reviewed by: glebius
Approved by: re(gjb)
Differential Revision: https://reviews.freebsd.org/D33270

(cherry picked from commit c2c8e360d8c0b8712158d334686d88f052aef819)
(cherry picked from commit 057793e63771816315cb54869c067b1c2b2bb4dc)

Details

Provenance
melifaroAuthored on Dec 4 2021, 10:02 PM
Reviewer
glebius
Differential Revision
D33270: tcp: virtualise net.inet.tcp.msl sysctl.
Parents
rGbf2378688d27: Merge LLVM commit c03fdd340356 to fix lang/rust on powerpc
Branches
Unknown
Tags
Unknown