Module Name: src
Committed By: yamaguchi
Date: Thu Apr 4 07:31:10 UTC 2024
Modified Files:
src/sys/net/lagg: if_laggproto.c
Log Message:
lagg(4): fix missing update of the number of active ports
To generate a diff of this commit:
cvs rdiff -u -r1.9 -r1.10 src/sys/net/lagg/if_laggproto.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/net/lagg/if_laggproto.c
diff -u src/sys/net/lagg/if_laggproto.c:1.9 src/sys/net/lagg/if_laggproto.c:1.10
--- src/sys/net/lagg/if_laggproto.c:1.9 Thu Apr 4 07:29:35 2024
+++ src/sys/net/lagg/if_laggproto.c Thu Apr 4 07:31:10 2024
@@ -1,4 +1,4 @@
-/* $NetBSD: if_laggproto.c,v 1.9 2024/04/04 07:29:35 yamaguchi Exp $ */
+/* $NetBSD: if_laggproto.c,v 1.10 2024/04/04 07:31:10 yamaguchi Exp $ */
/*-
* SPDX-License-Identifier: BSD-2-Clause-NetBSD
@@ -29,7 +29,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_laggproto.c,v 1.9 2024/04/04 07:29:35 yamaguchi Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_laggproto.c,v 1.10 2024/04/04 07:31:10 yamaguchi Exp $");
#include <sys/param.h>
#include <sys/types.h>
@@ -674,6 +674,8 @@ lagg_lb_stopport(struct lagg_proto_softc
n++;
}
+ pm_next->pm_nports = n;
+
lagg_portmap_switch(&lb->lb_pmaps);
pserialize_perform(psc->psc_psz);
LAGG_PROTO_UNLOCK(psc);