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@
MFC after: 1 week
Sponsored by: Chelsio Communications
Differential Revision: https://reviews.freebsd.org/D29503

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
rG869880463cc2: tcp: drain tcp_hostcache_list in between per-bucket locks
Branches
Unknown
Tags
Unknown