Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/net/lagg update state of aggregator on multi-speed changing
details: https://anonhg.NetBSD.org/src/rev/8254f18013b9
branches: trunk
changeset: 364600:8254f18013b9
user: yamaguchi <yamaguchi%NetBSD.org@localhost>
date: Thu Mar 31 03:04:04 2022 +0000
description:
update state of aggregator on multi-speed changing
diffstat:
sys/net/lagg/if_lagg_lacp.c | 12 +++++++++---
1 files changed, 9 insertions(+), 3 deletions(-)
diffs (34 lines):
diff -r 2d1219f6f3c7 -r 8254f18013b9 sys/net/lagg/if_lagg_lacp.c
--- a/sys/net/lagg/if_lagg_lacp.c Thu Mar 31 02:07:26 2022 +0000
+++ b/sys/net/lagg/if_lagg_lacp.c Thu Mar 31 03:04:04 2022 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: if_lagg_lacp.c,v 1.18 2022/03/31 02:04:50 yamaguchi Exp $ */
+/* $NetBSD: if_lagg_lacp.c,v 1.19 2022/03/31 03:04:04 yamaguchi Exp $ */
/*-
* SPDX-License-Identifier: BSD-2-Clause-NetBSD
@@ -31,7 +31,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_lagg_lacp.c,v 1.18 2022/03/31 02:04:50 yamaguchi Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_lagg_lacp.c,v 1.19 2022/03/31 03:04:04 yamaguchi Exp $");
#ifdef _KERNEL_OPT
#include "opt_lagg.h"
@@ -947,8 +947,14 @@
lsc->lsc_dump_du = set;
if (ISSET(rplacp->flags, LAGGREQLACP_STOPDU))
lsc->lsc_stop_lacpdu = set;
- if (ISSET(rplacp->flags, LAGGREQLACP_MULTILS))
+
+ if (ISSET(rplacp->flags, LAGGREQLACP_MULTILS) &&
+ lsc->lsc_multi_linkspeed != set) {
lsc->lsc_multi_linkspeed = set;
+ TAILQ_FOREACH(la, &lsc->lsc_aggregators, la_q) {
+ lacp_selected_update(lsc, la);
+ }
+ }
LACP_UNLOCK(lsc);
break;
Home |
Main Index |
Thread Index |
Old Index