From 33d79d5d2b6cfd57fbe0733f66784fac658cb360 Mon Sep 17 00:00:00 2001 From: Michael Brown Date: Sun, 18 Mar 2018 17:11:16 +0200 Subject: [lacp] Mark link as blocked if partner is not yet up and running Mark the link as blocked if the LACP partner is not reporting itself as being in sync, collecting, and distributing. This matches the behaviour for STP: we mark the link as blocked if we detect that the switch is actively blocking traffic, in order to extend the DHCP discovery period and so prevent boot failures on switches that take an excessively long time to enable ports. Signed-off-by: Michael Brown --- src/include/ipxe/eth_slow.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/include') diff --git a/src/include/ipxe/eth_slow.h b/src/include/ipxe/eth_slow.h index f6d731b3..754ea6e1 100644 --- a/src/include/ipxe/eth_slow.h +++ b/src/include/ipxe/eth_slow.h @@ -190,6 +190,12 @@ struct eth_slow_lacp_entity_tlv { */ #define LACP_STATE_EXPIRED 0x80 +/** LACP fast interval (1 second) */ +#define LACP_INTERVAL_FAST 1 + +/** LACP slow interval (30 seconds) */ +#define LACP_INTERVAL_SLOW 30 + /** LACP collector TLV */ struct eth_slow_lacp_collector_tlv { /** TLV header */ -- cgit v1.2.3-55-g7522