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
F132244298: D50846.diff
Wed, Oct 15, 3:30 AM
Unknown Object (File)
Wed, Sep 17, 8:27 AM
Unknown Object (File)
Mon, Sep 15, 7:57 PM
Unknown Object (File)
Sep 14 2025, 5:14 AM
Unknown Object (File)
Sep 13 2025, 3:57 AM
Unknown Object (File)
Sep 4 2025, 10:03 AM
Unknown Object (File)
Sep 2 2025, 2:44 AM
Unknown Object (File)
Aug 14 2025, 4:12 AM

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 :) ]