git: d8773fdcbfa3 - main - sockets: gc SB_STOP flag

From: Gleb Smirnoff <glebius_at_FreeBSD.org>
Date: Mon, 02 Jun 2025 20:49:53 UTC
The branch main has been updated by glebius:

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

commit d8773fdcbfa363da3e14ec3661b565edbfce03e0
Author:     Gleb Smirnoff <glebius@FreeBSD.org>
AuthorDate: 2025-06-02 20:47:25 +0000
Commit:     Gleb Smirnoff <glebius@FreeBSD.org>
CommitDate: 2025-06-02 20:49:41 +0000

    sockets: gc SB_STOP flag
    
    This flag was used when unix(4) sockets were serviced by the generic
    socket buffer code and it was needed to signal fullness of a receive
    buffer into send buffer of the peer.
---
 sys/sys/sockbuf.h | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/sys/sys/sockbuf.h b/sys/sys/sockbuf.h
index dbf5c1ff956d..7f6234ade6f4 100644
--- a/sys/sys/sockbuf.h
+++ b/sys/sys/sockbuf.h
@@ -46,7 +46,7 @@
 #define	SB_NOCOALESCE	0x200		/* don't coalesce new data into existing mbufs */
 #define	SB_IN_TOE	0x400		/* socket buffer is in the middle of an operation */
 #define	SB_AUTOSIZE	0x800		/* automatically size socket buffer */
-#define	SB_STOP		0x1000		/* backpressure indicator */
+/* was	SB_STOP		0x1000		*/
 #define	SB_AIO_RUNNING	0x2000		/* AIO operation running */
 #define	SB_SPLICED	0x4000		/* socket buffer is spliced;
 					   previously used for SB_TLS_IFNET */
@@ -303,9 +303,6 @@ sbspace(struct sockbuf *sb)
 	SOCKBUF_LOCK_ASSERT(sb);
 #endif
 
-	if (sb->sb_flags & SB_STOP)
-		return(0);
-
 	bleft = sb->sb_hiwat - sb->sb_ccc;
 	mleft = sb->sb_mbmax - sb->sb_mbcnt;