performance about the bridge in smp env

4 views
Skip to first unread message

jiangtao.jit

unread,
Jul 14, 2011, 7:14:21 AM7/14/11
to linux-kernel
hi,all

i noticed when a bridge device was added to the box, we use br_add_bridge()

and then use alloc_netdev() to allocate the new device
so, the bridge only have one tx queue, am i right?

if we use the bridge to transmit packets out
in dev_queue_xmit() we can only choose _tx[0],

then in __dev_xmit_skb() , we'll lock the queue

if we are in smp env, will there be some race condition?
and cause performance reducing

is that the case? or i'd made some misunderstanding about the xmit path?
do we need to make the bridge as mqs?

thanks

2011-07-14

jiangtao.jit
_______________________________________________
Linux 内核开发中文邮件列表
Linux-...@zh-kernel.org
http://zh-kernel.org/mailman/listinfo/linux-kernel
Linux 内核开发中文社区: http://zh-kernel.org

Reply all
Reply to author
Forward
0 new messages