DPDK usage discussions
 help / color / mirror / Atom feed
From: Pavel Vazharov <freakpv@gmail.com>
To: users <users@dpdk.org>
Subject: Questions about the the pdump functionality
Date: Mon, 23 Oct 2023 18:32:48 +0300	[thread overview]
Message-ID: <CAK9EM1-OtXU7zb-p9eknNScKehySVzYCSHMz2jfVHj1mngsQAg@mail.gmail.com> (raw)

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

Hi there,

We've a DPDK based application from which we need to take packet dumps from
time to time when problems arise. We are planning to use librte_pdump
functions and the dpdk-dumppcap tool.
I've few questions in related to the pdump functionality which we want to
use:
- Is calling `rte_pdump_init` at the startup of the main application
causing some overhead for the packet processing during its run if there is
no actual packet capturing enabled by the dpdk-dumppcap tool? I suppose
there should be some check in place but is it something like a single `if`
condition on a boolean flag or something heavier?
- Is it possible then to call `rte_pdump_init` during the runtime of the
main application only when I know that I'm about to start the dpdk-dumppcap
tool? I mean, is it supported and safe to call `rte_pdump_init` and
`rte_pdump_uninit` while the main application is running and processing
packets or these functions are supposed to be called only at application
startup and application stop.

Thanks in advance,
Pavel.

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

             reply	other threads:[~2023-10-23 15:33 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-10-23 15:32 Pavel Vazharov [this message]
2023-10-23 17:19 ` Stephen Hemminger
2023-10-24  5:37   ` Pavel Vazharov

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=CAK9EM1-OtXU7zb-p9eknNScKehySVzYCSHMz2jfVHj1mngsQAg@mail.gmail.com \
    --to=freakpv@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).