HomeFreeBSD

tcp: simplify stack switching protocol

Description

tcp: simplify stack switching protocol

Before this patch, a stack (tfb) accepts a tcpcb (tp), if the
tp->t_state is TCPS_CLOSED or tfb->tfb_tcp_handoff_ok is not NULL
and tfb->tfb_tcp_handoff_ok(tp) returns 0.
After this patch, the only check is tfb->tfb_tcp_handoff_ok(tp)
returns 0. tfb->tfb_tcp_handoff_ok must always be provided.
For existing TCP stacks (FreeBSD, RACK and BBR) there is no
functional change. However, the logic is simpler.

Reviewed by: lstewart, peter_lei_ieee_.org, rrs
MFC after: 1 week
Sponsored by: Netflix, Inc.
Differential Revision: https://reviews.freebsd.org/D45253

Details

Provenance
tuexenAuthored on Thu, Jun 6, 6:29 AM
Reviewer
lstewart
Differential Revision
D45253: tcp: simplify stack switching protocol
Parents
rG9c5d7e4a0c02: pmap: move the smp_targeted_tlb_shutdown pointer stuff to amd64 pmap.h
Branches
Unknown
Tags
Unknown