On Sun, 9 Jul 2023 10:36:53 +0600 Fuji Nafiul <[email protected]> wrote:
> Hi, > I am using dpdk_v22.11.1 on ubuntu_v22.04.2. I have a simple app derived > from skeleton and icmpecho which can reply to proper arp requests and also > can reply to appropriate pings. Now whats the proper steps to add a packet > capture framework like dpdk-dumpcap here as the doc didnt clearly said it, > rather pointed out to check the testpmd.c > > I simply added pdump header files, then initialized rte_pdump_init(), then > I tried to run dpdk-dumpcap separately that was successful after running > testpmd app but with my custom app it failed.to run Then I > noticed configure_rxtx_dump_callbacks() in port initialization and tried to > add it properly in my app but failed. I am just not sure whether I am on > the right way or not. so please help if you have already passed this. > thanks in advance..! The rte_pdump_init() handles registering the service to enable packet capture. It causes the application (primary process) to listen for when secondary wants capture. The capture application (dpdk-dumpcap) then makes request to the primary process. That request causes the dump callbacks to happen. The application should not change. One non obvious part is that the application has to be up and running before the capture application starts.
