Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/net/lagg Make lagg interface specified "laggproto none" ...



details:   https://anonhg.NetBSD.org/src/rev/27d4ff43cbcd
branches:  trunk
changeset: 364605:27d4ff43cbcd
user:      yamaguchi <yamaguchi%NetBSD.org@localhost>
date:      Thu Mar 31 03:12:31 2022 +0000

description:
Make lagg interface specified "laggproto none" able to up

diffstat:

 sys/net/lagg/if_lagg.c      |   5 ++---
 sys/net/lagg/if_laggproto.c |  11 ++---------
 sys/net/lagg/if_laggproto.h |   3 +--
 3 files changed, 5 insertions(+), 14 deletions(-)

diffs (75 lines):

diff -r 487693932454 -r 27d4ff43cbcd sys/net/lagg/if_lagg.c
--- a/sys/net/lagg/if_lagg.c    Thu Mar 31 03:10:59 2022 +0000
+++ b/sys/net/lagg/if_lagg.c    Thu Mar 31 03:12:31 2022 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: if_lagg.c,v 1.40 2022/03/31 03:10:59 yamaguchi Exp $   */
+/*     $NetBSD: if_lagg.c,v 1.41 2022/03/31 03:12:31 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.40 2022/03/31 03:10:59 yamaguchi Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_lagg.c,v 1.41 2022/03/31 03:12:31 yamaguchi Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_inet.h"
@@ -86,7 +86,6 @@
        [LAGG_PROTO_NONE] = {
                .pr_num = LAGG_PROTO_NONE,
                .pr_attach = lagg_none_attach,
-               .pr_up = lagg_none_up,
        },
        [LAGG_PROTO_LACP] = {
                .pr_num = LAGG_PROTO_LACP,
diff -r 487693932454 -r 27d4ff43cbcd sys/net/lagg/if_laggproto.c
--- a/sys/net/lagg/if_laggproto.c       Thu Mar 31 03:10:59 2022 +0000
+++ b/sys/net/lagg/if_laggproto.c       Thu Mar 31 03:12:31 2022 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: if_laggproto.c,v 1.4 2022/03/31 03:05:41 yamaguchi Exp $       */
+/*     $NetBSD: if_laggproto.c,v 1.5 2022/03/31 03:12:31 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.4 2022/03/31 03:05:41 yamaguchi Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_laggproto.c,v 1.5 2022/03/31 03:12:31 yamaguchi Exp $");
 
 #include <sys/param.h>
 #include <sys/types.h>
@@ -381,13 +381,6 @@
 }
 
 int
-lagg_none_up(struct lagg_proto_softc *psc __unused)
-{
-
-       return EBUSY;
-}
-
-int
 lagg_fail_attach(struct lagg_softc *sc, struct lagg_proto_softc **xpsc)
 {
        struct lagg_proto_softc *psc;
diff -r 487693932454 -r 27d4ff43cbcd sys/net/lagg/if_laggproto.h
--- a/sys/net/lagg/if_laggproto.h       Thu Mar 31 03:10:59 2022 +0000
+++ b/sys/net/lagg/if_laggproto.h       Thu Mar 31 03:12:31 2022 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: if_laggproto.h,v 1.12 2022/03/31 03:10:59 yamaguchi Exp $      */
+/*     $NetBSD: if_laggproto.h,v 1.13 2022/03/31 03:12:31 yamaguchi Exp $      */
 
 /*
  * Copyright (c) 2021 Internet Initiative Japan Inc.
@@ -282,7 +282,6 @@
 
 int            lagg_none_attach(struct lagg_softc *,
                    struct lagg_proto_softc **);
-int            lagg_none_up(struct lagg_proto_softc *);
 
 int            lagg_fail_attach(struct lagg_softc *,
                    struct lagg_proto_softc **);



Home | Main Index | Thread Index | Old Index