Re: [ovs-discuss] Debug OVS

2016-05-09 Thread Borasy Kong
Hi Monica, What about flow caching? Do you know where in the codes to look for flow caching operation? I've seen some functions in the flow_table.c but do you know where the starting point is? Thanks, Borasy On Tue, May 10, 2016 at 3:02 AM, Rajasekaran, Monica < monica.rajaseka...@us.fujitsu.com

Re: [ovs-discuss] Debug OVS

2016-05-09 Thread Sadia Bashir
I did it by debugging ovs-vsctl executable/binary using gdb via setting up different breakpoints in /utilities/ovs-vsctl.c and testing with different commands starting with ovs-vsctl show, ovs-vsctl add-port, ovs-vsctl add-br etc. you can follow instructions given here

Re: [ovs-discuss] Debug OVS

2016-05-09 Thread Rajasekaran, Monica
I had the same question a couple of months back. Eventually I dug it up manually. As a starting point, I can tell you that to trace commands like “ovs-vsctl add-port”, start looking at ovs/utilities/ovs-vsctl.c. You will have a function called cmd_add_port(). From: Dio Vinra [mailto:sagenhaft

Re: [ovs-discuss] Debug OVS

2016-05-09 Thread Dio Vinra
Actually I wanna trace some commands (e.g. ovs-vsctl add-port tap0 tag=100) in ovs to find out the code in OVS source code which executes the command, so do you know what should I do? On Monday, 9 May 2016, Rajasekaran, Monica < monica.rajaseka...@us.fujitsu.com> wrote: > Hi, > > > > Please follo

Re: [ovs-discuss] Debug OVS

2016-05-09 Thread Rajasekaran, Monica
Hi, Please follow this link to enable debugging: http://ask.xmodulo.com/enable-logging-open-vswitch.html Once you do that, just start up OVS and follow through. -Monica From: discuss [mailto:discuss-boun...@openvswitch.org] On Behalf Of Dio Vinra Sent: Monday, May 09, 2016 10:26 AM To: discuss