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)
Mon, Oct 6, 12:22 PM
Unknown Object (File)
Mon, Sep 29, 12:12 AM
Unknown Object (File)
Sep 11 2025, 7:26 AM
Unknown Object (File)
Sep 4 2025, 10:11 AM
Unknown Object (File)
Aug 29 2025, 7:36 AM
Unknown Object (File)
Aug 17 2025, 9:04 AM
Unknown Object (File)
Jul 5 2025, 12:28 PM
Unknown Object (File)
Jun 24 2025, 3:25 AM
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