All of lore.kernel.org
 help / color / mirror / Atom feed
From: Benjamin Herrenschmidt <benh@kernel.crashing.org>
To: Herbert Xu <herbert@gondor.apana.org.au>
Cc: Stephen Hemminger <shemminger@vyatta.com>,
	gotzoncabanes@gmail.com, netdev@vger.kernel.org
Subject: Re: NAPI of many interfaces with just an interruption source
Date: Sun, 22 Feb 2009 08:19:22 +1100	[thread overview]
Message-ID: <1235251162.8805.212.camel@pasglop> (raw)
In-Reply-To: <20090221131251.GA28821@gondor.apana.org.au>


> Ben has just done exactly the same thing for his driver so he
> can tell you all about it and how to use his generic function :)

Right, you can look how it's done in ibm_newemac. There's basically
a "dummy" netdev which is created to handle the NAPI on behalf of
the real ones. The new core function init_dummy_netdev() will set
up that dummy netdev for you.

If you look at how I do it in emac, the actual ports "register"
internally with that "mal" module so that I can "poll" them when
the main NAPI is polled.

Cheers,
Ben.






  parent reply	other threads:[~2009-02-21 21:19 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-02-20 18:33 NAPI of many interfaces with just an interruption source Miguel Ángel Álvarez
2009-02-20 18:54 ` Stephen Hemminger
2009-02-21 13:12   ` Herbert Xu
2009-02-21 18:15     ` Miguel Ángel Álvarez
2009-02-21 21:19     ` Benjamin Herrenschmidt [this message]
2009-02-23  9:21       ` Miguel Ángel Álvarez

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=1235251162.8805.212.camel@pasglop \
    --to=benh@kernel.crashing.org \
    --cc=gotzoncabanes@gmail.com \
    --cc=herbert@gondor.apana.org.au \
    --cc=netdev@vger.kernel.org \
    --cc=shemminger@vyatta.com \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.