DPDK usage discussions
 help / color / mirror / Atom feed
* how to enable lib_pdump?
@ 2022-01-18 18:42 Jon Ross
  2022-01-19 16:37 ` Stephen Hemminger
  0 siblings, 1 reply; 2+ messages in thread
From: Jon Ross @ 2022-01-18 18:42 UTC (permalink / raw)
  To: users

dpdk-dumpcap works fine w/ dpdk-testpmd running, but I can't get it to
work while my app is running.

The docs say to do it the way testmpd does it. But testpmd does...
everything? It's hard to tell what's needed to get capture working.

The only reference to anything related to lib_pdump in testpmd is the
call to rte_pdump_init(). But adding this call seems to have no
effect.

Just to make sure "it's not me" I added the call to the
examples/skeleton app, and dpdk-dumpcap will not run w/ the modified
sample app. So it seems like it's more than just calling
rte_pdump_init(). Can anyone shed some light on what needs to happen
to get an app working w/ dpdk-dumpcap?

I'm using dpdk version v21.11, compile from source via github.

Thanks,
-Jon

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

* Re: how to enable lib_pdump?
  2022-01-18 18:42 how to enable lib_pdump? Jon Ross
@ 2022-01-19 16:37 ` Stephen Hemminger
  0 siblings, 0 replies; 2+ messages in thread
From: Stephen Hemminger @ 2022-01-19 16:37 UTC (permalink / raw)
  To: Jon Ross; +Cc: users

On Tue, 18 Jan 2022 10:42:16 -0800
Jon Ross <jonross@gmail.com> wrote:

> dpdk-dumpcap works fine w/ dpdk-testpmd running, but I can't get it to
> work while my app is running.
> 
> The docs say to do it the way testmpd does it. But testpmd does...
> everything? It's hard to tell what's needed to get capture working.
>
You need at a minimum:
  1. primary/secondary process support
  2. ethedev rx/tx callbacks enabled
  3. rte_pdump_init() called in primary
  4. enough shared memory (huge pages) for additional copies.

> The only reference to anything related to lib_pdump in testpmd is the
> call to rte_pdump_init(). But adding this call seems to have no
> effect.
> 
> Just to make sure "it's not me" I added the call to the
> examples/skeleton app, and dpdk-dumpcap will not run w/ the modified
> sample app. So it seems like it's more than just calling
> rte_pdump_init(). Can anyone shed some light on what needs to happen
> to get an app working w/ dpdk-dumpcap?
> 
> I'm using dpdk version v21.11, compile from source via github.
> 
> Thanks,
> -Jon


Most failures are because of doing something that breaks primary/secondary
process support. Like using --in-memory or having a device that won't support
primary/secondary.

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

end of thread, other threads:[~2022-01-19 16:37 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-01-18 18:42 how to enable lib_pdump? Jon Ross
2022-01-19 16:37 ` Stephen Hemminger

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