mirror of
https://github.com/ipxe/ipxe
synced 2025-12-12 14:32:49 +03:00
[netdevice] Allow devices to indicate that interrupts are not supported
Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
@@ -542,6 +542,10 @@ void unregister_netdev ( struct net_device *netdev ) {
|
||||
*/
|
||||
void netdev_irq ( struct net_device *netdev, int enable ) {
|
||||
|
||||
/* Do nothing if device does not support interrupts */
|
||||
if ( ! netdev_irq_supported ( netdev ) )
|
||||
return;
|
||||
|
||||
/* Enable or disable device interrupts */
|
||||
netdev->op->irq ( netdev, enable );
|
||||
|
||||
|
||||
Reference in New Issue
Block a user