netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* NAPI of many interfaces with just an interruption source
@ 2009-02-20 18:33 Miguel Ángel Álvarez
  2009-02-20 18:54 ` Stephen Hemminger
  0 siblings, 1 reply; 6+ messages in thread
From: Miguel Ángel Álvarez @ 2009-02-20 18:33 UTC (permalink / raw)
  To: netdev, Miguel Ángel Álvarez

Hi

I have four interfaces that share the same interruption source (four
hdlc channels in ixp4xx that share the same rx queue... but I am
trying to do the question generic).

My first approach was to declare a napi interface for each device.
When I detected the first interrupt, I determine the correct net
interface, and schedule a poll for it.

The question is that there is no warranty that the data received in
the polling belongs to the same interface, so...

- It is correct to do like this, and just analyse the data to check to
which net interface should the data be sent.
- Or NAPI is not correct for this case and we should just use the
simple interruption mechanism?

Thanks

Miguel Ángel Álvarez

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2009-02-23  9:21 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
2009-02-23  9:21       ` Miguel Ángel Álvarez

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).