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