Use net_device_operations structure and netdev_nullify() to allow for
authorMichael Brown <mcb30@etherboot.org>
Sat, 7 Jul 2007 15:43:39 +0000 (16:43 +0100)
committerMichael Brown <mcb30@etherboot.org>
Sat, 7 Jul 2007 15:43:39 +0000 (16:43 +0100)
commit4c418d2100228b1c478908c08f51811a474e0e1e
treee55c3fc14b82a642f1a3cf08c2356b0aad907536
parent2823688a923b84d1a5683dc153c2ed1c9ecff275
Use net_device_operations structure and netdev_nullify() to allow for
safe dropping of the netdev ref by the driver while other refs still
exist.

Add netdev_irq() method.  Net device open()/close() methods should no
longer enable or disable IRQs.

Remove rx_quota; it wasn't used anywhere and added too much complexity
to implementing correct interrupt-masking behaviour in pxe_undi.c.
src/arch/i386/drivers/net/undinet.c
src/drivers/net/legacy.c
src/drivers/net/pnic.c
src/drivers/net/rtl8139.c
src/include/gpxe/netdevice.h
src/interface/pxe/pxe_undi.c
src/net/netdevice.c
src/net/nullnet.c [new file with mode: 0644]