Page MenuHomeFreeBSD

if_bridge: change MTU for new members
AbandonedPublic

Authored by kp on Jun 25 2022, 4:56 PM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Apr 1, 8:28 PM
Unknown Object (File)
Sun, Mar 23, 10:40 PM
Unknown Object (File)
Jan 22 2025, 4:48 AM
Unknown Object (File)
Jan 18 2025, 5:56 PM
Unknown Object (File)
Dec 14 2024, 1:10 AM
Unknown Object (File)
Nov 30 2024, 10:16 PM
Unknown Object (File)
Nov 24 2024, 7:28 PM
Unknown Object (File)
Nov 24 2024, 4:53 AM

Details

Reviewers
None
Group Reviewers
network
Summary

Rather than reject new bridge members because they have the wrong MTU
change it to match the bridge. If that fails, reject the new interface.

PR: 264883

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 46115
Build 43004: arc lint + arc unit

Event Timeline

kp requested review of this revision.Jun 25 2022, 4:56 PM

Thanks for preparing this change!

Macro like:

Not sure why this review wasn’t automatically closed by the commit.

Also - does the if_bridge(4) need an update to explain this new behaviour?

Text in the if_bridge(4) manpage to consider updating:

In the DESCRIPTION section (lines 129-130):
The MTU of the first member interface to be added is used as the bridge
MTU. All additional members are required to have exactly the same value.

In the BUGS section (lines 511-514):
The if_bridge driver currently supports only Ethernet and Ethernet-like
(e.g., 802.11) network devices, with exactly the same interface MTU size
as the bridge device.