HomeFreeBSD

tcp: stop doing superfluous work after sending RST

Description

tcp: stop doing superfluous work after sending RST

When sending a RST control segment in tcp_output() it
means we are in TCPS_CLOSED state, called from tcp_drop().
Once the RST is sent, don't call tcp_timer_activate() or
update anything in tcpcb, since that will go away shortly.

PR: 276761
Provided by: glebius
Reviewed By: glebius, tuexen, transport
Sponsored by: NetApp, Inc.
Differential Revision: https://reviews.freebsd.org/D43808

Details

Provenance
rscheffAuthored on Feb 10 2024, 9:24 AM
Reviewer
transport
Differential Revision
D43808: tcp: stop doing superfluous work after sending RST
Parents
rG3eeb22cb8194: tcp: clean scoreboard when releasing the socket buffer
Branches
Unknown
Tags
Unknown