]> git.ipfire.org Git - thirdparty/ipxe.git/commitdiff
[ethernet] Make LACP support configurable at build time
authorMichael Brown <mcb30@ipxe.org>
Mon, 18 Apr 2016 09:08:46 +0000 (10:08 +0100)
committerMichael Brown <mcb30@ipxe.org>
Mon, 18 Apr 2016 09:08:46 +0000 (10:08 +0100)
Add a build configuration option NET_PROTO_LACP to control whether or
not LACP support is included for Ethernet devices.

Signed-off-by: Michael Brown <mcb30@ipxe.org>
src/config/config_ethernet.c
src/config/general.h
src/net/ethernet.c

index de7a07c5754a93f42f1599e8c77a8c12660f66c8..b5f7ddc9d5fa39bbf0b019860616b45cbe082e05 100644 (file)
@@ -43,3 +43,6 @@ REQUIRE_OBJECT ( fcoe );
 #ifdef NET_PROTO_STP
 REQUIRE_OBJECT ( stp );
 #endif
+#ifdef NET_PROTO_LACP
+REQUIRE_OBJECT ( eth_slow );
+#endif
index 675c11e077d02b4cbbdc867932cea7305b272caa..a215015003500de715e9991f270da9eb8ecb5faf 100644 (file)
@@ -38,6 +38,7 @@ FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL );
 #undef NET_PROTO_IPV6          /* IPv6 protocol */
 #undef NET_PROTO_FCOE          /* Fibre Channel over Ethernet protocol */
 #define        NET_PROTO_STP           /* Spanning Tree protocol */
+#define        NET_PROTO_LACP          /* Link Aggregation control protocol */
 
 /*
  * PXE support
index 6ddf053445a6ca16895ff5162b7db0668a0a2330..26fdedea8e1242ef89438633f592eeb313562f8a 100644 (file)
@@ -278,6 +278,3 @@ REQUIRING_SYMBOL ( ethernet_protocol );
 
 /* Drag in Ethernet configuration */
 REQUIRE_OBJECT ( config_ethernet );
-
-/* Drag in Ethernet slow protocols */
-REQUIRE_OBJECT ( eth_slow );