Monica, you may want to trace through the code using gdb.  GDB backtrace
tells you where you came from and you can step forward through execution.
You can alway attach gdb to a running process.  If using sandbox, you can
start vswitchd under gdb by using the '-g' option, as:

$ make sandbox SANDBOXFLAGS=-g


On Fri, Mar 4, 2016 at 11:27 AM, André Mantas <andremant...@gmail.com>
wrote:

> I'm no ovs expert but handle_openflow(struct ofconn *ofconn, const struct
> ofpbuf *ofp_msg) looks like a good place to start.
> You can always search for function names to see where they're invoked.
>

> Rajasekaran, Monica <monica.rajaseka...@us.fujitsu.com> escreveu no dia
> sexta, 4/03/2016 às 19:08:
>
>> I am looking at the code but I don’t know what gets invoked first.
>> Functions from header files and vswitchd and ovsdb modules have been called
>> in between. Should I just add print statements to all the functions in
>> ofproto.c and see how it goes when a packet comes in ? Or is there an
>> alternative ?
>>
>>
>>
>> Thanks,
>>
>> Monica
>>
>>
>>
>> *From:* André Mantas [mailto:andremant...@gmail.com]
>> *Sent:* Friday, March 04, 2016 11:33 AM
>> *To:* Rajasekaran, Monica; discuss@openvswitch.org
>> *Subject:* Re: [ovs-discuss] Open vSwitch Source code walkthrough
>>
>>
>>
>> Have you tried ofproto/ofproto.c?
>>
>>
>>
>> Rajasekaran, Monica <monica.rajaseka...@us.fujitsu.com> escreveu no dia
>> sexta, 4/03/2016 às 17:23:
>>
>> Well, I can see how things work when we give commands using ofctl, vsctl
>> etc. But, I still don’t get which file is invoked first when * a packet
>> arrives to the switch.*
>>
>>
>>
>> Any help on this ?
>>
>>
>>
>> *From:* Rajasekaran, Monica
>> *Sent:* Wednesday, March 02, 2016 2:32 PM
>> *To:* 'discuss@openvswitch.org'
>> *Subject:* Open vSwitch Source code walkthrough
>>
>>
>>
>> Hello,
>>
>>
>>
>> I am trying to understand the source code of Open vSwitch for one of my
>> projects. But, not sure from where I should start and where to end. Is it
>> possible to give me some sort of guidance ?
>>
>>
>>
>> *Thanks and Regards,*
>>
>> *Monica Rajasekaran*
>>
>> _______________________________________________
>> discuss mailing list
>> discuss@openvswitch.org
>> http://openvswitch.org/mailman/listinfo/discuss
>>
>>
> _______________________________________________
> 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