1.Datapath module

      1.初始化vPort,Flow cache,netlink operation (dp_datapath_genl_family,dp_vport_genl_family,dp_flow_genl_family,dp_packet_genl_family) , dp_init(Datapath.c)  -> [ovs_internal_dev_rtnl_link_register,ovs_flow_init,ovs_vport_init,ovs_netdev_init, dp_register_genl]

     2.datapath create vxlan port pipeline: ovs_vport_cmd_new(Datapath.c  upon netlink)  -> new_vport(Datapath.c)  -> ovs_vport_add(vport.c) -> vxlan_create(vport-vxlan.c) -> ovs_netdev_link(Vport-netdev.c) -> netdev_rx_handler_register -> netdev_frame_hook(Vport-netdev.c)

 

2.Add_port

    bridge_reconfigure(Bridge.c) -> bridge_add_ports(Bridge.c) -> bridge_add_ports__(Bridge.c) -> iface_create(Bridge.c) -> iface_do_create(Bridge.c) -> ofproto_port_add(Ofproto.c) -> port_add(Ofproto-dpif.c) -> dpif_port_add (Dpif.c) -> dpif_netlink_port_add(Dpif-netlink.c)

 

3.Add_flow
    ofproto_run(Ofproto.c) -> handle_openflow(Ofproto.c) -> handle_flow_mod(Ofproto.c) -> handle_flow_mod__(Ofproto.c ofproto_flow_mod_start) -> ofproto_flow_mod_finish (Ofproto.c) -> add_flow_finish(Ofproto.c) -> run_rule_executes(Ofproto.c) -> rule_execute(Ofproto-dpif.c) -> rule_dpif_execute (Ofproto-dpif.c) -> ofproto_dpif_execute_actions(Ofproto-dpif.c) -> ofproto_dpif_execute_actions__(Ofproto-dpif.c) [xlate_actions(Ofproto-dpif-xlate.c) -> do_xlate_actions] -> dpif_execute(Dpif.c) -> dpif_operate(Dpif.c) -> dpif_netlink_operate(Dpif-netlink.c)

 

4.OpenVSwitch(配置IP可进三层路由):

     internal_dev_create(vport-internal_dev.c) -> internal_dev_receive(vport-internal_dev.c) ->netif_rx(dev.c)

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-11-15
  • 2022-12-23
  • 2021-04-23
  • 2021-08-11
  • 2021-04-30
猜你喜欢
  • 2022-12-23
  • 2021-06-16
  • 2022-01-09
  • 2022-12-23
  • 2022-12-23
  • 2021-05-16
相关资源
相似解决方案