mirror of
https://github.com/freebsd/freebsd-src
synced 2024-07-24 03:37:16 +00:00
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
This commit is contained in:
parent
49a6fbe387
commit
0480dccd3f
|
@ -2556,7 +2556,7 @@ dpaa2_ni_ioctl(if_t ifp, u_long c, caddr_t data)
|
|||
|
||||
/* Update maximum frame length. */
|
||||
error = DPAA2_CMD_NI_SET_MFL(dev, child, &cmd,
|
||||
mtu + ETHER_HDR_LEN);
|
||||
mtu + ETHER_HDR_LEN + ETHER_VLAN_ENCAP_LEN);
|
||||
if (error) {
|
||||
device_printf(dev, "%s: failed to update maximum frame "
|
||||
"length: error=%d\n", __func__, error);
|
||||
|
|
Loading…
Reference in a new issue