Netpoll is merged
Supporting netconsole in network drivers turns out to be relatively easy - for most adaptors. There is a new net_device method called poll_controller(); its job is to catch up with whatever the device has been doing. For many devices, this method looks like this:
static void poll_my_card(struct net_device *dev);
{
disable_device_interrupts();
call_interrupt_handler(dev);
reenable_device_interrupts();
}
Netpoll, in other words, is simulating device interrupts from within the
kernel. Some device interrupt handlers may need tweaks to ensure that they
do all of the necessary work without a real hardware interrupt, but most
seem to work as they are.
| Index entries for this article | |
|---|---|
| Kernel | Networking |
