Hi, My name is Hu, and I want to use the controller to send a message to ovs user space, the message is handled by the function handle_single_part_openflow(struct ofconn *ofconn, const struct ofp_header *oh, enum ofptype type). and then use generic netlink to send the message to ovs kernel space. How can I get the instance of this datapath? I learned from the source code that a datapath instance can be got by the function get_dp_rcu(sock_net(skb->sk), ovs_header->dp_ifindex) but I don't know how to get dp_ifindex, since I could just get ofconn * in function handle_singel_part_openflow.
I would really appreciate it if someone could give me some useful advice.
_______________________________________________ discuss mailing list [email protected] https://mail.openvswitch.org/mailman/listinfo/ovs-discuss
