]> gitweb.unchartedbackwaters.co.uk Git - francis/winuae.git/commit
a2065: drop frames that cannot fit receive ring
authorStefan Reinauer <stefan.reinauer@coreboot.org>
Fri, 5 Jun 2026 04:41:45 +0000 (21:41 -0700)
committerStefan Reinauer <stefan.reinauer@coreboot.org>
Tue, 7 Jul 2026 20:47:38 +0000 (13:47 -0700)
commitf4c186eb54447008756e890921c3e006547bd9eb
tree8c6c294d4b6412de5f563f454699584a31ce8d5f
parentdb930ca3023cf802a28222ad7c4d377736633a08
a2065: drop frames that cannot fit receive ring

The receive queue can stall forever if the packet at its head is larger
than the current descriptor ring can accept. Check the full frame size,
including padding and FCS bytes, before trying to drain the queue.

Drop packets that can never fit and reject packets that would overflow
the temporary frame buffer when the emulated FCS is appended.
a2065.cpp