共 2 篇文章 |
|
vlan_proto_init(),@vlan.c;vlan_dev.c中主要是vlan设备相关的代码。然后来看vlan设备的驱动中的发送函数,有上一节知道,所有vlan设备的netdev_ops都被初始化为vlan_netdev_ops,它的发送函数为设置为vlan_dev_hard_start_xmit()(vlan_dev.c)。发现skb->vlan_tci置位,则执行vlan_do_receive(skb),该函数由skb->vlan_tci得到该skb包... 阅1238 转6 评0 公众公开 13-07-18 16:21 |
//Become Designated Port原语 br_configuration_update(br); //Configuration Update原语 br_port_state_selection(br); //Port State selection原语 if (br_is_root_bridge(br) &&!was_root) br_become_root_bridge(br); unlock: spin_unlock(&br->lock);}可以清晰地看到几个关键原语操作的执行,类似的还有br_received_confi... 阅79 转0 评0 公众公开 13-07-10 23:22 |