Browse Source

[ethernet] Make LACP support configurable at build time

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>
tags/v1.20.1
Michael Brown 8 years ago
parent
commit
40a8a5294c
3 changed files with 4 additions and 3 deletions
  1. 3
    0
      src/config/config_ethernet.c
  2. 1
    0
      src/config/general.h
  3. 0
    3
      src/net/ethernet.c

+ 3
- 0
src/config/config_ethernet.c View File

@@ -43,3 +43,6 @@ REQUIRE_OBJECT ( fcoe );
43 43
 #ifdef NET_PROTO_STP
44 44
 REQUIRE_OBJECT ( stp );
45 45
 #endif
46
+#ifdef NET_PROTO_LACP
47
+REQUIRE_OBJECT ( eth_slow );
48
+#endif

+ 1
- 0
src/config/general.h View File

@@ -38,6 +38,7 @@ FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL );
38 38
 #undef	NET_PROTO_IPV6		/* IPv6 protocol */
39 39
 #undef	NET_PROTO_FCOE		/* Fibre Channel over Ethernet protocol */
40 40
 #define	NET_PROTO_STP		/* Spanning Tree protocol */
41
+#define	NET_PROTO_LACP		/* Link Aggregation control protocol */
41 42
 
42 43
 /*
43 44
  * PXE support

+ 0
- 3
src/net/ethernet.c View File

@@ -278,6 +278,3 @@ REQUIRING_SYMBOL ( ethernet_protocol );
278 278
 
279 279
 /* Drag in Ethernet configuration */
280 280
 REQUIRE_OBJECT ( config_ethernet );
281
-
282
-/* Drag in Ethernet slow protocols */
283
-REQUIRE_OBJECT ( eth_slow );

Loading…
Cancel
Save