Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/net/lagg Configure vlan to an added interface after sett...
details: https://anonhg.NetBSD.org/src/rev/d390548c2516
branches: trunk
changeset: 1025547:d390548c2516
user: yamaguchi <yamaguchi%NetBSD.org@localhost>
date: Fri Nov 12 05:56:54 2021 +0000
description:
Configure vlan to an added interface after setting ifnet::if_lagg
The configuration uses ioctl of the interface, and the ioctl
for port (lagg_port_ioctl) needs ifnet:::if_lagg setting.
diffstat:
sys/net/lagg/if_lagg.c | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
diffs (35 lines):
diff -r 9d2dd95da50c -r d390548c2516 sys/net/lagg/if_lagg.c
--- a/sys/net/lagg/if_lagg.c Fri Nov 12 05:48:58 2021 +0000
+++ b/sys/net/lagg/if_lagg.c Fri Nov 12 05:56:54 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: if_lagg.c,v 1.24 2021/11/12 05:48:58 yamaguchi Exp $ */
+/* $NetBSD: if_lagg.c,v 1.25 2021/11/12 05:56:54 yamaguchi Exp $ */
/*
* Copyright (c) 2005, 2006 Reyk Floeter <reyk%openbsd.org@localhost>
@@ -20,7 +20,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_lagg.c,v 1.24 2021/11/12 05:48:58 yamaguchi Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_lagg.c,v 1.25 2021/11/12 05:56:54 yamaguchi Exp $");
#ifdef _KERNEL_OPT
#include "opt_inet.h"
@@ -2472,13 +2472,13 @@
if (error != 0)
goto teardown_lladdr;
- lagg_port_syncmulti(sc, lp);
- lagg_port_syncvlan(sc, lp);
-
atomic_store_release(&ifp_port->if_lagg, (void *)lp);
SIMPLEQ_INSERT_TAIL(&sc->sc_ports, lp, lp_entry);
sc->sc_nports++;
+ lagg_port_syncmulti(sc, lp);
+ lagg_port_syncvlan(sc, lp);
+
if (stopped) {
error = ifp_port->if_init(ifp_port);
if (error != 0)
Home |
Main Index |
Thread Index |
Old Index