HomeFreeBSD

dpaa2: make software VLANs usable on dpni

Description

dpaa2: make software VLANs usable on dpni

dpni announces IFCAP_VLAN_MTU but internally does not increase the
maximum frame length. Createing a vlan interface on top of a dpni
interface will result in full-sized frames not passing.
Extend the maximum frame length by ETHER_VLAN_ENCAP_LEN to allow at
least for one layer of (software) vlans for now

GH-Issue: https://github.com/mcusim/freebsd-src/issues/22
Reviewed by: dsl
Differential Revision: https://reviews.freebsd.org/D42645

(cherry picked from commit 0480dccd3f347da0dbccf5917633435d5ce6cb86)

Details

Provenance
bzAuthored on Nov 15 2023, 11:46 AM
Reviewer
dsl
Differential Revision
D42645: dpaa2: make VLANs usable on dpni
Parents
rG91987a959730: dpaa2: defer link_state updates until we are up
Branches
Unknown
Tags
Unknown