Skip to content

Commit 40a8a52

Browse files
committed
[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>
1 parent 988243c commit 40a8a52

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

src/config/config_ethernet.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,3 +43,6 @@ REQUIRE_OBJECT ( fcoe );
4343
#ifdef NET_PROTO_STP
4444
REQUIRE_OBJECT ( stp );
4545
#endif
46+
#ifdef NET_PROTO_LACP
47+
REQUIRE_OBJECT ( eth_slow );
48+
#endif

src/config/general.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL );
3838
#undef NET_PROTO_IPV6 /* IPv6 protocol */
3939
#undef NET_PROTO_FCOE /* Fibre Channel over Ethernet protocol */
4040
#define NET_PROTO_STP /* Spanning Tree protocol */
41+
#define NET_PROTO_LACP /* Link Aggregation control protocol */
4142

4243
/*
4344
* PXE support

src/net/ethernet.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -278,6 +278,3 @@ REQUIRING_SYMBOL ( ethernet_protocol );
278278

279279
/* Drag in Ethernet configuration */
280280
REQUIRE_OBJECT ( config_ethernet );
281-
282-
/* Drag in Ethernet slow protocols */
283-
REQUIRE_OBJECT ( eth_slow );

0 commit comments

Comments
 (0)