]> git.ipfire.org Git - thirdparty/ipxe.git/commit
[lacp] Detect and ignore erroneously looped back LACP packets
authorMichael Brown <mcb30@ipxe.org>
Tue, 13 Oct 2020 12:35:39 +0000 (13:35 +0100)
committerMichael Brown <mcb30@ipxe.org>
Wed, 14 Oct 2020 12:36:17 +0000 (13:36 +0100)
commit3d43789914b99b838ddd75c1c656e674a6807fb7
tree196cfbb1df5b269b3078fb2cccda611d15e6461e
parent02748d0a584f22a568347d719291725e6fd63029
[lacp] Detect and ignore erroneously looped back LACP packets

Some external drivers (observed with the UEFI NII driver provided by
an HPE-branded Mellanox ConnectX-3 Pro) seem to cause LACP packets
transmitted by iPXE to be looped back as received packets.  Since
iPXE's trivial LACP responder will send one response per received
packet, this results in an immediate LACP packet storm.

Detect looped back LACP packets (based on the received LACP actor MAC
address), and refuse to respond to such packets.

Reported-by: Tore Anderson <tore@fud.no>
Tested-by: Tore Anderson <tore@fud.no>
Signed-off-by: Michael Brown <mcb30@ipxe.org>
src/net/eth_slow.c