Bug 226144 - lagg(4): Upping a lagg interrface should automatically up its children
Summary: lagg(4): Upping a lagg interrface should automatically up its children
Status: Closed FIXED
Alias: None
Product: Base System
Classification: Unclassified
Component: kern (show other bugs)
Version: CURRENT
Hardware: Any Any
: --- Affects Some People
Assignee: freebsd-net (Nobody)
URL:
Keywords: patch
Depends on:
Blocks:
 
Reported: 2018-02-23 17:46 UTC by Alan Somers
Modified: 2024-05-07 12:54 UTC (History)
4 users (show)

See Also:


Attachments
Allow setting MTU on children and automatically up/down children (4.78 KB, patch)
2018-02-23 17:51 UTC, Alan Somers
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Alan Somers freebsd_committer freebsd_triage 2018-02-23 17:46:17 UTC
More of a feature request than a bug.  But it would be nice for upping/downing a lagg interface to automatically up/down its children.
Comment 1 Alan Somers freebsd_committer freebsd_triage 2018-02-23 17:51:40 UTC
Created attachment 190920 [details]
Allow setting MTU on children and automatically up/down children

Here's a patch that adds the feature, but it still needs a little work to build on head.
Comment 2 Eugene Grosbein freebsd_committer freebsd_triage 2018-02-27 17:04:28 UTC
lagg_if_updown() function can "restart" its main loop. How it is guaranteed that it won't do it endlessly?
Comment 3 commit-hook freebsd_committer freebsd_triage 2024-05-06 22:28:52 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/src/commit/?id=570685971c6ad30c75103453a38fdb2dff432bef

commit 570685971c6ad30c75103453a38fdb2dff432bef
Author:     Gleb Smirnoff <glebius@FreeBSD.org>
AuthorDate: 2024-05-06 22:25:53 +0000
Commit:     Gleb Smirnoff <glebius@FreeBSD.org>
CommitDate: 2024-05-06 22:27:32 +0000

    lagg: propagate up/down to the children

    Based on the old submission from asomers@.  With modern state of locking
    in lagg(4), the patch got much simplier.  Enable the test that was
    waiting for this change.

    PR:                     226144
    Reviewed by:            asomers
    Differential Revision:  https://reviews.freebsd.org/D44605

 sys/net/if_lagg.c             | 24 ++++++++++++++++++++++++
 tests/sys/net/if_lagg_test.sh |  1 -
 2 files changed, 24 insertions(+), 1 deletion(-)
Comment 4 Vladimir Druzenko freebsd_committer freebsd_triage 2024-05-07 08:05:16 UTC
Gleb, what about MTU?
Comment 5 Alan Somers freebsd_committer freebsd_triage 2024-05-07 12:54:44 UTC
Thanks for finishing this, Gleb!