[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <1303402094.3685.54.camel@edumazet-laptop>
Date: Thu, 21 Apr 2011 18:08:14 +0200
From: Eric Dumazet <eric.dumazet@...il.com>
To: zhou rui <zhourui.cn@...il.com>
Cc: netdev@...r.kernel.org
Subject: Re: RPS will assign different smp_processor_id for the same packet?
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 ?
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists