Page MenuHomeFreeBSD

ethernet: Set maximum Ethernet header length based on the capability IFCAP_VLAN_MTU
ClosedPublic

Authored by zlei on Jun 14 2025, 3:22 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, Jul 13, 9:08 AM
Unknown Object (File)
Wed, Jul 9, 2:53 PM
Unknown Object (File)
Mon, Jul 7, 3:15 AM
Unknown Object (File)
Mon, Jul 7, 3:15 AM
Unknown Object (File)
Mon, Jul 7, 3:15 AM
Unknown Object (File)
Mon, Jul 7, 3:15 AM
Unknown Object (File)
Mon, Jul 7, 3:15 AM
Unknown Object (File)
Sun, Jul 6, 5:30 PM

Details

Summary

Lots of Ethernet drivers fix the header length after ether_ifattach().
Well since the net stack can conclude based on the capability
IFCAP_VLAN_MTU, let the net stack do it rather than individual drivers.

MFC after: 2 weeks

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

zlei requested review of this revision.Jun 14 2025, 3:22 PM

In-tree drivers will be cleaned up in following up commits. I intended to mention this behavior change in UPDATING, but 3rd party shall not be affected, if they FIX the header length after attaching the interface.

This revision is now accepted and ready to land.Jun 16 2025, 1:12 PM

Definitely an improvement [prolonging life of the current ifapi :) ]