Re: rtwn0: rtwn_rx_copy_to_mbuf: could not allocate RX mbuf

From: Adrian Chadd <adrian.chadd_at_gmail.com>
Date: Fri, 25 Apr 2025 22:56:41 UTC
Hm,

Can you modify the kernel source for me? I'd like to see how big totlen is
when it fails?

edit sys/dev/rtwn/usb/usb_rtwn_rx.c ,around line 129. Change that
device_printf() line to

device_printf(sc->sc_dev, "%s: could not allocate RX mbuf (%d bytes)\n",
    __func__, totlen);

I want to see how big 'totlen' is when it fails. The vmstat / netstat
allocator output isn't showing any failures; so i have a feeling somewhere
it's trying to allocate overly large mbufs in this path (which I think are
what, 8?)



-adrian