HomeFreeBSD

LinuxKPI: 802.11: better dealing with errors in RX path

Description

LinuxKPI: 802.11: better dealing with errors in RX path

In case we fail to allocate the mbuf or mtag in the RX path or fail
for other reasons report it as ic_ierrors for better diagnostics
and more correct statistics.
Also do what the comment had indicated and mandate that mtag allocation
succeeds or otherwise drop the packet. There may be room for future
improvements in a follow-up commit here.

Sponsored by: The FreeBSD Foundation

(cherry picked from commit c013f810ecb615289c2bd69a10f4317a3a867d50)

Details

Provenance
bzAuthored on Apr 13 2025, 8:53 PM
Parents
rG636bb42e6c55: LinuxKPI: 802.11: deal with the error paths for lkpi_xmit()
Branches
Unknown
Tags
Unknown