DPDK usage discussions
 help / color / mirror / Atom feed
* dpdk-pdump cannot init tailq as secondary process
@ 2023-04-20 12:18 postmaster
  2023-04-24 16:17 ` Stephen Hemminger
  0 siblings, 1 reply; 3+ messages in thread
From: postmaster @ 2023-04-20 12:18 UTC (permalink / raw)
  To: users

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

Hello

I follow what it is explained on that page

https://doc.dpdk.org/guides/tools/pdump.html

to call rte_pdump_init in my application (and checking the result, if not ok exit with failure), but once I ran dpdk-pdump I got


dpdk-pdump  -l 9 -- --pdump 'port=0,queue=*,rx-dev=/tmp/rx.pcap'
EAL: Detected CPU lcores: 24
EAL: Detected NUMA nodes: 1
EAL: Detected static linkage of DPDK
EAL: Multi-process socket /var/run/dpdk/rte/mp_socket_1027261_2ca45105bcf34
EAL: Selected IOVA mode 'PA'
EAL: VFIO support initialized
EAL: Cannot initialize tailq: RTE_FIB
Tailq 0: qname:<RTE_RING>, tqh_first:0x17fe12640, tqh_last:0x17fe12640
Tailq 1: qname:<RTE_MEMPOOL>, tqh_first:0x17ffd7380, tqh_last:0x17ffd7380
Tailq 2: qname:<RTE_MBUF_DYNFIELD>, tqh_first:(nil), tqh_last:0x1000044e8
Tailq 3: qname:<RTE_MBUF_DYNFLAG>, tqh_first:(nil), tqh_last:0x100004518
Tailq 4: qname:<RTE_HASH>, tqh_first:(nil), tqh_last:0x100004548
Tailq 5: qname:<RTE_FBK_HASH>, tqh_first:(nil), tqh_last:0x100004578
Tailq 6: qname:<RTE_THASH>, tqh_first:(nil), tqh_last:0x1000045a8
Tailq 7: qname:<UIO_RESOURCE_LIST>, tqh_first:(nil), tqh_last:0x1000045d8
Tailq 8: qname:<VFIO_RESOURCE_LIST>, tqh_first:(nil), tqh_last:0x100004608
Tailq 9: qname:<RTE_REORDER>, tqh_first:(nil), tqh_last:0x100004638
Tailq 10: qname:<RTE_ACL>, tqh_first:(nil), tqh_last:0x100004668
Tailq 11: qname:<RTE_LPM>, tqh_first:(nil), tqh_last:0x100004698
Tailq 12: qname:<RTE_LPM6>, tqh_first:(nil), tqh_last:0x1000046c8
Tailq 13: qname:<RTE_SWX_PIPELINE>, tqh_first:(nil), tqh_last:0x1000046f8
Tailq 14: qname:<RTE_SWX_CTL_PIPELINE>, tqh_first:(nil), tqh_last:0x100004728
Tailq 15: qname:<VMBUS_RESOURCE_LIST>, tqh_first:(nil), tqh_last:0x100004758
Tailq 16: qname:<RTE_STACK>, tqh_first:(nil), tqh_last:0x100004788
Tailq 17: qname:<>, tqh_first:(nil), tqh_last:(nil)
Tailq 18: qname:<>, tqh_first:(nil), tqh_last:(nil)
Tailq 19: qname:<>, tqh_first:(nil), tqh_last:(nil)
Tailq 20: qname:<>, tqh_first:(nil), tqh_last:(nil)
Tailq 21: qname:<>, tqh_first:(nil), tqh_last:(nil)
Tailq 22: qname:<>, tqh_first:(nil), tqh_last:(nil)
Tailq 23: qname:<>, tqh_first:(nil), tqh_last:(nil)
Tailq 24: qname:<>, tqh_first:(nil), tqh_last:(nil)
Tailq 25: qname:<>, tqh_first:(nil), tqh_last:(nil)
Tailq 26: qname:<>, tqh_first:(nil), tqh_last:(nil)
Tailq 27: qname:<>, tqh_first:(nil), tqh_last:(nil)
Tailq 28: qname:<>, tqh_first:(nil), tqh_last:(nil)
Tailq 29: qname:<>, tqh_first:(nil), tqh_last:(nil)
Tailq 30: qname:<>, tqh_first:(nil), tqh_last:(nil)
Tailq 31: qname:<>, tqh_first:(nil), tqh_last:(nil)
EAL: FATAL: Cannot init tail queues for objects
EAL: Cannot init tail queues for objects
PANIC in main():
Cannot init EAL
0: ./dpdk-pdump (rte_dump_stack+0x32) [55e895dd03da]
1: ./dpdk-pdump (__rte_panic+0xf1) [55e895da1a3b]
2: ./dpdk-pdump (main+0x1c8) [55e8958c0c42]
3: /lib/x86_64-linux-gnu/libc.so.6 (7efe39e00000+0x29d90) [7efe39e29d90]
4: /lib/x86_64-linux-gnu/libc.so.6 (__libc_start_main+0x80) [7efe39e29e40]
5: ./dpdk-pdump (_start+0x25) [55e8958ba535]
Abandon

How I should build dpdk please to make my app properly linked to rte libraries and get init done for the second process dpdk-pdump ?

Looking inside the archive user mails, I got this link


http://mails.dpdk.org/archives/users/2022-January/006115.html


<http://mails.dpdk.org/archives/users/2022-January/006115.html>

But how do I enable

 ethedev rx/tx callbacks

as it is written please ?

 should I just add in the build/rte_config.h #define RTE_ETHDEV_RXTX_CALLBACKS 1 ?

With meson I dont understand how to enable features unlikely makefile / configure as formerly


thank you in advance for your clues


Karim

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

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

* Re: dpdk-pdump cannot init tailq as secondary process
  2023-04-20 12:18 dpdk-pdump cannot init tailq as secondary process postmaster
@ 2023-04-24 16:17 ` Stephen Hemminger
  2023-04-25  6:08   ` Karim Harouat
  0 siblings, 1 reply; 3+ messages in thread
From: Stephen Hemminger @ 2023-04-24 16:17 UTC (permalink / raw)
  To: postmaster; +Cc: users

On Thu, 20 Apr 2023 12:18:15 +0000
postmaster <postmaster@ingenieur-high-tech.com> wrote:

> Hello
> 
> I follow what it is explained on that page
> 
> https://doc.dpdk.org/guides/tools/pdump.html
> 
> to call rte_pdump_init in my application (and checking the result, if not ok exit with failure), but once I ran dpdk-pdump I got
> 
> 
> dpdk-pdump  -l 9 -- --pdump 'port=0,queue=*,rx-dev=/tmp/rx.pcap'
> EAL: Detected CPU lcores: 24
> EAL: Detected NUMA nodes: 1
> EAL: Detected static linkage of DPDK
> EAL: Multi-process socket /var/run/dpdk/rte/mp_socket_1027261_2ca45105bcf34
> EAL: Selected IOVA mode 'PA'
> EAL: VFIO support initialized
> EAL: Cannot initialize tailq: RTE_FIB

Looks like pdump is not being run as a secondary process.
Try adding --proc-type secondary

Also, pdump is legacy application; please try dpdk-dumpcap instead.
Dumpcap supports more information, multiple interfaces, etc.


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

* Re: dpdk-pdump cannot init tailq as secondary process
  2023-04-24 16:17 ` Stephen Hemminger
@ 2023-04-25  6:08   ` Karim Harouat
  0 siblings, 0 replies; 3+ messages in thread
From: Karim Harouat @ 2023-04-25  6:08 UTC (permalink / raw)
  To: Stephen Hemminger; +Cc: users

Hello

I'm using dpdk version 22.11 and so the arg --proc-type secondary is set 
hardcoded inside the dpdk-pdump main program.

I fixed my issue by taking all cflags in libdpdk.pc file linking any 
personnal application statically with all librte.

And so the static rte_fib tail is initialized properly for the 
dpdk-pdump. But my app is bigger now, I'm currently trying to link only 
needed libraries to reduce the size.

With less libraries static linkage now I am facing with another issue,  
it is create ring vdev function which failed.

I will try dpdk-dumpcap

Thank you!

Le 24/04/2023 à 18:17, Stephen Hemminger a écrit :
> On Thu, 20 Apr 2023 12:18:15 +0000
> postmaster <postmaster@ingenieur-high-tech.com> wrote:
>
>> Hello
>>
>> I follow what it is explained on that page
>>
>> https://doc.dpdk.org/guides/tools/pdump.html
>>
>> to call rte_pdump_init in my application (and checking the result, if not ok exit with failure), but once I ran dpdk-pdump I got
>>
>>
>> dpdk-pdump  -l 9 -- --pdump 'port=0,queue=*,rx-dev=/tmp/rx.pcap'
>> EAL: Detected CPU lcores: 24
>> EAL: Detected NUMA nodes: 1
>> EAL: Detected static linkage of DPDK
>> EAL: Multi-process socket /var/run/dpdk/rte/mp_socket_1027261_2ca45105bcf34
>> EAL: Selected IOVA mode 'PA'
>> EAL: VFIO support initialized
>> EAL: Cannot initialize tailq: RTE_FIB
> Looks like pdump is not being run as a secondary process.
> Try adding --proc-type secondary
>
> Also, pdump is legacy application; please try dpdk-dumpcap instead.
> Dumpcap supports more information, multiple interfaces, etc.
>

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

end of thread, other threads:[~2023-04-27  7:26 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-04-20 12:18 dpdk-pdump cannot init tailq as secondary process postmaster
2023-04-24 16:17 ` Stephen Hemminger
2023-04-25  6:08   ` Karim Harouat

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