]> git.ipfire.org Git - thirdparty/ipxe.git/commit
[netdevice] Allow per-device receive queue processing to be frozen
authorMichael Brown <mcb30@ipxe.org>
Sat, 20 Nov 2010 04:56:25 +0000 (04:56 +0000)
committerMichael Brown <mcb30@ipxe.org>
Sat, 20 Nov 2010 15:46:00 +0000 (15:46 +0000)
commit4576c2da587eeb884fbf848021d06d1a7d280e3f
tree1316462745251b50f02733d76b3379cdb7b772d5
parent006d9f1f60594d6ffd147bea1f08bc753051a50d
[netdevice] Allow per-device receive queue processing to be frozen

Several use cases (e.g. the UNDI API and the EFI SNP API) require
access to the raw network device receive queue, and so currently use
manual calls to netdev_poll() on a specific network device in order to
prevent received packets from being processed by the network stack.

As an alternative, provide a flag that allows receive queue processing
to be frozen on a per-device basis.  When receive queue processing is
frozen, packets will be enqueued as normal, but will not be
automatically dequeued and passed up the network stack.

Signed-off-by: Michael Brown <mcb30@ipxe.org>
src/include/ipxe/netdevice.h
src/net/netdevice.c