DPDK usage discussions
 help / color / mirror / Atom feed
From: Kiran Nayak <kiranlkiran363@gmail.com>
To: users@dpdk.org
Subject: Need help to resolve Error: number of ports must be even in dpdk
Date: Fri, 13 Oct 2023 14:42:46 +0530	[thread overview]
Message-ID: <CAFnRE1WFKG8nJTGkS1v5k0uJmUi3Cx3vS-sFjtH7y0VKz7tsGw@mail.gmail.com> (raw)

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

Hi team,

I recently installed dpdk on linux and i am doing the experiments on
examples.
after executing the basic forwarding example i am getting below error.
Please help me to resolve this issue.
======================================
I used the commands below before executing the example binary.
mkdir -p /dev/hugepages
mountpoint -q /dev/hugepages || mount -t hugetlbfs nodev /dev/hugepages
echo 1024 >
/sys/devices/system/node/node0/hugepages/hugepages-2048kB/nr_hugepages
dpdk-devbind.py -s
ifconfig enp2s0 down
modprobe uio
modprobe uio_pci_generic
dpdk-devbind.py -s
dpdk-devbind.py -b uio_pci_generic 02:00.0
dpdk-devbind.py -s
cd /home/rsys/dpdk-23.07/build/examples
============================================
============================================
After this status will be
root@rsys:/home/rsys/dpdk-23.07/build/examples# dpdk-devbind.py -s

Network devices using DPDK-compatible driver
0000:02:00.0 '82574L Gigabit Network Connection 10d3' drv=uio_pci_generic
unused=e1000e,vfio-pci

Network devices using kernel driver
0000:01:00.0 'Virtio network device 1041' if=enp1s0 drv=virtio-pci
unused=vfio-pci,uio_pci_generic *Active*
==============================================
The error will be
root@rsys:/home/rsys/dpdk-23.07/build/examples# ./dpdk-skeleton -l 1 -n 4
EAL: Detected CPU lcores: 4
EAL: Detected NUMA nodes: 1
EAL: Detected static linkage of DPDK
EAL: Multi-process socket /var/run/dpdk/rte/mp_socket
EAL: Selected IOVA mode 'PA'
EAL: VFIO support initialized
EAL: Probe PCI driver: net_virtio (1af4:1041) device: 0000:01:00.0 (socket
-1)
eth_virtio_pci_init(): Failed to init PCI device
EAL: Requested device 0000:01:00.0 cannot be used
EAL: Probe PCI driver: net_e1000_em (8086:10d3) device: 0000:02:00.0
(socket -1)
TELEMETRY: No legacy callbacks, legacy socket not created
EAL: Error - exiting with code: 1
  Cause: Error: number of ports must be even
======================================================

Please anyone help me to resolve this.

Thanks,
Kiran L

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

                 reply	other threads:[~2023-10-16  8:14 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=CAFnRE1WFKG8nJTGkS1v5k0uJmUi3Cx3vS-sFjtH7y0VKz7tsGw@mail.gmail.com \
    --to=kiranlkiran363@gmail.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).