[ovs-discuss] handler threads

Joe Stringer joe at ovn.org
Tue Aug 16 17:08:59 UTC 2016


Hi Sugesh,

On 11 August 2016 at 08:31, Chandran, Sugesh <sugesh.chandran at intel.com> wrote:
> Hi,
> I am looking at the data-path flow insertion in OVS. Specifically the upcall handling in handler threads. According to my understanding, for every new packet-in, the handler threads process the upcall and insert the corresponding rule in dpif.
> And its done in "udpif_upcall_handler" --> "recv_upcalls"(ofproto-dpif-upcall.c).
>
> My questions are
> 1) Is it the place where the upcall handling really happening?

Yes, for the kernel datapath. For userspace datapath, you'll be more
interested in upcall_cb(). The two meet at upcall_receive().

> 2) When I try to debug the handler with gdb, "recv_upcalls" is not called for the new packet in/flow insert (Please note the number of handler and revalidator threads are set to 1)

This is a statement.

> 3) How can I adjust the timeout for revalidator and handler to debug the threads with gdb. Sometimes the threads are crashing because of it.

Which timeout do you mean? If threads are crashing, then gdb should
help you to find out why.



More information about the discuss mailing list