]> git.unchartedbackwaters.co.uk Git - francis/winuae.git/commit
ethernet: defer NIC receive injection to hsync
authorStefan Reinauer <stefan.reinauer@coreboot.org>
Sat, 30 May 2026 06:45:21 +0000 (23:45 -0700)
committerStefan Reinauer <stefan.reinauer@coreboot.org>
Tue, 2 Jun 2026 22:36:55 +0000 (15:36 -0700)
commit8da8821d4966fdc6292ad6118ec4b327b88761bb
treee6bfb8841175e261131d06ce567b77400d330ef1
parent972c719a455c128a584f78df350c9e1043f416c0
ethernet: defer NIC receive injection to hsync

A2065/Ariadne injected packets directly from the host network
callback. With SLIRP or pcap this callback can run on a helper
thread, so receive DMA and interrupt updates could race PPC I/O
callbacks.

Queue received frames and drain them from the device hsync
handler, where the rest of the emulated card state is updated. Also
stop the NE2000 host callback from draining its queue, leaving that
work to the existing hsync path.
a2065.cpp
qemuvga/ne2000.cpp