[ovs-dev] How to debug openvswitch

Jesse Gross jesse at nicira.com
Thu Sep 17 16:34:18 UTC 2015


On Thursday, September 17, 2015, liu_chang at buaa.edu.cn <
liu_chang at buaa.edu.cn> wrote:

> Thanks a lot for your reply!
> But I have tried this command many times, what I saw was something like
> "br0 is left/enter promiscuous mode" which occures when I use ovs-vsctl
> add-br or ovs-vsctl add-port commands.
> If there any tips of the methods or functions I can use to see the kernel
> output information? I've tried printk() and pr_info() in datapath.c, flow.c
> and vport.c, but they didn't work.
> What I want is let ovs output some information to the console (or log file
> is OK) when the datapath recieves and processes packets.
>

Please don't drop the mailing list.

printk should output to dmesg. Without seeing the code, it's impossible to
know why it is not showing up. Are you sure that you put the printk in a
location on the packet processing path?



More information about the dev mailing list