]> git.ipfire.org Git - thirdparty/ipxe.git/commit
[netdevice] Add the concept of an insomniac network device
authorMichael Brown <mcb30@ipxe.org>
Wed, 16 Apr 2025 23:27:13 +0000 (00:27 +0100)
committerMichael Brown <mcb30@ipxe.org>
Thu, 17 Apr 2025 09:42:22 +0000 (10:42 +0100)
commitb07cc851f0ad424e36c8f2c3a9673e634560b020
treedf4a86547fdbc533b7c9c6902ca226ab655e4b71
parentc88ebf2ac6291f396112b813e6ac71cff4732a34
[netdevice] Add the concept of an insomniac network device

Some network devices (observed with the SNP interface to the wireless
network card on an HP Elitebook 840 G10) will stop working if they are
left for too long without being polled.

Add the concept of an insomniac network device, that must continue to
be polled even when closed.

Note that drivers are already permitted to call netdev_rx() et al even
when closed: this will already be happening for USB devices since
polling operates at the level of the whole USB bus, rather than at the
level of individual USB devices.

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