opnsense-src/sys/dev/cxgbe
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
..
common cxgbe: handle vlan PF restrictions 2024-06-17 23:42:08 +02:00
crypto newbus: replace leftover device unit wildcards 2025-06-21 05:57:45 +03:00
cudbg sys: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00
cxgbei mbuf: Don't force all M_EXTPG mbufs to be read-only 2024-10-31 16:32:31 -04:00
firmware cxgbe(4): Add two new transceiver types. 2025-03-18 11:36:00 -07:00
iw_cxgbe cxgbe/iw_cxgbe: Fail early in some callbacks when the RNIC is stopped. 2024-08-30 08:31:45 -07:00
tom sendfile: retire M_BLOCKED 2025-07-25 13:06:28 -07:00
adapter.h mbuf: Allow clusters to fill an entire jumbo page. 2025-05-07 20:59:09 +02:00
if_cc.c sys: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00
if_ccv.c sys: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00
if_cxl.c sys: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00
if_cxlv.c sys: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00
offload.h cxgbe/t4_tom: Change stid allocation strategy to be more IPv6 friendly. 2024-10-17 10:40:38 -07:00
osdep.h libkern: add ilog2 macro 2024-06-03 11:37:55 -05:00
t4_clip.c cxgbe(4): Block most access to the hardware as soon as the adapter stops. 2025-02-25 11:33:40 -08:00
t4_clip.h sys: Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:11 -06:00
t4_filter.c cxgbe(4): Block most access to the hardware as soon as the adapter stops. 2025-02-25 11:33:40 -08:00
t4_if.m sys: Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:54:58 -06:00
t4_ioctl.h sys: Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:11 -06:00
t4_iov.c cxgbe(4): Update the board names of the T6 OCP cards. 2024-11-27 22:43:37 -08:00
t4_l2t.c cxgbe(4): Make sure suspend/resume works in recovery mode. 2025-02-13 16:41:50 -08:00
t4_l2t.h cxgbe(4): Remove smt_idx from the L2 table entry structure. 2025-02-13 21:54:59 -08:00
t4_main.c cxgbe(4): Add two new transceiver types. 2025-03-18 11:36:00 -07:00
t4_mp_ring.c sys: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00
t4_mp_ring.h sys: Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:11 -06:00
t4_netmap.c cxgbe: Flush transmitted packets more regularly in netmap mode 2024-07-15 11:26:59 -04:00
t4_sched.c cxgbe(4): sc->port is indexed by port_id and not tx_chan. 2024-05-17 15:42:23 -07:00
t4_sge.c mbuf: Allow clusters to fill an entire jumbo page. 2025-05-07 20:59:09 +02:00
t4_smt.c sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
t4_smt.h sys: Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:11 -06:00
t4_tracer.c net: Remove unneeded NULL check for the allocated ifnet 2024-06-28 18:16:29 +08:00
t4_vf.c Replace calls to bus_generic_attach with bus_attach_children 2024-12-06 17:26:16 -05:00