HomeFreeBSD

net: iflib: fix vlan processing in the drivers

Description

net: iflib: fix vlan processing in the drivers

The logic that sets iri_vtag and M_VLANTAG does not handle the
case where the 802.11q VLAN tag is 0. Fix this issue across
the iflib drivers. While there, also improve and align the
VLAN tag check extraction, by moving it outside the RX descriptor
loop, eliminating a local variable and additional checks.

PR: 260068
Reviewed by: kbowling, gallatin
Reported by: erj
MFC after: 1 month
Differential Revision: https://reviews.freebsd.org/D33156

(cherry picked from commit f7926a6d0c1029c8da265769e7c57b4065faa2df)

Details

Provenance
vmaffioneAuthored on Dec 28 2021, 11:05 AM
Reviewer
kbowling
Differential Revision
D33156: iflib: fix vlan offload processing across multiple drivers.
Parents
rGe99828dfbdd7: net: iflib: let the drivers use isc_capenable
Branches
Unknown
Tags
Unknown