summaryrefslogtreecommitdiffstats
path: root/src/net/ethernet.c
diff options
context:
space:
mode:
authorMichael Brown2010-05-10 17:30:10 +0200
committerMichael Brown2010-05-10 17:34:17 +0200
commit84996b7b09341b3cb4b93fdae4bdb2cb217045c7 (patch)
treef3c9385844d21202ffc8a74e5fc72995e6f8b110 /src/net/ethernet.c
parent[build] Fix building with binutils 2.16 (diff)
downloadipxe-84996b7b09341b3cb4b93fdae4bdb2cb217045c7.tar.gz
ipxe-84996b7b09341b3cb4b93fdae4bdb2cb217045c7.tar.xz
ipxe-84996b7b09341b3cb4b93fdae4bdb2cb217045c7.zip
[lacp] Add simple LACP implementation
Some switch configurations will refuse to enable our port unless we can speak LACP to inform the switch that we are alive. Add a very simple passive LACP implementation that is sufficient to convince at least Linux's bonding driver (when tested using qemu attached to a tap device enslaved to a bond device configured as "mode=802.3ad"). Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/net/ethernet.c')
-rw-r--r--src/net/ethernet.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/net/ethernet.c b/src/net/ethernet.c
index 5c5936f4..d14cfefc 100644
--- a/src/net/ethernet.c
+++ b/src/net/ethernet.c
@@ -191,3 +191,6 @@ struct net_device * alloc_etherdev ( size_t priv_size ) {
}
return netdev;
}
+
+/* Drag in Ethernet slow protocols */
+REQUIRE_OBJECT ( eth_slow );