HomeFreeBSD

cxgbe/t4_tom: restore socket's protosw before entering TIME_WAIT.

Description

cxgbe/t4_tom: restore socket's protosw before entering TIME_WAIT.

This fixes a panic due to stale so->so_proto if t4_tom is unloaded and
one or more connections that were previously offloaded are still around
in TIME_WAIT state.

Reviewed by: jhb@
Sponsored by: Chelsio Communications
Differential Revision: https://reviews.freebsd.org/D29503

(cherry picked from commit 539489326947f2873f21b292941f8e5551f7c17b)

Details

Provenance
npAuthored on Mar 30 2021, 4:35 AM
Differential Revision
D29503: cxgbe/t4_tom: restore socket's protosw before entering TIME_WAIT.
Parents
rG95a3005326e9: cxgbe(4): Allow a T6 adapter to switch between TOE and NIC TLS mode.
Branches
Unknown
Tags
Unknown