DPDK usage discussions
 help / color / mirror / Atom feed
* Need help to resolve Error: number of ports must be even in dpdk
@ 2023-10-13  9:12 Kiran Nayak
  0 siblings, 0 replies; only message in thread
From: Kiran Nayak @ 2023-10-13  9:12 UTC (permalink / raw)
  To: users

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

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

only message in thread, other threads:[~2023-10-16  8:14 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-10-13  9:12 Need help to resolve Error: number of ports must be even in dpdk Kiran Nayak

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