Page MenuHomeFreeBSD

ena: Trigger reset when mbuf is NULL error happens
Needs ReviewPublic

Authored by osamaabb_amazon.com on Aug 20 2024, 8:47 AM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Dec 2, 8:47 AM
Unknown Object (File)
Oct 29 2025, 3:17 PM
Unknown Object (File)
Oct 29 2025, 12:38 PM
Unknown Object (File)
Oct 29 2025, 6:50 AM
Unknown Object (File)
Oct 20 2025, 2:50 AM
Unknown Object (File)
Oct 20 2025, 2:50 AM
Unknown Object (File)
Oct 19 2025, 12:25 PM
Unknown Object (File)
Oct 6 2025, 12:22 PM
Subscribers

Details

Reviewers
cperciva
Summary

The mbuf is NULL issue happens when the device sends the driver
a completion with a wrong request id.
Trigger a reset whenever this happens.

Approved by: cperciva
MFC after: 2 weeks
Sponsored by: Amazon, Inc.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 59092
Build 55979: arc lint + arc unit

Event Timeline

This seems like it could be a kernel panic rather than merely logging an error and resetting the device.

This seems like it could be a kernel panic rather than merely logging an error and resetting the device.

We're using the same approach as in [1] here, in case theres a single bit flip causing a funny RX request ID being processed by the driver (hence the null mbuf) we'd like to maintain networking availability
[1] https://reviews.freebsd.org/D46337