On Thu, Oct 31, 2019 at 2:15 PM Ilya Maximets <[email protected]> wrote: > > DPDK commit 660098d61f57 ("pdump: use generic multi-process channel") > switched pdump to use generic DPDK IPC instead of sockets. > Old API was deprecated and removed. Updating OVS code accordingly. > > Signed-off-by: Ilya Maximets <[email protected]> > --- > > Version 2: > * Removed unneeded deinitialization on error. > * Docs updated. > > Documentation/topics/dpdk/pdump.rst | 9 ++------- > lib/dpdk.c | 11 +---------- > 2 files changed, 3 insertions(+), 17 deletions(-) > > diff --git a/Documentation/topics/dpdk/pdump.rst > b/Documentation/topics/dpdk/pdump.rst > index 7bd1d3e9f..26acff45e 100644 > --- a/Documentation/topics/dpdk/pdump.rst > +++ b/Documentation/topics/dpdk/pdump.rst > @@ -41,8 +41,7 @@ To use pdump, simply launch OVS as usual, then navigate to > the ``app/pdump`` > directory in DPDK, ``make`` the application and run like so:: > > $ sudo ./build/app/dpdk-pdump -- \ > - --pdump port=0,queue=0,rx-dev=/tmp/pkts.pcap \ > - --server-socket-path=/usr/local/var/run/openvswitch > + --pdump port=0,queue=0,rx-dev=/tmp/pkts.pcap
You still need to instruct the secondary process where to find the dpdk configuration and mp_socket. In my test, ovs running as openvswitch user, I had to: # sudo -u openvswitch XDG_RUNTIME_DIR=/var/run/openvswitch ./dpdk/v18.11.2/app/dpdk-pdump -- --pdump 'port=0,queue=*,rx-dev=/tmp/pkts.pcap,tx-dev=/tmp/pkts.pcap' EAL: Detected 28 lcore(s) EAL: Detected 1 NUMA nodes EAL: Multi-process socket /var/run/openvswitch/dpdk/rte/mp_socket_85457_497b63ab1c2d10 EAL: Probing VFIO support... EAL: VFIO support initialized dpdk won't look at XDG_RUNTIME_DIR when running as uid 0, which I find a bit odd and something to change. I did not find another way to set the runtime directory. Cc: Anatoly (off this week). -- David Marchand _______________________________________________ dev mailing list [email protected] https://mail.openvswitch.org/mailman/listinfo/ovs-dev
