HomeFreeBSD

ena: Add unlikely to error checks

Description

ena: Add unlikely to error checks

The unlikely mechanism is used to reduce pipe flush,
caused by a wrong branch prediction.
Moreover, it increases readability by wrapping unexpected errors.
This commit adds unlikely to error checks that are unlikely to happen.

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

Details

Provenance
osamaabb_amazon.comAuthored on Aug 7 2024, 6:24 AM
Parents
rGe00234fa34eb: ena: Fix crash when interrupt arrives after admin command timeout
Branches
Unknown
Tags
Unknown