[ovs-dev] What time function is available in datapath module?

2015-11-09 Thread wenhao...@gmail.com
Hi all, I used to use struct 'timeval' and function 'gettimeofday' from 'sys/time.h' to mesure time with an accuracy of μsecs. Since the datapath module runs in kernel mode, i wonder whether the function can still do the work, or any other functions can be used and offer such accuracy in this sc

[ovs-dev] problems debugging datapath module

2015-11-03 Thread wenhao...@gmail.com
hi all, I tried to put a "printk" line into the biginning of function "ovs_dp_process_packet", since i assumed that every packet appeared in the links to the switch will trigger that function. but when i updated ovs and start mininet with the modified ovs, i still cannot see the output of "pr

[ovs-dev] How to use vlog in 'datapath' module?

2015-11-03 Thread wenhao...@gmail.com
hi all, I'm trying to add something into datapath module and need to use vlog for debugging. I tried to put #include "vlog.h" at the biginning of datapath.c as well as VLOG_DEFINE_THIS_MODULE(datapath); I still got nothing in /var/log/openvswitch/ovs-vswitchd.log from the function VLOG_INFO("