DPDK usage discussions
 help / color / mirror / Atom feed
* How to add packet capture framework to a custom simple dpdk app
@ 2023-07-09  4:36 Fuji Nafiul
  2023-07-10 16:49 ` Stephen Hemminger
  2023-07-11  1:12 ` jiangheng (G)
  0 siblings, 2 replies; 3+ messages in thread
From: Fuji Nafiul @ 2023-07-09  4:36 UTC (permalink / raw)
  To: users

[-- Attachment #1: Type: text/plain, Size: 793 bytes --]

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..!

[-- Attachment #2: Type: text/html, Size: 860 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: How to add packet capture framework to a custom simple dpdk app
  2023-07-09  4:36 How to add packet capture framework to a custom simple dpdk app Fuji Nafiul
@ 2023-07-10 16:49 ` Stephen Hemminger
  2023-07-11  1:12 ` jiangheng (G)
  1 sibling, 0 replies; 3+ messages in thread
From: Stephen Hemminger @ 2023-07-10 16:49 UTC (permalink / raw)
  To: Fuji Nafiul; +Cc: users

On Sun, 9 Jul 2023 10:36:53 +0600
Fuji Nafiul <nafiul.fuji@gmail.com> 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.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* How to add packet capture framework to a custom simple dpdk app
  2023-07-09  4:36 How to add packet capture framework to a custom simple dpdk app Fuji Nafiul
  2023-07-10 16:49 ` Stephen Hemminger
@ 2023-07-11  1:12 ` jiangheng (G)
  1 sibling, 0 replies; 3+ messages in thread
From: jiangheng (G) @ 2023-07-11  1:12 UTC (permalink / raw)
  To: Fuji Nafiul; +Cc: users

[-- Attachment #1: Type: text/plain, Size: 1108 bytes --]

Hi,
My advice is to recompile dpdk-dumpcap and link dpdk's dynamic libraries to match your app

发件人: Fuji Nafiul [mailto:nafiul.fuji@gmail.com]
发送时间: 2023年7月9日 12:37
收件人: users@dpdk.org
主题: How to add packet capture framework to a custom simple dpdk app

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<http://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..!

[-- Attachment #2: Type: text/html, Size: 4373 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2023-07-11  1:12 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-07-09  4:36 How to add packet capture framework to a custom simple dpdk app Fuji Nafiul
2023-07-10 16:49 ` Stephen Hemminger
2023-07-11  1:12 ` jiangheng (G)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).