Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 20 Mar 2026 16:55:27 +0000
From:      Gleb Smirnoff <glebius@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: 0798ad802350 - main - tcp: remove extraneous code
Message-ID:  <69bd7bff.32028.28759e23@gitrepo.freebsd.org>

index | next in thread | raw e-mail

The branch main has been updated by glebius:

URL: https://cgit.FreeBSD.org/src/commit/?id=0798ad802350d449641fb91409860f5c12045581

commit 0798ad802350d449641fb91409860f5c12045581
Author:     Gleb Smirnoff <glebius@FreeBSD.org>
AuthorDate: 2026-03-20 16:54:54 +0000
Commit:     Gleb Smirnoff <glebius@FreeBSD.org>
CommitDate: 2026-03-20 16:54:54 +0000

    tcp: remove extraneous code
    
    The tcp_close() will perform both actions.
    
    Reviewed by:            pouria, tuexen, rrs
    Differential Revision:  https://reviews.freebsd.org/D55965
---
 sys/netinet/tcp_usrreq.c | 5 -----
 1 file changed, 5 deletions(-)

diff --git a/sys/netinet/tcp_usrreq.c b/sys/netinet/tcp_usrreq.c
index a0658e18fb1e..aadcf0c9ce9c 100644
--- a/sys/netinet/tcp_usrreq.c
+++ b/sys/netinet/tcp_usrreq.c
@@ -2698,11 +2698,6 @@ tcp_usrclosed(struct tcpcb *tp)
 
 	switch (tp->t_state) {
 	case TCPS_LISTEN:
-#ifdef TCP_OFFLOAD
-		tcp_offload_listen_stop(tp);
-#endif
-		tcp_state_change(tp, TCPS_CLOSED);
-		/* FALLTHROUGH */
 	case TCPS_CLOSED:
 		tp = tcp_close(tp);
 		/*


home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?69bd7bff.32028.28759e23>