[ovs-discuss] Deploying a multi-tenant datacenter testbed using GENI

2015-05-06 Thread david jhon
Hello everyone, I apologize if it is not a relevant question but I need an honest advice from you. I want to deploy a testbed on GENI for my thesis research. The testbed I want to deploy is a multi-tenant datacenter with sixteen physical hosts, eight edge switches, eight aggregate switches and fo

[ovs-discuss] assertion !idl->change_seqno failed in ovsdb_idl_get_mode()

2015-04-24 Thread david jhon
Hi, I am trying to insert records in ovsdb customized table from within openvswitch but I am facing following issues on calling ovsdb_idl_add_column function : ovs|01659|util(handler21)|EMER|../lib/ovsdb-idl.c:451: assertion !idl->change_seqno failed in ovsdb_idl_get_mode(). I am using same idl

Re: [ovs-discuss] Split a char *string based on a specified delimiter in openvswitch (strtok() is blacklisted)

2015-04-22 Thread david jhon
Please ignore this email, issue has been resolved. Thank you! On Wed, Apr 22, 2015 at 4:24 PM, david jhon wrote: > hi everyone, > > I tried to use strtok() method to split up a string based on a delimiter > such as ',' which worked pretty good for me, but after adding

[ovs-discuss] Split a char *string based on a specified delimiter in openvswitch (strtok() is blacklisted)

2015-04-22 Thread david jhon
hi everyone, I tried to use strtok() method to split up a string based on a delimiter such as ',' which worked pretty good for me, but after adding my piece of code in openvswitch util.h/c it failed to compile because this method is blacklisted for thread safety issues. I'll be really grateful if

Re: [ovs-discuss] Using popen() or system() calls from inside openvswitch source code

2015-04-21 Thread david jhon
is it possible to achieve this with openvswitch userspace code. On Wed, Apr 15, 2015 at 11:23 PM, Ben Pfaff wrote: > It's probably best to just use the existing code in ovs-vswitchd to > access the database. > > On Wed, Apr 15, 2015 at 10:11:39AM +0500, david jhon wrote: >

Re: [ovs-discuss] Using popen() or system() calls from inside openvswitch source code

2015-04-14 Thread david jhon
AM, Ben Pfaff wrote: > On Mon, Apr 13, 2015 at 12:01:25PM +0500, david jhon wrote: > > I want to run a command from inside openvswitch code from > > ofproto/ofproto-dpif-xlate.c. with popen(), openvswitch compiles and runs > > successfully but it does not run command

[ovs-discuss] Using popen() or system() calls from inside openvswitch source code

2015-04-13 Thread david jhon
Hi everyone, I want to run a command from inside openvswitch code from ofproto/ofproto-dpif-xlate.c. with popen(), openvswitch compiles and runs successfully but it does not run command. With system(), openvswitch fails to compile with following error: blacklisted due to thread safety issues. I

[ovs-discuss] Sending Kernel-space to userspace upcalls

2015-03-31 Thread david jhon
Hi everyone, I want to send kernel->userspace messages just as OVS_PACKET_CMD_MISS upcall is sent from datapath to userspace to notify userspace about a packet MISS. I am just not understanding how to specify PID for this upcall. In case of OVS_PACKET_CMD_MISS, this PID is specified by ovs_vport_

Re: [ovs-discuss] Identify outgoing packets belonging to VXLAN or GRE tunnels in kernel

2015-03-21 Thread david jhon
I right in understanding the sequence of method calls for processing of incoming and outgoing packets on ovs. I'll be really grateful for your guideline and help. Thanks a lot! On Sat, Mar 21, 2015 at 12:46 PM, david jhon wrote: > Hi All, > > I am working on OVS datapath, adding my

[ovs-discuss] Identify outgoing packets belonging to VXLAN or GRE tunnels in kernel

2015-03-21 Thread david jhon
Hi All, I am working on OVS datapath, adding my code based on flow stats. I want to identify outgoing packets belonging to VXLAN or GRE tunnels. I can see gre_send() and __send() methods in datapath/vport-gre.c but I am not getting how does ovs_execute_actions() method identify tunnel ports. Any h

[ovs-discuss] building openvswitch with user-mode-linux

2015-03-05 Thread david jhon
Hi, I am using this article to understand debugging a module with user-mode-linux. I am using ovs-dev.py to setup openvswitch on my machine but it does not seem to work with ARCH=um as it displays the help message when

Re: [ovs-discuss] update checksum for vswitch.ovsschema file after adding a new table

2015-03-03 Thread david jhon
oh yep, got it, thanks a lot Ben! On Mon, Mar 2, 2015 at 11:29 PM, Ben Pfaff wrote: > On Mon, Mar 02, 2015 at 04:08:52PM +0500, david jhon wrote: > > I am really sorry for this absurd question but I am not getting exactly > why > > my code for setting a column in data

Re: [ovs-discuss] update checksum for vswitch.ovsschema file after adding a new table

2015-03-02 Thread david jhon
db-idl.c:1905: assertion row->old == NULL || row->table->modes[column_idx] & OVSDB_IDL_MONITOR failed in ovsdb_idl_txn_write__() Thanking you in anticipation for letting me know any possibility. Regards, On Sun, Mar 1, 2015 at 11:11 PM, david jhon wrote: > got it fixed, thanks a lot Be

Re: [ovs-discuss] update checksum for vswitch.ovsschema file after adding a new table

2015-03-01 Thread david jhon
got it fixed, thanks a lot Ben! On Sun, Mar 1, 2015 at 9:27 PM, Ben Pfaff wrote: > On Sun, Mar 01, 2015 at 05:59:24PM +0500, david jhon wrote: > > Hello, > > > > I have added a new test table in vswitch.schema file, building source > with > > new schema file succ

[ovs-discuss] update checksum for vswitch.ovsschema file after adding a new table

2015-03-01 Thread david jhon
Hello, I have added a new test table in vswitch.schema file, building source with new schema file successfully generates lib/vswitch-idl.h/c files which contains the source for newly added table in vswitch.ovsschema, but after building a few files it quits with the following error: ../vswitchd/vs

Re: [ovs-discuss] getting packets on ovs kernel module for testing/debugging

2015-02-25 Thread david jhon
Thanks Ben, I want to test how ovs kernel module processes packets and update a corresponding flow entry in flow_table. Any suggestions please? On Thu, Feb 26, 2015 at 11:30 AM, Ben Pfaff wrote: > On Wed, Feb 25, 2015 at 04:09:59PM +0500, david jhon wrote: > > In order to debug o

[ovs-discuss] getting packets on ovs kernel module for testing/debugging

2015-02-25 Thread david jhon
hi, In order to debug ovs kernel module in gdb, I have set a breakpoint at ovs_dp_process_packet() method in datapath/datapath.c, generating traffic with ping command from one mininet host to other, but not able to debug it at all because on running n in gdb, I get "The program is not being run."

Re: [ovs-discuss] debugging openvswitch command-line clients

2015-02-11 Thread david jhon
response... On Tue, Feb 3, 2015 at 9:51 PM, Ben Pfaff wrote: > On Tue, Feb 03, 2015 at 12:12:09AM +0500, david jhon wrote: > > Hi Ben, > > > > Thanks for your response. > > > > It means that after setting up a break point at cmd_show() method and >

Re: [ovs-discuss] debugging openvswitch command-line clients

2015-02-02 Thread david jhon
Regards, On Mon, Feb 2, 2015 at 2:54 AM, Ben Pfaff wrote: > On Sat, Jan 31, 2015 at 05:28:23PM +0500, david jhon wrote: > > Now I want to debug openvswitch command-line clients such as vsctl, > ofctl, > > appctl etc. I have started with debugging command "ovs-vsctl show" af

[ovs-discuss] debugging openvswitch command-line clients

2015-01-31 Thread david jhon
Hello everyone, I did git clone openvswitch-2.3.0 on ubuntu 14.04 server and build it fom source following instruction given in INSTALL file. Now I want to debug openvswitch command-line clients such as vsctl, ofctl, appctl etc. I have started with debugging command "ovs-vsctl show" after I set a