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 7D8D44297F for ; Tue, 18 Apr 2023 19:11:20 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 4B8014021F; Tue, 18 Apr 2023 19:11:20 +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 5CFEA4014F for ; Tue, 18 Apr 2023 19:11:19 +0200 (CEST) Received: by mail-ua1-f53.google.com with SMTP id p12so7715373uak.13 for ; Tue, 18 Apr 2023 10:11:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1681837878; x=1684429878; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=I7aTEDNJigC0QZpG3+Aur6oRH0mnSgi+00/TjEIkntM=; b=NMP9KM92egYdCQ+zfJAF6R15lcKle6cXzEQqT2XpDuagMrL1pL1V4bEMhfJCCFQCfT 4sPlj3gQWD3+1gvQ7UP5dsLqPaCKXkdkRqRJs4URuEK8PfxWIFA8AwTQhaMmpJC/fJpL SffHbhoyX6wlxspmnuTzpvJixX9FGmm5XPkP/Mat7loxopjQheorR4roCr1vrqi3OQbp rS6oPHS86shSmAwEODuFVOwb18w4/3AIXvGx0OfvUq5c7prWc0pmIrwUG0QMdqIhsaZH plZnYXW1GOi8KQPWPztY9iV049cunp1jO1OdxHklHgdwg2cMboXpbo/hAjvLDr3yHP0t UHCg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1681837878; x=1684429878; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=I7aTEDNJigC0QZpG3+Aur6oRH0mnSgi+00/TjEIkntM=; b=hdAY6V42wg8TXlbhbujuYYDGKCxANHKlHAf/gvl64/E7rhDWJt5NPVWRLzmEkjjnIP u9CsMgas9fThAwNDZKs6XD/PDpNJrw4ZNnr1eDiOlFbfYhoyadD0RJb+YwNnO0CgAoVE EB3+RVEx0opGhWDxkFRw3fMtpbXokzzE5VGhGw5Q4o58XLbUxefBTCHuaTBiK0hjb+o8 2sHH4PY340G0NVUiPvGy+b4JVLweIldXEMSmr3LQ0JKLuF57EA3Ntr15+QqxOAe1xfwU wBSMobLE1Zhed8QFdd+9FAM/OcFg9w1ug09qihOE1fvgfAS1JijHjvzb7bBK0aR3O9Z0 hX3g== X-Gm-Message-State: AAQBX9d+3d2CvsxLmWUeY4EyySf7FOgMedMLSJPvgzdVY5HP2NESjK3b F4AG1ABpNgItBu+QbNbRsGVieSpy7HmoxK3Srr8m1tJVQSo= X-Google-Smtp-Source: AKy350Zm/JCjd5HKFwrAYcMZsTbFg9gdmOGb0vCJ7Qn0ViyizsyVuUyplAVb/TSzVA9uY+N79/MOlGTJ71efl6CdI2c= X-Received: by 2002:a1f:c148:0:b0:440:19fe:1790 with SMTP id r69-20020a1fc148000000b0044019fe1790mr7105141vkf.1.1681837878212; Tue, 18 Apr 2023 10:11:18 -0700 (PDT) MIME-Version: 1.0 From: Verghis Koshi Date: Tue, 18 Apr 2023 10:11:07 -0700 Message-ID: Subject: Issues with basicfwd To: users@dpdk.org Content-Type: multipart/alternative; boundary="0000000000004cfd7505f99f65c9" 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 --0000000000004cfd7505f99f65c9 Content-Type: text/plain; charset="UTF-8" I'm having trouble running the basicfwd example and would appreciate any help. I'm running Linux Mint 21.1 inside VirtualBox, and I've created two NICs: verghis@verghis-VirtualBox:~/dpdk-stable-22.11.1/build$ ../usertools/dpdk-devbind.py --status Network devices using DPDK-compatible driver ============================================ 0000:00:03.0 '79c970 [PCnet32 LANCE] 2000' drv=vfio-pci unused=pcnet32 Network devices using kernel driver =================================== 0000:00:08.0 '82540EM Gigabit Ethernet Controller 100e' if=enp0s8 drv=e1000 unused=vfio-pci *Active* The first is bound to vfio-pci, to be used by basicfwd, and the second uses the normal e1000 driver. But when I run the code, it doesn't seem to see the VFIO driver at all; further, it seems to think that 00:08.0 is using a non-kernel driver - why? Here's the debug output; it should pick up the single VFIO port. I don't care about the 'even number of ports', that's easy to fix. My apologies if I'm overlooking something simple. verghis@verghis-VirtualBox:~/dpdk-stable-22.11.1/build$ sudo examples/dpdk-skeleton -l 1 -n 4 EAL: Detected CPU lcores: 2 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 'VA' EAL: VFIO support initialized rte_vfio_enable, file ../lib/eal/linux/eal_vfio.c, VFIO support initialized 0: examples/dpdk-skeleton (rte_dump_stack+0x42) [55bed7d42d62] 1: examples/dpdk-skeleton (55bed6cbb000+0x23b39f) [55bed6ef639f] 2: examples/dpdk-skeleton (55bed6cbb000+0x239211) [55bed6ef4211] 3: examples/dpdk-skeleton (main+0xf) [55bed70ac51f] 4: /lib/x86_64-linux-gnu/libc.so.6 (7fbde5fb2000+0x29d90) [7fbde5fdbd90] 5: /lib/x86_64-linux-gnu/libc.so.6 (__libc_start_main+0x80) [7fbde5fdbe40] 6: examples/dpdk-skeleton (_start+0x25) [55bed7b86055] rte_bus_probe, file ../lib/eal/common/eal_common_bus.c, bus->name auxiliary rte_bus_probe, file ../lib/eal/common/eal_common_bus.c, bus->name dpaa_bus rte_bus_probe, file ../lib/eal/common/eal_common_bus.c, bus->name fslmc rte_bus_probe, file ../lib/eal/common/eal_common_bus.c, bus->name ifpga rte_bus_probe, file ../lib/eal/common/eal_common_bus.c, bus->name pci pci_probe, file ../drivers/bus/pci/pci_common.c, dev->name 0000:00:01.1 pci_probe, file ../drivers/bus/pci/pci_common.c, dev->name 0000:00:02.0 pci_probe, file ../drivers/bus/pci/pci_common.c, dev->name 0000:00:03.0 pci_probe, file ../drivers/bus/pci/pci_common.c, dev->name 0000:00:04.0 pci_probe, file ../drivers/bus/pci/pci_common.c, dev->name 0000:00:05.0 pci_probe, file ../drivers/bus/pci/pci_common.c, dev->name 0000:00:06.0 pci_probe, file ../drivers/bus/pci/pci_common.c, dev->name 0000:00:07.0 pci_probe, file ../drivers/bus/pci/pci_common.c, dev->name 0000:00:08.0 rte_pci_map_device, file ../drivers/bus/pci/linux/pci.c, rte_pci_device->name 0000:00:08.0, dev->kdrv 0 pci_probe, file ../drivers/bus/pci/pci_common.c, dev->name 0000:00:0d.0 rte_bus_probe, file ../lib/eal/common/eal_common_bus.c, bus->name vmbus rte_bus_probe, file ../lib/eal/common/eal_common_bus.c, bus->name dsa rte_bus_probe, file ../lib/eal/common/eal_common_bus.c, vbus->name vdev vdev_probe, file ../drivers/bus/vdev/vdev.c, PROBE, &vdev_device_list 0x55bed8764d30 vdev_probe, file ../drivers/bus/vdev/vdev.c, dev is (nil) TELEMETRY: No legacy callbacks, legacy socket not created main, file ../examples/skeleton/basicfwd.c, nb_ports 0 EAL: Error - exiting with code: 1 Cause: Error: number of ports must be even Verghis --0000000000004cfd7505f99f65c9 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
=C2=A0=C2=A0=C2=A0 I'm having tr= ouble running the basicfwd example and would appreciate any help.
=C2=A0=C2=A0=C2=A0 I'm running Linux Mint 21.1 inside VirtualBox, and = I've created two NICs:

verghis@verghis-Virtual= Box:~/dpdk-stable-22.11.1/build$ ../usertools/dpdk-devbind.py --status
<= br>Network devices using DPDK-compatible driver
=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
0000:00:03.0 '79c970 [PCnet32 LANC= E] 2000' drv=3Dvfio-pci unused=3Dpcnet32

Network devices using k= ernel driver
=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
0000:00:08.0 '82540= EM Gigabit Ethernet Controller 100e' if=3Denp0s8 drv=3De1000 unused=3Dv= fio-pci *Active*

=C2=A0=C2=A0=C2=A0 The first is b= ound to vfio-pci, to be used by basicfwd, and the second uses the normal e1= 000 driver.
=C2=A0=C2=A0=C2=A0 But when I run the code, it doesn&= #39;t seem to see the VFIO driver at all; further, it seems to think that 0= 0:08.0
is using a non-kernel driver - why?
=C2=A0=C2=A0= =C2=A0 Here's the debug output; it should pick up the single VFIO port.= =C2=A0 I don't care about the 'even number of ports', that'= s
easy to fix.
=C2=A0=C2=A0=C2=A0 My apologies if I'= ;m overlooking something simple.

verghis@verghis-VirtualBox:~/dpdk= -stable-22.11.1/build$ sudo examples/dpdk-skeleton -l 1 -n 4
EAL: Detect= ed CPU lcores: 2
EAL: Detected NUMA nodes: 1
EAL: Detected static lin= kage of DPDK
EAL: Multi-process socket /var/run/dpdk/rte/mp_socket
EA= L: Selected IOVA mode 'VA'
EAL: VFIO support initialized
rte_= vfio_enable, file ../lib/eal/linux/eal_vfio.c, VFIO support initialized
= 0: examples/dpdk-skeleton (rte_dump_stack+0x42) [55bed7d42d62]
1: exampl= es/dpdk-skeleton (55bed6cbb000+0x23b39f) [55bed6ef639f]
2: examples/dpdk= -skeleton (55bed6cbb000+0x239211) [55bed6ef4211]
3: examples/dpdk-skelet= on (main+0xf) [55bed70ac51f]
4: /lib/x86_64-linux-gnu/libc.so.6 (7fbde5f= b2000+0x29d90) [7fbde5fdbd90]
5: /lib/x86_64-linux-gnu/libc.so.6 (__libc= _start_main+0x80) [7fbde5fdbe40]
6: examples/dpdk-skeleton (_start+0x25)= [55bed7b86055]
rte_bus_probe, file ../lib/eal/common/eal_common_bus.c, = bus->name auxiliary
rte_bus_probe, file ../lib/eal/common/eal_common_= bus.c, bus->name dpaa_bus
rte_bus_probe, file ../lib/eal/common/eal_c= ommon_bus.c, bus->name fslmc
rte_bus_probe, file ../lib/eal/common/ea= l_common_bus.c, bus->name ifpga
rte_bus_probe, file ../lib/eal/common= /eal_common_bus.c, bus->name pci
pci_probe, file ../drivers/bus/pci/p= ci_common.c, dev->name 0000:00:01.1
pci_probe, file ../drivers/bus/pc= i/pci_common.c, dev->name 0000:00:02.0
pci_probe, file ../drivers/bus= /pci/pci_common.c, dev->name 0000:00:03.0
pci_probe, file ../drivers/= bus/pci/pci_common.c, dev->name 0000:00:04.0
pci_probe, file ../drive= rs/bus/pci/pci_common.c, dev->name 0000:00:05.0
pci_probe, file ../dr= ivers/bus/pci/pci_common.c, dev->name 0000:00:06.0
pci_probe, file ..= /drivers/bus/pci/pci_common.c, dev->name 0000:00:07.0
pci_probe, file= ../drivers/bus/pci/pci_common.c, dev->name 0000:00:08.0
rte_pci_map_= device, file ../drivers/bus/pci/linux/pci.c, rte_pci_device->name 0000:0= 0:08.0, dev->kdrv 0
pci_probe, file ../drivers/bus/pci/pci_common.c, = dev->name 0000:00:0d.0
rte_bus_probe, file ../lib/eal/common/eal_comm= on_bus.c, bus->name vmbus
rte_bus_probe, file ../lib/eal/common/eal_c= ommon_bus.c, bus->name dsa
rte_bus_probe, file ../lib/eal/common/eal_= common_bus.c, vbus->name vdev
vdev_probe, file ../drivers/bus/vdev/vd= ev.c, PROBE, &vdev_device_list 0x55bed8764d30
vdev_probe, file ../dr= ivers/bus/vdev/vdev.c, dev is (nil)
TELEMETRY: No legacy callbacks, lega= cy socket not created
main, file ../examples/skeleton/basicfwd.c, nb_por= ts 0
EAL: Error - exiting with code: 1
=C2=A0 Cause: Error: number of= ports must be even

Verghis
--0000000000004cfd7505f99f65c9--