]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
MFC r339909: Allow changing lagg(4) MTU.
authormav <mav@FreeBSD.org>
Tue, 18 Dec 2018 23:22:37 +0000 (23:22 +0000)
committermav <mav@FreeBSD.org>
Tue, 18 Dec 2018 23:22:37 +0000 (23:22 +0000)
commitd055422cc148b2fffbe4ba2a2fcf0fc887bcddc5
treebf6ddce7cda583b5b0df6d034cb93e1c92a39e5e
parentf445d2ac303ef82d01bdb265c7b73f4eed5d8c99
MFC r339909: Allow changing lagg(4) MTU.

Previously, changing the MTU would require destroying the lagg and
creating a new one. Now it is allowed to change the MTU of
the lagg interface and the MTU of the ports will be set to match.

If any port cannot set the new MTU, all ports are reverted to the original
MTU of the lagg. Additionally, when adding ports, the MTU of a port will be
automatically set to the MTU of the lagg. As always, the MTU of the lagg is
initially determined by the MTU of the first port added. If adding an
interface as a port for some reason fails, that interface is reverted to its
original MTU.

Submitted by: Ryan Moeller <ryan@freqlabs.com>
Relnotes: Yes
Sponsored by: iXsystems Inc.
sys/net/if_lagg.c