HomeFreeBSD

aq(4): Fix VLAN tag test

Description

aq(4): Fix VLAN tag test

Previously emitted a compiler warning "warning: bitwise comparison
always evaluates to false."

Looking at the OpenBSD driver (which is based on this code) it looks
like the VLAN flag should be set if either of these bits is. In the
OpenBSD driver these are AQ_RXDESC_TYPE_VLAN and AQ_RXDESC_TYPE_VLAN2
rather than a magic number 0x60.

Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D53836

Details

Provenance
emasteAuthored on Nov 13 2025, 2:15 PM
Differential Revision
D53836: aq(4): Fix VLAN tag test
Parents
rG0156be41a1eb: aq(4): Remove unimplemented functions
Branches
Unknown
Tags
Unknown