From: Eric Dumazet <eric.dumazet@gmail.com>
To: eilong@broadcom.com
Cc: Jon Zhou <Jon.Zhou@jdsu.com>,
"netdev@vger.kernel.org" <netdev@vger.kernel.org>
Subject: Re: will 2 cpu simultaneously process packets which have same hash value on multiqueue nic?
Date: Thu, 20 May 2010 14:00:26 +0200 [thread overview]
Message-ID: <1274356826.4046.29.camel@edumazet-laptop> (raw)
In-Reply-To: <1274355967.17395.5.camel@lb-tlvb-eilong.il.broadcom.com>
Le jeudi 20 mai 2010 à 14:46 +0300, Eilon Greenstein a écrit :
> On Wed, 2010-05-19 at 22:37 -0700, Jon Zhou wrote:
> > will 2 cpu simultaneously process packets which have same hash value on multiqueue nic?
> >
> > let 's take broadcom 57711 bnx2x_main.c as an example:
> >
> > #1 packet1->queue=1
> > #2 packet2->queue=1
> >
> > will cpu1 and cpu2 execute the function " bnx2x_rx_int" in parallel, to receive packet1 & packet2
> Both packets will be handled by the same queue and the queue processing
> is serialized - so the packets will be handled one after the other.
I am scratching my head to understand both the question and your
answer...
if cpu1 is handling an interrupt, cpu2 cannot handle an interrupt at the
same time for same queue. It must be for a different queue.
Therefore, packets will be handled in parallel.
Serialization might be done later, at socket layer to queue packets in a
receive queue for example, if both packets must be delivered on same
socket.
next prev parent reply other threads:[~2010-05-20 12:00 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-05-20 5:37 will 2 cpu simultaneously process packets which have same hash value on multiqueue nic? Jon Zhou
2010-05-20 11:46 ` Eilon Greenstein
2010-05-20 12:00 ` Eric Dumazet [this message]
2010-05-20 12:20 ` Eilon Greenstein
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=1274356826.4046.29.camel@edumazet-laptop \
--to=eric.dumazet@gmail.com \
--cc=Jon.Zhou@jdsu.com \
--cc=eilong@broadcom.com \
--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