opnsense-src/sys/dev/rtwn/usb
Adrian Chadd 28e89934a9 rtwn: fix mbuf allocation errors in USB RX path for > 4 KiB frames
We can and do receive > 4 KiB frames in the RX path (A-MSDU frames
can be up to 11KiB.)  At least one user has reported seeing this
and having it break their traffic flows.

Use m_get3() to try and grab an mbuf jumbo cluster.

This may not be the best permanent solution, but it at least will
fail for frame sizes we expect to see up and including the largest
A-MPDU frame (11Kib)  and keep a counter if it can't allocate, versus
just returning NULL because it's too large (and not keeping counters.)

Differential Revision:	https://reviews.freebsd.org/D50049
PR:	kern/286366
Reviewed by:	bz
2025-04-30 20:01:05 -07:00
..
rtwn_usb_attach.c rtwn: change the USB TX transfers to only do one pending transfer per endpoint 2024-11-20 17:56:56 -08:00
rtwn_usb_attach.h rtwn: Add device ID for TPLink RTL8192CU 2024-11-21 10:40:11 -05:00
rtwn_usb_ep.c rtwn: change the USB TX transfers to only do one pending transfer per endpoint 2024-11-20 17:56:56 -08:00
rtwn_usb_ep.h sys: Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:11 -06:00
rtwn_usb_reg.c sys: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00
rtwn_usb_reg.h sys: Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:11 -06:00
rtwn_usb_rx.c rtwn: fix mbuf allocation errors in USB RX path for > 4 KiB frames 2025-04-30 20:01:05 -07:00
rtwn_usb_rx.h sys: Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:11 -06:00
rtwn_usb_tx.c rtwn: change the USB TX transfers to only do one pending transfer per endpoint 2024-11-20 17:56:56 -08:00
rtwn_usb_tx.h rtwn: change the USB TX transfers to only do one pending transfer per endpoint 2024-11-20 17:56:56 -08:00
rtwn_usb_var.h rtwn: bump up the RX USB buffers 2024-12-18 15:47:37 -08:00