* Two DPDK instances in same Linux Process
@ 2024-11-13 17:20 Lombardo, Ed
2024-11-13 17:36 ` Thomas Monjalon
0 siblings, 1 reply; 2+ messages in thread
From: Lombardo, Ed @ 2024-11-13 17:20 UTC (permalink / raw)
To: users
[-- Attachment #1: Type: text/plain, Size: 699 bytes --]
Hi,
I have a situation where our NIC driver uses DPDK 22.11 and comes up and process packets. We added Suricata to our application and it also uses DPDK 22.11. Both the driver and Suricata are in the same Linux process. When the Suricata application starts and initializes DPDK with their own EAL init call it fails. I tried setting the driver DPDK as the primary and the Suricata as the secondary but still fails.
The driver DPDK initialization occurs before the Suricata DPDK initialization.
Also the driver DPDK has its own hugepages and Suricata has its own hugepages.
What is the proper way to accommodate two DPDK instances in the same Linux application process?
Thanks,
Ed
[-- Attachment #2: Type: text/html, Size: 2578 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Two DPDK instances in same Linux Process
2024-11-13 17:20 Two DPDK instances in same Linux Process Lombardo, Ed
@ 2024-11-13 17:36 ` Thomas Monjalon
0 siblings, 0 replies; 2+ messages in thread
From: Thomas Monjalon @ 2024-11-13 17:36 UTC (permalink / raw)
To: Lombardo, Ed; +Cc: users
13/11/2024 18:20, Lombardo, Ed:
> Hi,
> I have a situation where our NIC driver uses DPDK 22.11 and comes up and process packets. We added Suricata to our application and it also uses DPDK 22.11. Both the driver and Suricata are in the same Linux process. When the Suricata application starts and initializes DPDK with their own EAL init call it fails. I tried setting the driver DPDK as the primary and the Suricata as the secondary but still fails.
>
> The driver DPDK initialization occurs before the Suricata DPDK initialization.
>
> Also the driver DPDK has its own hugepages and Suricata has its own hugepages.
>
> What is the proper way to accommodate two DPDK instances in the same Linux application process?
1 application must call rte_eal_init() only once.
I wonder how you can integrate Suricata into your application.
Isn't it a standalone application?
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2024-11-13 17:36 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-11-13 17:20 Two DPDK instances in same Linux Process Lombardo, Ed
2024-11-13 17:36 ` Thomas Monjalon
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).