]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
dpaa2: make software VLANs usable on dpni
authorBjoern A. Zeeb <bz@FreeBSD.org>
Wed, 15 Nov 2023 11:46:44 +0000 (11:46 +0000)
committerBjoern A. Zeeb <bz@FreeBSD.org>
Fri, 17 Nov 2023 12:17:54 +0000 (12:17 +0000)
commit0480dccd3f347da0dbccf5917633435d5ce6cb86
treeea84e4a9c6e28d708db5ffd27b6899107517e920
parent49a6fbe38728173da74d5b497f700178e2a6c830
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

MFC after: 3 days
GH-Issue: https://github.com/mcusim/freebsd-src/issues/22
Reviewed by: dsl
Differential Revision: https://reviews.freebsd.org/D42645
sys/dev/dpaa2/dpaa2_ni.c