From: Chetan Loke <chetanloke@gmail.com>
To: David Daney <ddaney@caviumnetworks.com>
Cc: Chris Friesen <cfriesen@nortel.com>,
netdev@vger.kernel.org,
Linux Kernel Mailing List <linux-kernel@vger.kernel.org>,
linux-mips <linux-mips@linux-mips.org>
Subject: Re: Irq architecture for multi-core network driver.
Date: Wed, 16 Dec 2009 17:08:11 -0500 [thread overview]
Message-ID: <b2f3590f0912161408u73947f6fx6902ebef927caf94@mail.gmail.com> (raw)
In-Reply-To: <4AE0DB98.1000101@caviumnetworks.com>
>>
>> Does your hardware do flow-based queues? In this model you have
>> multiple rx queues and the hardware hashes incoming packets to a single
>> queue based on the addresses, ports, etc. This ensures that all the
>> packets of a single connection always get processed in the order they
>> arrived at the net device.
>>
>
> Indeed, this is exactly what we have.
>
>
>> Typically in this model you have as many interrupts as queues
>> (presumably 16 in your case). Each queue is assigned an interrupt and
>> that interrupt is affined to a single core.
>
> Certainly this is one mode of operation that should be supported, but I
> would also like to be able to go for raw throughput and have as many cores
> as possible reading from a single queue (like I currently have).
>
Well, you could let the NIC firmware(f/w) handle this. The f/w would
know which interrupt was just injected recently.In other words it
would have a history of which CPU's would be available. So if some
previously interrupted CPU isn't making good progress then the
firmware should route the incoming response packets to a different
queue. This way some other CPU will pick it up.
> David Daney
> --
Chetan Loke
next prev parent reply other threads:[~2009-12-16 22:08 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-10-22 21:40 David Daney
2009-10-22 22:05 ` Chris Friesen
2009-10-22 22:24 ` David Daney
2009-10-23 7:59 ` Eric W. Biederman
2009-10-23 17:28 ` Jesse Brandeburg
2009-10-23 23:22 ` Eric W. Biederman
2009-10-24 13:26 ` David Miller
2009-10-24 3:19 ` David Miller
2009-10-24 13:23 ` David Miller
2009-12-16 22:08 ` Chetan Loke [this message]
2009-12-16 22:30 ` David Daney
2009-12-16 23:00 ` Stephen Hemminger
2009-12-16 23:26 ` David Daney
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=b2f3590f0912161408u73947f6fx6902ebef927caf94@mail.gmail.com \
--to=chetanloke@gmail.com \
--cc=cfriesen@nortel.com \
--cc=ddaney@caviumnetworks.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mips@linux-mips.org \
--cc=netdev@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®