HomeFreeBSD

Fix checking if the DF flag was set in ENA driver

Description

Fix checking if the DF flag was set in ENA driver

The previous way of checking for DF was not valid.
When DF is enabled, the DF bit should be 1.

The original way of checking it was wrong in 2 ways: first of all, it
was not checking for single bit, secondly, it was checking for 0.

Submitted by: Michal Krawczyk <mk@semihalf.com>
Reviewed by: byenduri_gmail.com
Obtained from: Semihalf
Sponsored by: Amazon, Inc.
Differential Revision: https://reviews.freebsd.org/D12865

Details

Provenance
mwAuthored on
Reviewer
byenduri_gmail.com
Differential Revision
D12865: Fix checking if the DF flag was set in ENA driver
Parents
rS325584: Cleanup of the ENA driver header file
Branches
Unknown
Tags
Unknown