码迷,mamicode.com
首页 > 其他好文 > 详细

ovs 代码笔记

时间:2018-05-10 19:36:34      阅读:490      评论:0      收藏:0      [点我收藏+]

标签:encode   queue   str   prot   ESS   match   tde   process   ast   

                                      ofconn_run
|
handle_openflow
|
handle_packet_out
/ \
(2) / \(1)
/ \
ofproto_packet_out_finish ofproto_packet_out_start
| |
packet_execute packet_xlate
| |
dpif_execute xlate_actions
| |
dpif_operate rule_dpif_lookup_from_table
| |
dpif_netlink_operate rule_dpif_lookup_in_table
| / \
dpif_netlink_encode_execute (2) / \(1)
| / \
nl_msg_put_genlmsghdr do_xlate_actions classifier_lookup
| |
xlate_output_action find_match_wc
|
compose_output_action
|
nl_msg_put_odp_port





Userspace
construct
|
|
open_dpif_backer(*)
/ \
(dpif-netdev) / \(dpif-net-link)
/ \
udpif_create udpif_set_threads
| |
dpif_register_upcall_cb udpif_start_threads
| |
dpif_netdev_register_upcall_cb ovs_thread_create
|
udpif_upcall_handler
|
recv_upcalls
/ \
(2) / \ (1)
/ \
upcall_receive dpif_recv
| |
flow_extract dpif_netlink_recv
|
process_upcall
|
upcall_xlate
|
xlate_actions
------------------------------------------------------------------------------------------------------
Kernel
netdev_frame_hook
|
netdev_port_receive
|
ovs_vport_receive
|
ovs_dp_process_packet
/ \
(Normal match) / \ (Non-normal Match)
/ \
ovs_execute_actions ovs_dp_upcall
|
queue_userspace_packet
|
genlmsg_unicast

ovs 代码笔记

标签:encode   queue   str   prot   ESS   match   tde   process   ast   

原文地址:https://www.cnblogs.com/gaozhengwei/p/9021124.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!