Thanks Ben! I still have several question. Could you give further suggestion? <1> All incoming network packet will be handler by ovs_dp_process_received_packet(), right? In ovs_dp_process_received_packet(), for the missing packets, ovs_dp_upcall() will be called to send the OVS_PACKET_CMD_MISS cmd, and further, the queue_userspace_packet() will be called. But where to issue other cmds like OVS_PACKET_CMD_ACTION ? <2> In queue_userspace_packet(), a nl msg is generated, where would the msg be sent to? Or who is the handler? Seems it is a dp_packet_genl_family msg, but there is only a handler for the OVS_PACKET_EXECUTE cmd. <3> I grep the entire codes, but who is the handler to cmds like OVS_PACKET_CMD_MISS and OVS_PACKET_CMD_ACTION. The ovs-vswitchd?
Could anyone give some hints? Thanks very much! On Sat, Aug 18, 2012 at 12:03 AM, Ben Pfaff <b...@nicira.com> wrote: > On Fri, Aug 17, 2012 at 04:50:57PM +0800, Baohua Yang wrote: > > In the openvswitch code file include\linux\openvswitch.h, there's 4 > > defined cmds, as > > enum ovs_packet_cmd{ > > OVS_PACKET_CMD_UNSPEC, > > OVS_PACKET_CMD_MISS, > > OVS_PACKET_CMD_ACTION, > > OVS_PACKET_CMD_EXECUTE > > } > > > > However, in datapath\datapath.c, there is only the handler for > > the OVS_PACKET_CMD_EXECUTE command. > > The other commands are sent from the kernel to userspace. > -- Best wishes! Baohua
_______________________________________________ dev mailing list dev@openvswitch.org http://openvswitch.org/mailman/listinfo/dev