From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 5564E4317C for ; Mon, 16 Oct 2023 10:14:45 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 5E4A940648; Mon, 16 Oct 2023 10:14:41 +0200 (CEST) Received: from mail-ua1-f53.google.com (mail-ua1-f53.google.com [209.85.222.53]) by mails.dpdk.org (Postfix) with ESMTP id 589AC402A1 for ; Fri, 13 Oct 2023 11:13:02 +0200 (CEST) Received: by mail-ua1-f53.google.com with SMTP id a1e0cc1a2514c-7b08ac3ce7fso878318241.2 for ; Fri, 13 Oct 2023 02:13:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1697188381; x=1697793181; darn=dpdk.org; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=03+vH3cDHwpqnThJx2QLQO35L3uW7BntPiOGqBWEF4o=; b=cg2aU6PTH2kSc3rIjBd7v0rkFsvW6nTpY02Fwd/Bn7Oan1OA33kovdwWwCL3VlIHNc MVQp8uLM+30K2mT3J+tRdLYSDv3hsNwkMuariS7Dsr8XFQPxCEz9YmL9fKjW/MJupUUg KdYrUFU3uQhmTlC5Qs0OGctXTKv8avM9WoPgE0Xw41r0zmuteiYj27uSQnBwnNw93MAF uxYDQPbuXbDh9Of3lsaNhCnL5SboH+awgNRu+IDdxzyadUdkTEuHrwI1MDqwbjEp3+cP FKUIpI4AFPCQXlCCr1LX9iP1HsrY0+2/8nl0kxDH5KCcOj26aGxksPquuAR6QEwYKLCX /IDg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697188381; x=1697793181; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=03+vH3cDHwpqnThJx2QLQO35L3uW7BntPiOGqBWEF4o=; b=TtW8jSYwRkxDjtbwho7cHeWR9g+HKdWMbrUBfvXfmyTW4zpGxC2RajUNAFYjMyXF1J slI1a6jAjn/lkgd0g3uTB+m0xM1MFvpecpvNvukdKTFrDC9nivpC4v33pA/2172va3yx qtNfMfCNtdvwWUX7MPFgB4i2ja5wtkpxt1mJTHcbWx3lT5rW3bJXpu5DnDGhDNNK5SW8 vbW83mJalu7QkNbmGMwLhBaghCcLHGOeN48xvzAmEceTRUrsvzhc+0tNCBHqvvWLadYC OAkiWgoQIcOpf3rrTwYPECjfRr/GMjoYgYy3A2OTJkgXAG0nLdmFw4TWi44KuId+05K/ KXCw== X-Gm-Message-State: AOJu0YzjeC+GxVGhIoAPDOo7mu4084aw4M7RZ30ae3QZ6/9BNuLv7ufU j1LVTK1SltQni34Mujpf3Q/mZsNc/RS2FhfMauHrlVR3W5Q= X-Google-Smtp-Source: AGHT+IE/53QuT5/z/UKQtE4Xpq6h+WwPL0F7jtfFV+KxWpWfRbmxiGLJWQ6HJ9kZIxZMQe84sVDtR2dhAn1yTeEfGlo= X-Received: by 2002:a67:c193:0:b0:457:ba39:5c98 with SMTP id h19-20020a67c193000000b00457ba395c98mr3132731vsj.12.1697188381297; Fri, 13 Oct 2023 02:13:01 -0700 (PDT) MIME-Version: 1.0 From: Kiran Nayak Date: Fri, 13 Oct 2023 14:42:46 +0530 Message-ID: Subject: Need help to resolve Error: number of ports must be even in dpdk To: users@dpdk.org Content-Type: multipart/alternative; boundary="00000000000095a92c06079576c3" X-Mailman-Approved-At: Mon, 16 Oct 2023 10:14:39 +0200 X-BeenThere: users@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK usage discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: users-bounces@dpdk.org --00000000000095a92c06079576c3 Content-Type: text/plain; charset="UTF-8" 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 --00000000000095a92c06079576c3 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi team,

I recently installed dpdk on l= inux and i am doing the experiments=C2=A0on examples.
after executing th= e basic forwarding=C2=A0example i am getting below error. Please=C2=A0help = me to resolve this issue.
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
I = used the commands below before executing the example binary.
mkdir -p /d= ev/hugepages
mountpoint -q /dev/hugepages || mount -t hugetlbfs nodev /d= ev/hugepages
echo 1024 > /sys/devices/system/node/node0/hugepages/hug= epages-2048kB/nr_hugepages
dpdk-devbind.py -s
ifconfig enp2s0 downmodprobe uio
modprobe uio_pci_generic
dpdk-devbind.py -s
dpdk-dev= bind.py -b uio_pci_generic 02:00.0
dpdk-devbind.py -s
cd /home/rsys/d= pdk-23.07/build/examples
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D
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 Connect= ion 10d3' drv=3Duio_pci_generic unused=3De1000e,vfio-pci

Network= devices using kernel driver
0000:01:00.0 'Virtio network device 104= 1' if=3Denp1s0 drv=3Dvirtio-pci unused=3Dvfio-pci,uio_pci_generic *Acti= ve*
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
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-proces= s socket /var/run/dpdk/rte/mp_socket
EAL: Selected IOVA mode 'PA'= ;
EAL: VFIO support initialized
EAL: Probe PCI driver: net_virtio (1a= f4: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 (socke= t -1)
TELEMETRY: No legacy callbacks, legacy socket not created
EAL: = Error - exiting with code: 1
=C2=A0 Cause: Error: number of ports must b= e even
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D

Please anyone help me to resolve this.
<= br>Thanks,
Kiran L

--00000000000095a92c06079576c3--