Source-Changes-HG archive

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

[src/trunk]: src/sys Added a kernel option to run LACP on a half duplex inter...



details:   https://anonhg.NetBSD.org/src/rev/0a6afd7ff51f
branches:  trunk
changeset: 364587:0a6afd7ff51f
user:      yamaguchi <yamaguchi%NetBSD.org@localhost>
date:      Thu Mar 31 01:36:47 2022 +0000

description:
Added a kernel option to run LACP on a half duplex interface

diffstat:

 sys/net/lagg/files.lagg               |  3 ++-
 sys/net/lagg/if_lagg_lacp.c           |  6 ++++--
 sys/rump/include/opt/opt_rumpkernel.h |  4 +++-
 3 files changed, 9 insertions(+), 4 deletions(-)

diffs (58 lines):

diff -r 9b60d13ba402 -r 0a6afd7ff51f sys/net/lagg/files.lagg
--- a/sys/net/lagg/files.lagg   Wed Mar 30 22:34:48 2022 +0000
+++ b/sys/net/lagg/files.lagg   Thu Mar 31 01:36:47 2022 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: files.lagg,v 1.3 2021/11/16 04:48:43 yamaguchi Exp $
+#      $NetBSD: files.lagg,v 1.4 2022/03/31 01:36:47 yamaguchi Exp $
 
 file   net/lagg/if_lagg.c              lagg & ether    needs-flag
 file   net/lagg/if_lagg_lacp.c         lagg & ether
@@ -6,4 +6,5 @@
 
 defflag opt_lagg.h                     LAGG_DEBUG LACP_DEBUG
                                        LACP_STANDBY_SYNCED
+                                       LACP_NOFDX
 defparam opt_lagg.h                    LAGG_SETCAPS_RETRY
diff -r 9b60d13ba402 -r 0a6afd7ff51f sys/net/lagg/if_lagg_lacp.c
--- a/sys/net/lagg/if_lagg_lacp.c       Wed Mar 30 22:34:48 2022 +0000
+++ b/sys/net/lagg/if_lagg_lacp.c       Thu Mar 31 01:36:47 2022 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: if_lagg_lacp.c,v 1.13 2022/01/16 10:45:17 rillig Exp $ */
+/*     $NetBSD: if_lagg_lacp.c,v 1.14 2022/03/31 01:36:47 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.13 2022/01/16 10:45:17 rillig Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_lagg_lacp.c,v 1.14 2022/03/31 01:36:47 yamaguchi Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_lagg.h"
@@ -867,7 +867,9 @@
                }
 
                if (ISSET(media, LACP_MEDIA_ETHER) &&
+#ifndef LACP_NOFDX
                    ISSET(media, LACP_MEDIA_FDX) &&
+#endif
                    ifp_port->if_link_state != LINK_STATE_DOWN &&
                    ISSET(ifp_port->if_flags, IFF_RUNNING)) {
                        lacp_port_enable(lsc, lacpp);
diff -r 9b60d13ba402 -r 0a6afd7ff51f sys/rump/include/opt/opt_rumpkernel.h
--- a/sys/rump/include/opt/opt_rumpkernel.h     Wed Mar 30 22:34:48 2022 +0000
+++ b/sys/rump/include/opt/opt_rumpkernel.h     Thu Mar 31 01:36:47 2022 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: opt_rumpkernel.h,v 1.7 2021/07/14 03:19:24 ozaki-r Exp $       */
+/*     $NetBSD: opt_rumpkernel.h,v 1.8 2022/03/31 01:36:47 yamaguchi Exp $     */
 
 #ifndef __NetBSD__
 #define __NetBSD__
@@ -36,3 +36,5 @@
 
 #define ALTQ
 #define ALTQ_CBQ
+
+#define LACP_NOFDX



Home | Main Index | Thread Index | Old Index