DPDK usage discussions
 help / color / mirror / Atom feed
From: "jiangheng (G)" <jiangheng14@huawei.com>
To: Fuji Nafiul <nafiul.fuji@gmail.com>
Cc: "users@dpdk.org" <users@dpdk.org>
Subject: How to add packet capture framework to a custom simple dpdk app
Date: Tue, 11 Jul 2023 01:12:45 +0000	[thread overview]
Message-ID: <ac5b094c35ce496a992aceeb56e8f935@huawei.com> (raw)
In-Reply-To: <CA+3hWexDqPDqTiCKauTNON4nveZz1YT_turicp_nATeTvr=omg@mail.gmail.com>

[-- 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 --]

      parent reply	other threads:[~2023-07-11  1:12 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-07-09  4:36 Fuji Nafiul
2023-07-10 16:49 ` Stephen Hemminger
2023-07-11  1:12 ` jiangheng (G) [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=ac5b094c35ce496a992aceeb56e8f935@huawei.com \
    --to=jiangheng14@huawei.com \
    --cc=nafiul.fuji@gmail.com \
    --cc=users@dpdk.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).