DPDK usage discussions
 help / color / mirror / Atom feed
* DPDK pipeline sample application usage
@ 2024-03-19  3:02 =?gb18030?B?tcvKsc6w?=
  0 siblings, 0 replies; only message in thread
From: =?gb18030?B?tcvKsc6w?= @ 2024-03-19  3:02 UTC (permalink / raw)
  To: =?gb18030?B?dXNlcnM=?=

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset="gb18030", Size: 2004 bytes --]

Hi,

I am trying to run the pipeline sample application (39. Pipeline Application ¡ª Data Plane Development Kit 24.03.0-rc3 documentation (dpdk.org)), with the L2fwd example in the examples directory.


I modified the ethdev.io and l2fwd.cli scripts like below, but I am not sure if it's the correct way:


-------------------------------------
ethdev.io:


mirroring slots 4 sessions 64


port in 0 ethdev 0000:02:04.0 rxq 0 bsz 32
port in 1 ethdev 0000:02:05.0 rxq 0 bsz 32


port out 0 ethdev 0000:02:04.0 txq 0 bsz 32
port out 1 ethdev 0000:02:05.0 txq 0 bsz 32



-------------------------------------
l2fwd.cli:


pipeline codegen ./l2fwd.spec ./l2fwd.c
pipeline libbuild ./l2fwd.c ./l2fwd.so


mempool MEMPOOL0 meta 0 pkt 2176 pool 32K cache 256 numa 0
ethdev 0000:02:04.0 rxq 1 128 MEMPOOL0 txq 1 512 promiscuous on
ethdev 0000:02:05.0 rxq 1 128 MEMPOOL0 txq 1 512 promiscuous on


pipeline PIPELINE0 build lib ./l2fwd.so io ./ethdev.io numa 0


pipeline PIPELINE0 enable thread 1

----------------------------------------


the l2fwd.spec file is same to the copy in repo, nothing changed. 0000:02:04.0 and 0000:02:05.0 are the NICs bound to DPDK.


the command to run the application like below:


  sudo ./pipeline -c 0x3 -- -s ./l2fwd.cli


and no errors show up after the command executed. 


The question is:
I connected to hosts to the two NICs bound to DPDK, set IP addresses on both hosts, and attemped to ping between the two hosts, but it failed.


From the comment in the l2fwd.spec file, I guess this spec file has the very same function like the L2fwd sample application, with whitch I can ping between two hosts. (16. L2 Forwarding Sample Application (in Real and Virtualized Environments) ¡ª Data Plane Development Kit 24.03.0-rc3 documentation (dpdk.org)). However the pipeline does not work like what I guess. 



So, is it my understanding that's flawed, or is it my setup?


Thanks in advance.

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2024-03-19  8:44 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-03-19  3:02 DPDK pipeline sample application usage =?gb18030?B?tcvKsc6w?=

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