opnsense-src/sys/dev/cxgbe/tom
Gleb Smirnoff b93e930ca2 sendfile: retire M_BLOCKED
Follow unix(4) commit 51ac5ee0d5 and retire M_BLOCKED for TCP sockets as
well.  The M_BLOCKED flag was introduced back 2016 together with non-
blocking sendfile(2).  It marked mbufs in a sending socket buffer that
could be ready to sent, but are sitting behind an M_NOTREADY mbuf(s), that
blocks them.

You may consider this flag as an INVARIANT flag that helped to ensure
socket buffer consistency.  Or maybe the socket code was so convoluted
back then, that it was unclear if sbfree() may be called on an mbuf that
is in the middle of the buffer, and I decided to introduce the flag to
protect against that.  With today state of socket buffer code it became
clear that the latter cannot happen.  And this commit adds an assertion
proving that.

Reviewed by:		markj
Differential Revision:	https://reviews.freebsd.org/D50728
2025-07-25 13:06:28 -07:00
..
t4_connect.c cxgbe/t4_tom: bugfixes in stop/restart. 2024-08-05 05:56:22 -07:00
t4_cpl_io.c sendfile: retire M_BLOCKED 2025-07-25 13:06:28 -07:00
t4_ddp.c cxgbe tom: Restore support for zerocopy TCP receive for aio_read() 2024-12-10 21:23:47 -05:00
t4_listen.c cxgbe/t4_tom: Plug an stid leak. 2024-12-07 21:54:30 -08:00
t4_tls.c sendfile: retire M_BLOCKED 2025-07-25 13:06:28 -07:00
t4_tls.h sys: Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:11 -06:00
t4_tom.c sockets: make pr_aio_queue the default method 2025-02-10 11:30:45 -08:00
t4_tom.h cxgbe tom: Make t4_push_frames static to t4_cpl_io.c 2025-01-14 10:34:45 -05:00
t4_tom_l2t.c cxgbe(4): Block most access to the hardware as soon as the adapter stops. 2025-02-25 11:33:40 -08:00
t4_tom_l2t.h sys: Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:11 -06:00