mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "David S. Miller" <davem@davemloft.net>
To: Joshua.Wise@sicortex.com
Cc: linux-kernel@vger.kernel.org, aaron.brooks@sicortex.com
Subject: Re: NAPI poll routine happens in interrupt context?
Date: Wed, 17 Aug 2005 11:34:32 -0700 (PDT)	[thread overview]
Message-ID: <20050817.113432.107383006.davem@davemloft.net> (raw)
In-Reply-To: <200508170932.10441.Joshua.Wise@sicortex.com>

From: Joshua Wise <Joshua.Wise@sicortex.com>
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.

      parent reply	other threads:[~2005-08-17 18:34 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-08-17 13:32 Joshua Wise
2005-08-17 14:19 ` Joshua Wise
2005-08-17 16:43 ` Stephen Hemminger
2005-08-17 17:21   ` Joshua Wise
2005-08-17 18:18     ` Ralf Baechle
2005-08-17 18:34 ` David S. Miller [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20050817.113432.107383006.davem@davemloft.net \
    --to=davem@davemloft.net \
    --cc=Joshua.Wise@sicortex.com \
    --cc=aaron.brooks@sicortex.com \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®