[ovs-discuss] how to get packet information in ovs-dpdk?

Sam batmanustc at gmail.com
Wed Jul 12 08:21:04 UTC 2017


hi all,

I'm running ovs-dpdk(ovs-2.4.9), I found the counter of bond port of br_t
is increasing, but I want to know what's these packets, how could I do this?

first, I use `ovs-ofctl snoop br_t`, but it quit quickly as below:

> [root at yf-mos-test-net07 ~]# /usr/local/bin/ovs-ofctl snoop
> /usr/local/var/run/openvswitch/br_t.mgmt
> [root at yf-mos-test-net07 ~]# /usr/local/bin/ovs-ofctl snoop
> /usr/local/var/run/openvswitch/br_t.mgmt
> ovs-ofctl: /usr/local/var/run/openvswitch/ovs-ofctl.pid: already running
> as pid 22082, aborting


Then I debug ovs-vswitchd use `gdb -p 213214` and set break as below:

> Breakpoint 3, netdev_rxq_recv (rx=0x7f1a5a6ff2c0, buffers=0x7f25e17f9880,
> cnt=0x7f25e17f987c) at lib/netdev.c:695
> 695    retval = rx->netdev->netdev_class->rxq_recv(rx, buffers, cnt);
> (gdb) finish
> Run till exit from #0  netdev_rxq_recv (rx=0x7f1a5a6ff2c0,
> buffers=0x7f25e17f9880, cnt=0x7f25e17f987c)
>     at lib/netdev.c:695
> 0x000000000055eeec in dp_netdev_process_rxq_port (pmd=0x7f25e80d7010,
> port=0x1059fd0, rxq=0x7f1a5a6ff2c0)
>     at lib/dpif-netdev.c:2590
> 2590    error = netdev_rxq_recv(rxq, packets, &cnt);
> Value returned is $5 = 11
> (gdb) p packet
> No symbol "packet" in current context.
> (gdb) p p^CQuit
> (gdb) p cnt
> $6 = 0
> (gdb) d
> Delete all breakpoints? (y or n) y
> (gdb) b 2593 if cnt!=0
> Breakpoint 4 at 0x55ef27: file lib/dpif-netdev.c, line 2593.
> (gdb) c

but cnt is still 0, which means no packets received.

At last, I use `ovs-appctl vlog/set dpif_netdev dbg`, but the log show
nothing.

How could I do this? thank you~
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.openvswitch.org/pipermail/ovs-discuss/attachments/20170712/f08a3271/attachment.html>


More information about the discuss mailing list