DPDK usage discussions
 help / color / mirror / Atom feed
From: =?gb18030?B?tcvKsc6w?= <dengsw0423@foxmail.com>
To: =?gb18030?B?dXNlcnM=?= <users@dpdk.org>
Subject: DPDK pipeline sample application usage
Date: Tue, 19 Mar 2024 11:02:19 +0800	[thread overview]
Message-ID: <tencent_C00C7E639A3C40F883B58F2B569CD8178709@qq.com> (raw)

[-- 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:


&nbsp; sudo ./pipeline -c 0x3 -- -s ./l2fwd.cli


and no errors show up after the command executed.&nbsp;


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.&nbsp;



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


Thanks in advance.

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

                 reply	other threads:[~2024-03-19  8:44 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=tencent_C00C7E639A3C40F883B58F2B569CD8178709@qq.com \
    --to=dengsw0423@foxmail.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).