Re: [ovs-discuss] Time a packet spends in the switch

2016-10-24 Thread Danish Sattar
Thanks Stringer. The problem was built-in module loaded every time instead of the newly installed. Now I've another issue. As i'm trying to get the CPU time, but it seems time.h doesn't work. I tried clock(), clock_gettime() but both of them don't work is there any other way to find the cpu time?

Re: [ovs-discuss] Time a packet spends in the switch

2016-10-20 Thread Joe Stringer
Module load is governed by depmod, see depmod.d (5) man pages. To investigate: # find /lib/modules -name openvswitch.ko # modinfo openvswitch You'll see what OVS modules are available and which one is being selected by default at the moment. INSTALL.rst (INSTALL.md on released versions of OVS) h

Re: [ovs-discuss] Time a packet spends in the switch

2016-10-20 Thread satish kondapalli
Hi Danish, Instead of "make module_install", try to load with insmod command. One more thing, i think by default kernel comes with openvswith.ko in /lib/moduels/. Check where your module is copied when you did make modules_install. Sateesh On Thu, Oct 20, 2016 at 9:55 AM, Danish Sattar w

Re: [ovs-discuss] Time a packet spends in the switch

2016-10-20 Thread Danish Sattar
I'm just trying to print the following statement to the kernel log. File: openvswitch\datapath\datapath.c void ovs_dp_process_packet() *pr_debug("pr_info inside ovs_dp_process_packet");* *printk(KERN_DEBUG "printk inside ovs_dp_process_packet");* *My install script* * ./boot.sh* * ./conf

Re: [ovs-discuss] Time a packet spends in the switch

2016-10-19 Thread Danish Sattar
i'm using vmware for the testing. So i have a state saved before compiling the source code for virtual machine. Each after doing all the modification, i compile, install and load the module. send some traffic between couple of hosts then see all the log like kernel, dmesg, syslog etc, if nothing wo

Re: [ovs-discuss] Time a packet spends in the switch

2016-10-19 Thread satish kondapalli
Hi Danish, Please post four changes. I guess all packets receives via netdev_frame_hook() function in openvswith.ko module. Sateesh On Wed, Oct 19, 2016 at 10:17 AM, Joe Stringer wrote: > Are you sure that you loaded your newly compiled kernel module? > (insmod build_dir/datapath/linux/openv

Re: [ovs-discuss] Time a packet spends in the switch

2016-10-19 Thread Joe Stringer
Are you sure that you loaded your newly compiled kernel module? (insmod build_dir/datapath/linux/openvswitch.ko) On 19 October 2016 at 09:40, Danish Sattar wrote: > I've tried in datapath.c, bridge.c, learning-switch.c and flow-table.c but > nothing works. > For kernel module i'm using printk() t

Re: [ovs-discuss] Time a packet spends in the switch

2016-10-19 Thread Danish Sattar
I've tried in datapath.c, bridge.c, learning-switch.c and flow-table.c but nothing works. For kernel module i'm using printk() to print the messages and for userspace simply writing to a file but for some reason nothing happens in either modules. Any other ideas that i can try to get the openvswit

Re: [ovs-discuss] Time a packet spends in the switch

2016-10-13 Thread Ben Pfaff
On Thu, Oct 13, 2016 at 12:27:38PM -0400, Danish Sattar wrote: > I'm trying to find out the time a packet spends in the switch only. Time > difference between packet in and out. > > I thought analyzing the time in learning-switch.c would be give me some > info but that didn't work. Most packets d

[ovs-discuss] Time a packet spends in the switch

2016-10-13 Thread Danish Sattar
Hi, I'm trying to find out the time a packet spends in the switch only. Time difference between packet in and out. I thought analyzing the time in learning-switch.c would be give me some info but that didn't work. Please help me find the time a packet spends in the switch. Thanks *Best Regards*