]> git.ipfire.org Git - thirdparty/ipxe.git/commit
[pxe] Discard queued PXE UDP packets when under memory pressure 859/head
authorMichael Brown <mcb30@ipxe.org>
Mon, 23 Jan 2023 22:20:36 +0000 (22:20 +0000)
committerMichael Brown <mcb30@ipxe.org>
Wed, 25 Jan 2023 10:03:09 +0000 (10:03 +0000)
commit4bffe0f0d9d0e1496ae5cfb7579e813277c29b0f
tree77bc6149c1832272ec56fe271b6e2bbea6a7c1d3
parentc5426cdaa943a14183edb424b472d7e0d7e55cc3
[pxe] Discard queued PXE UDP packets when under memory pressure

The PXE UDP receive queue may grow without limit if the PXE NBP does
not call PXENV_UDP_READ sufficiently frequently.

Fix by implementing a cache discarder for received PXE UDP packets
(similar to the TCP cache discarder).

Reported-by: Tal Shorer <shorer@amazon.com>
Signed-off-by: Michael Brown <mcb30@ipxe.org>
src/arch/x86/interface/pxe/pxe_udp.c