Skip to content

Commit

Permalink
[ethernet] Make LACP support configurable at build time
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
mcb30 committed Apr 18, 2016
1 parent 988243c commit 40a8a52
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
3 changes: 3 additions & 0 deletions src/config/config_ethernet.c
Expand Up @@ -43,3 +43,6 @@ REQUIRE_OBJECT ( fcoe );
#ifdef NET_PROTO_STP
REQUIRE_OBJECT ( stp );
#endif
#ifdef NET_PROTO_LACP
REQUIRE_OBJECT ( eth_slow );
#endif
1 change: 1 addition & 0 deletions src/config/general.h
Expand Up @@ -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
Expand Down
3 changes: 0 additions & 3 deletions src/net/ethernet.c
Expand Up @@ -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 );

0 comments on commit 40a8a52

Please sign in to comment.