摘要:
在上一节提到,Openvswitch的内核模块openvswitch.ko会在网卡上注册一个函数netdev_frame_hook,每当有网络包到达网卡的时候,这个函数就会被调用。 static struct sk_buff *netdev_frame_hook(struct sk_buff *skb) { if (unlikely(skb->pkt_type =... 阅读全文
posted @ 2016-09-13 23:26
popsuper1982
阅读(4206)
评论(0)
推荐(1)
摘要:
上一节我们讲了ovs-vswitchd,其中虚拟网桥初始化的时候,对调用内核模块来添加虚拟网卡。 我们从openvswitch内核模块的加载过程,来看这个过程。 在datapath/datapath.c中会调用module_init(dp_init);来初始化内核模块。 static int __init dp_init(void) { int err; ... 阅读全文
posted @ 2016-09-13 16:03
popsuper1982
阅读(3420)
评论(1)
推荐(1)

浙公网安备 33010602011771号