On Wed, Mar 09, 2016 at 11:06:57PM +0000, Rajasekaran, Monica wrote:
> Hi all,
> 
> Once call in the data path hits queue_userspace_packet(), how is the packet 
> received by user space ?
> 
> I understand that recv_upcalls-->dpif_recv() and handle_upcalls() will take 
> care of upcall processing.
> 
> But how are queue_userspace_packet() in the data path and recv_upcalls() in 
> the user space connected? I can't seem to find the link.
> 
> Thanks,
> Monica
> 

They are connected using a netlink socket. Take a look at
queue_userspace_packet, it calls genlmsg_unicast. At userspace,
lib/dpif-netlink.c:dpif_netlink_recv__ calls nl_sock_recv.

Regards.
Cascardo.

> _______________________________________________
> discuss mailing list
> discuss@openvswitch.org
> http://openvswitch.org/mailman/listinfo/discuss

_______________________________________________
discuss mailing list
discuss@openvswitch.org
http://openvswitch.org/mailman/listinfo/discuss

Reply via email to