HomeFreeBSD

cxgbe/t4_tom: Detach the toep from the tcpcb when entering TIME_WAIT.

Description

cxgbe/t4_tom: Detach the toep from the tcpcb when entering TIME_WAIT.

The kernel used to call tod_pcb_detach when entering TIME_WAIT but that
seems to have changed, likely with the TIME_WAIT overhaul in the kernel
some time ago. Catch up by having the driver perform the detach.

The hardware does not handle TIME_WAIT so it's important to detach and
let the kernel arm the 2MSL timer to deal with it.

Reported by: Sony Arpita Das @ Chelsio
Reviewed by: jhb
Sponsored by: Chelsio Communications
Differential Revision: https://reviews.freebsd.org/D45990

(cherry picked from commit bbc326241d91ab2cee2ec2c5c0aa8a906480132f)

Details

Provenance
npAuthored on Jul 17 2024, 5:23 AM
Reviewer
jhb
Differential Revision
D45990: cxgbe/t4_tom: Detach the toep from the tcpcb when entering TIME_WAIT.
Parents
rG032bd06d9858: cxgbe(4): Tidy up t4_l2t.h
Branches
Unknown
Tags
Unknown