Page MenuHomeFreeBSD

dpaa2: fix MRU for dpni (and software vlans along)
ClosedPublic

Authored by bz on Fri, Oct 11, 7:02 PM.
Tags
None
Referenced Files
F102002456: D47066.diff
Wed, Nov 6, 10:20 AM
F101960793: D47066.diff
Tue, Nov 5, 8:08 PM
F101933732: D47066.id144761.diff
Tue, Nov 5, 4:09 PM
Unknown Object (File)
Sun, Nov 3, 5:10 AM
Unknown Object (File)
Sun, Nov 3, 5:10 AM
Unknown Object (File)
Sun, Nov 3, 5:10 AM
Unknown Object (File)
Sun, Nov 3, 4:51 AM
Unknown Object (File)
Sun, Oct 20, 12:01 PM
Subscribers

Details

Summary

0480dccd3f34 tried to fix the MTU for software VLANs given dpni
announces IFCAP_VLAN_MTU. Unfortunately the initial MRU during
setup is reduced from the maximum supported by the HW to our
maximum ethernet RX frame length so only after further mtu toggles
the solution there would work.
Set the maximum RX frame size (without CRC) to jumbo length +
vlan encap len by default given we also announce IFCAP_JUMBO_MTU.

While here improve the manual (ioctl) MTU setting by checking if
IFCAP_VLAN_MTU is currently enabled and only then add the extra
bytes.

Fixes: 0480dccd3f347da0dbccf5917633435d5ce6cb86
MFC after: 3 days

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 59913
Build 56798: arc lint + arc unit