netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* RPS will assign different smp_processor_id for the same packet?
@ 2011-04-21 15:50 zhou rui
  2011-04-21 16:08 ` Eric Dumazet
  0 siblings, 1 reply; 12+ messages in thread
From: zhou rui @ 2011-04-21 15:50 UTC (permalink / raw)
  To: netdev

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?

thanks
rui

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

end of thread, other threads:[~2011-04-25 11:02 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
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

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).