From: Eric Dumazet <eric.dumazet@gmail.com>
To: zhou rui <zhourui.cn@gmail.com>
Cc: netdev@vger.kernel.org
Subject: Re: RPS will assign different smp_processor_id for the same packet?
Date: Thu, 21 Apr 2011 18:08:14 +0200 [thread overview]
Message-ID: <1303402094.3685.54.camel@edumazet-laptop> (raw)
In-Reply-To: <BANLkTimvuGKYuiV_ngTo4wtqhNix4iMfmA@mail.gmail.com>
Le jeudi 21 avril 2011 à 23:50 +0800, zhou rui a écrit :
> kernel 2.6.36.4
> CONFIG_RPS=y but not set the cpu mask
>
> /sys/class/net/eth1/queues/rx-0 # cat rps_cpus
> 00
>
> register a hook func:
> prot_hook.func = packet_rcv;
> prot_hook.type = htons(ETH_P_ALL);
> dev_add_pack(&prot_hook);
>
>
> replay the same traffic in very slow speed, printk the
> smp_processor_id in packet_rcv():
> first time:
> cpu=4
> cpu=3
> cpu=6
> cpu=7
>
> second time:
> cpu=7
> cpu=1
> cpu=5
> cpu=2
>
> is it normal?
Yes it is.
What would you expect ?
next prev parent reply other threads:[~2011-04-21 16:08 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-04-21 15:50 RPS will assign different smp_processor_id for the same packet? zhou rui
2011-04-21 16:08 ` Eric Dumazet [this message]
2011-04-21 16:25 ` Eric Dumazet
2011-04-21 16:29 ` zhou rui
2011-04-23 15:31 ` zhou rui
2011-04-23 19:56 ` Tom Herbert
2011-04-24 2:00 ` zhou rui
2011-04-24 8:00 ` Eric Dumazet
2011-04-24 9:36 ` zhou rui
2011-04-24 10:53 ` Eric Dumazet
2011-04-25 11:02 ` Neil Horman
2011-04-21 16:27 ` zhou rui
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=1303402094.3685.54.camel@edumazet-laptop \
--to=eric.dumazet@gmail.com \
--cc=netdev@vger.kernel.org \
--cc=zhourui.cn@gmail.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox