HomeFreeBSD

rtwn: fix mbuf allocation errors in USB RX path for > 4 KiB frames

Description

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

Details

Provenance
adrianAuthored on Sun, Apr 27, 11:50 PM
Reviewer
bz
Differential Revision
D50049: rtwn: fix mbuf allocation errors in USB RX path for > 4 KiB frames
Parents
rG67fb9dc457ee: mii: Change e1000phy (Marvell 88E1000) PHYs to disable power down / isolate
Branches
Unknown
Tags
Unknown