[ovs-dev] ovs kernel how to receive message form user space

Ben Pfaff blp at nicira.com
Tue Dec 11 04:55:54 UTC 2012


On Tue, Dec 11, 2012 at 10:58:46AM +0800, xushan liu wrote:
>        I am researching OVS recently. I want ask something about OVS code,
> when the first packet of a flow arrive in OVS , the packet will miss in
> flow table, then it will be sent to user space through netlink , when the
> user space finish processing the packet , I think there will generate a
> action of the flow in generally, then I think the action of the flow will
> be sent to kernel , the kernel will add a flow in flow table , and process
> the packet, but I can't find a receive function for kernel to receive
> message from user space , I want to know whether there is a receive
> function in kernel or I have a wrong understand about the OVS code.

I think you're looking for OVS_PACKET_CMD_EXECUTE.

>        Another question , I can't understand the relationship of
> facet,subfacet and rule, what is a facet, why it may include one or more
> subfacet?  What is the relationship between datapath action and them?

I've tried really hard to make this clear in the code and the comments.
Can you ask some questions that I can answer by improving the comments?



More information about the dev mailing list