HomeFreeBSD

ena: rework tx req_id validation logic

Description

ena: rework tx req_id validation logic

Since ena_com_tx_comp_req_id_get already checks for req_id validity,
the logic was exiting early, never giving validate_tx_req_id a chance
to trigger device reset.
Rewrite the logic so that device reset is called based on return value
of ena_com_tx_comp_req_id_get instead.

Submitted by: Artur Rojek <ar@semihalf.com>
Obtained from: Semihalf
MFC after: 2 weeks
Sponsored by: Amazon, Inc.

(cherry picked from commit b168d0c850f34e8178d815ba3a87de2657a02ca9)

Details

Provenance
ar_semihalf.comAuthored on Jan 3 2022, 1:50 PM
mwCommitted on Feb 24 2022, 12:53 PM
Parents
rGeff45c1e6627: ena: properly handle IPv6 L4 checksum offload
Branches
Unknown
Tags
Unknown