Re: NAPI poll routine happens in interrupt context?

From: David S. Miller
Date: Wed Aug 17 2005 - 13:34:50 EST


From: Joshua Wise <Joshua.Wise@xxxxxxxxxxxx>
Date: Wed, 17 Aug 2005 09:32:10 -0400

> I have recently been working on a network driver for an emulated ultra-simple
> network card, and I've run into a few snags with the NAPI. My current issue
> is that it seems to me that my poll routine is being called from an atomic
> context, so when poll calls rx, and rx calls netif_receive_skb, I end up with
> lots of __might_sleep warnings in the various network layers.

NAPI's ->poll method is invoked from software IRQ context.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/