diff options
author | Michael Brown <mcb30@ipxe.org> | 2015-06-25 10:04:42 +0100 |
---|---|---|
committer | Michael Brown <mcb30@ipxe.org> | 2015-06-25 16:58:38 +0100 |
commit | fb28c4a97941c1ab21ee5eba725c69822f51aa1d (patch) | |
tree | be39cd2b8412352e9dc7dbb2f831fef77a697a82 /src/config/general.h | |
parent | f3812395a261b80fe77d19ebb9045e790c434773 (diff) | |
download | ipxe-fb28c4a97941c1ab21ee5eba725c69822f51aa1d.tar.gz |
[stp] Add support for detecting Spanning Tree Protocol non-forwarding ports
A fairly common end-user problem is that the default configuration of
a switch may leave the port in a non-forwarding state for a
substantial length of time (tens of seconds) after link up. This can
cause iPXE to time out and give up attempting to boot.
We cannot force the switch to start forwarding packets sooner, since
any attempt to send a Spanning Tree Protocol bridge PDU may cause the
switch to disable our port (if the switch happens to have the Bridge
PDU Guard feature enabled for the port).
For non-ancient versions of the Spanning Tree Protocol, we can detect
whether or not the port is currently forwarding and use this to inform
the network device core that the link is currently blocked.
Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/config/general.h')
-rw-r--r-- | src/config/general.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/config/general.h b/src/config/general.h index 7676f158..c8afc10a 100644 --- a/src/config/general.h +++ b/src/config/general.h @@ -37,6 +37,7 @@ FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL ); #define NET_PROTO_IPV4 /* IPv4 protocol */ #undef NET_PROTO_IPV6 /* IPv6 protocol */ #undef NET_PROTO_FCOE /* Fibre Channel over Ethernet protocol */ +#define NET_PROTO_STP /* Spanning Tree protocol */ /* * PXE support |