HomeFreeBSD

ena: Fix invalid KASSERT test in netmap code

Description

ena: Fix invalid KASSERT test in netmap code

The KASSERT was originally added to ensure that the netmap Rx ring is
not NULL, however, it was checking for the opposite.

Obtained from: Semihalf
MFC after: 2 weeks
Sponsored by: Amazon, Inc.

(cherry picked from commit 79770fdad6c18d968cc122c4294820931cc542e0)

Details

Provenance
mk_semihalf.comAuthored on Jun 10 2022, 9:18 AM
mwCommitted on Jul 26 2022, 7:33 PM
Parents
rG4568630d8905: ena: Align names of constants
Branches
Unknown
Tags
Unknown