From: David Marchand <david.marchand@redhat.com>
To: Nafiah Siddiqha <nafiah.siddiqha@iwave-global.com>,
"Wiles, Keith" <keith.wiles@intel.com>
Cc: "Luca.Vizzarro@arm.com" <Luca.Vizzarro@arm.com>,
"dev@dpdk.org" <dev@dpdk.org>,
"andremue@linux.microsoft.com" <andremue@linux.microsoft.com>,
"longli@microsoft.com" <longli@microsoft.com>,
Ayshathul Thuhara <ayshathul.thuhara@iwave-global.com>
Subject: Re: Testing dpdk application using openNIC driver
Date: Tue, 4 Feb 2025 14:54:29 +0100 [thread overview]
Message-ID: <CAJFAV8z-OCYEY5OYtrxftcLoXeY9HKAZ=T3KuEOu==CreS+Weg@mail.gmail.com> (raw)
In-Reply-To: <PN2P287MB22230CF53B6310DB7F70FF39D3F42@PN2P287MB2223.INDP287.PROD.OUTLOOK.COM>
Hello,
Adding pktgen maintainer in the loop.
On Tue, Feb 4, 2025 at 2:42 PM Nafiah Siddiqha
<nafiah.siddiqha@iwave-global.com> wrote:
>
> Hi,
> I'm testing pktgen application using OpenNIC driver, but I face device cannot parse issue ,
> What do I need to pass in my vdev parameter for it to run
>
> Below are the logs of the error I'm facing
> $sudo ./usr/local/bin/pktgen --vdev 'eth_af_packet0,iface=enp1s0f0' --vdev 'eth_af_packet1,iface=enp1s0f1' -l 2-10 -n 4 -- -m [3:4].0 -m [6:7].1
> Copyright(c) <2010-2021>, Intel Corporation. All rights reserved. Powered by DPDK
> EAL: Detected 12 lcore(s)
> EAL: Detected 1 NUMA nodes
> EAL: failed to parse device "eth_af_packet0"
> EAL: Unable to parse device 'eth_af_packet0,iface=enp1s0f0'
>
>
> I have tried passing eth_pcap, net_pcap and net_af_packet as well but there's no progress in the output.
Some ideas:
The first would be to make sure that the net/af_packet driver is
indeed built into DPDK.
And next one is to make sure that this driver is loaded by pktgen.
The simpler is to check this with testpmd first, and once it works,
look into pktgen (if necessary).
Check if the compiled dpdk (that this pktgen binary is linked to) is
happy with those EAL options (the options between the binary name and
the first -- in the cmdline options).
$ sudo /path/to/dpdk/build/app/dpdk-testpmd --vdev
'eth_af_packet0,iface=enp1s0f0' --vdev 'eth_af_packet1,iface=enp1s0f1'
-l 2-10 -n 4 --
If this does not work, look for librte_net_af_packet.so in your dpdk
build directory.
$ find /path/to/dpdk/build/ -name librte_net_af_packet.so
And then pass this directory in the EAL options:
$ sudo /path/to/dpdk/build/app/dpdk-testpmd -d
/path/to/dpdk/build/drivers/ --vdev 'eth_af_packet0,iface=enp1s0f0'
--vdev 'eth_af_packet1,iface=enp1s0f1' -l 2-10 -n 4 --
--
David Marchand
next prev parent reply other threads:[~2025-02-04 13:54 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-02-04 13:42 Nafiah Siddiqha
2025-02-04 13:54 ` David Marchand [this message]
[not found] ` <PN2P287MB222391396CB4C9B5325FCD80D3F72@PN2P287MB2223.INDP287.PROD.OUTLOOK.COM>
2025-02-05 7:49 ` David Marchand
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='CAJFAV8z-OCYEY5OYtrxftcLoXeY9HKAZ=T3KuEOu==CreS+Weg@mail.gmail.com' \
--to=david.marchand@redhat.com \
--cc=Luca.Vizzarro@arm.com \
--cc=andremue@linux.microsoft.com \
--cc=ayshathul.thuhara@iwave-global.com \
--cc=dev@dpdk.org \
--cc=keith.wiles@intel.com \
--cc=longli@microsoft.com \
--cc=nafiah.siddiqha@iwave-global.com \
/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).