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 2245A42982 for ; Wed, 19 Apr 2023 02:14:35 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id D794B40DF8; Wed, 19 Apr 2023 02:14:34 +0200 (CEST) Received: from mail-ua1-f52.google.com (mail-ua1-f52.google.com [209.85.222.52]) by mails.dpdk.org (Postfix) with ESMTP id 62E3F4021F for ; Wed, 19 Apr 2023 02:14:33 +0200 (CEST) Received: by mail-ua1-f52.google.com with SMTP id x8so12885870uau.9 for ; Tue, 18 Apr 2023 17:14:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1681863272; x=1684455272; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :from:to:cc:subject:date:message-id:reply-to; bh=8s3lUdLn0791GoubejEqTdoTEWn1zbOZ4QcPPA/+sT8=; b=a475IQJBNPxiC5mCurnjp8c27qGKA+0INvzXZJxznFP6x9JOgcNkfI3g9AfnKhqQOZ 5Ns5DLSW2J+bSFh/2cWS4D15VcpeG1TlAd3ZbBAdHPSLYzxJH796s831pe8ZXqJtjRwf umreaWVAwSWMr5qpSh3flt6lPUfohk+xQd6dCVOxb8ODLvfCaaPVsgMUt67l6W9J0Mxh 0dnazqcmpVO+zbG1GNRf6Q8OjLnOzvwPIqvtAAkg9M/4W9xZJKmO786FxbRGNoGmjvja e4v3VCQmv8JSmDULKp8NyuzEJ4krbYY8Sl4PsNrkSYGiYImWWyQFpmDoD5+zCgZQ0NOd pLPA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1681863272; x=1684455272; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=8s3lUdLn0791GoubejEqTdoTEWn1zbOZ4QcPPA/+sT8=; b=BF60IXJ+PEHM7N6PvWOExlpAVR6JIHHfsw+LuNQaIb48ln/i5puwBNmlb/8PryNa5s eqcELZXsxRqCpSRB82Zxa8YLQ7CQ6BUFC85noYGERn19Iqiwgirt7NfsxlOV/cXYIIEm 6nuvOT7MGzTYBzfhOY7nuSdO6rPqOP0kOVIcBkNcnKnYyWiKmxFmjqWgPxYbcc1JMkv2 3+xmXP0My87gzStqa0jah8eXgsnqqKjGqF+dvaqAw9nIqof+T8HUiiWGz3X/9IQH0HJX AzF48dVuzEF4nMzxPVfFPQycQKZG1wlMDcOaJg3px6Eh53ORp5hxV37h4vhJRrhuvkdy vasQ== X-Gm-Message-State: AAQBX9fqYwXsWDJNCujkg5Ziz7xGgl9RRLMX1XqTIsitO+MnAC7E3+hJ H9Vb7oij3xmZrpqQPA7lS/5hRjIsJSDiL044TRrVLoU5V3A= X-Google-Smtp-Source: AKy350aaH02b5Umna68QMwS+8KrR5US0sEK9JY920PNCtJrYFzLD1Dj50hp90ANUSohNSJzqDsCpvH8jn7+dj4okzo8= X-Received: by 2002:a1f:5ed7:0:b0:43f:b28e:d481 with SMTP id s206-20020a1f5ed7000000b0043fb28ed481mr6149453vkb.11.1681863272444; Tue, 18 Apr 2023 17:14:32 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Verghis Koshi Date: Tue, 18 Apr 2023 17:14:21 -0700 Message-ID: Subject: Re: Issues with basicfwd To: users@dpdk.org Content-Type: multipart/alternative; boundary="000000000000ea387005f9a54eb0" 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 --000000000000ea387005f9a54eb0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable It appears that the vdev_device_list is empty - isn't this where the probe function for VFIO lives? 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 0x56337bb30d30 vdev_probe, file ../drivers/bus/vdev/vdev.c, dev is (nil) This is how I call basicfwd, am I missing something? sudo examples/dpdk-skeleton -l 1 -n 4 Thanks,. Verghis m On Tue, Apr 18, 2023 at 10:11=E2=80=AFAM Verghis Koshi w= rote: > 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 > =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 LANCE] 2000' drv=3Dvfio-pci unused=3Dpcnet3= 2 > > Network devices using kernel 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 '82540EM Gigabit Ethernet Controller 100e' if=3Denp0s8 > drv=3De1000 unused=3Dvfio-pci *Active* > > The first is bound to vfio-pci, to be used by basicfwd, and the secon= d > 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 initializ= ed > 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 auxilia= ry > rte_bus_probe, file ../lib/eal/common/eal_common_bus.c, bus->name dpaa_bu= s > 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 > --000000000000ea387005f9a54eb0 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
=C2=A0=C2=A0=C2=A0 It appears that the vdev_device_li= st is empty - isn't this where the probe function for VFIO lives?
=

= rte_bus_probe, file ../lib/eal/common/eal_common_bus.c, vbus->name vdev<= br>vdev_probe, file ../drivers/bus/vdev/vdev.c, PROBE, &vdev_device_lis= t 0x56337bb30d30
vdev_probe, file ../drivers/bus/vdev/vdev.c, dev is (ni= l)

=C2=A0=C2=A0=C2=A0 This is how I = call basicfwd, am I missing something?

sudo examples/dpdk-skeleton -l = 1 -n 4

=C2=A0=C2=A0=C2=A0 Thanks,.

Verghis




m

On Tue, Apr 18, 2023 at 10:11=E2= =80=AFAM Verghis Koshi <vkoshi@gmail.com> wrote:
=C2=A0=C2=A0= =C2=A0 I'm having trouble running the basicfwd example and would apprec= iate 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-VirtualBox:~/dpdk-stable-22.11.1/build$ ../usertools/dpdk-= devbind.py --status

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 &= #39;79c970 [PCnet32 LANCE] 2000' drv=3Dvfio-pci unused=3Dpcnet32
Network devices using kernel 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=3D0000:00:08.0 '82540EM Gigabit Ethernet Controller 100e' if=3Denp0s= 8 drv=3De1000 unused=3Dvfio-pci *Active*

=C2=A0=C2= =A0=C2=A0 The first is bound to vfio-pci, to be used by basicfwd, and the s= econd uses the normal e1000 driver.
=C2=A0=C2=A0=C2=A0 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= ?
=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: Detected CPU lcores: 2
EAL: Detected NUMA nodes: 1EAL: Detected static linkage of DPDK
EAL: Multi-process socket /var/run= /dpdk/rte/mp_socket
EAL: Selected IOVA mode 'VA'
EAL: VFIO su= pport initialized
rte_vfio_enable, file ../lib/eal/linux/eal_vfio.c, VFI= O support initialized
0: examples/dpdk-skeleton (rte_dump_stack+0x42) [5= 5bed7d42d62]
1: examples/dpdk-skeleton (55bed6cbb000+0x23b39f) [55bed6ef= 639f]
2: examples/dpdk-skeleton (55bed6cbb000+0x239211) [55bed6ef4211]3: examples/dpdk-skeleton (main+0xf) [55bed70ac51f]
4: /lib/x86_64-lin= ux-gnu/libc.so.6 (7fbde5fb2000+0x29d90) [7fbde5fdbd90]
5: /lib/x86_64-li= nux-gnu/libc.so.6 (__libc_start_main+0x80) [7fbde5fdbe40]
6: examples/dp= dk-skeleton (_start+0x25) [55bed7b86055]
rte_bus_probe, file ../lib/eal/= common/eal_common_bus.c, bus->name auxiliary
rte_bus_probe, file ../l= ib/eal/common/eal_common_bus.c, bus->name dpaa_bus
rte_bus_probe, fil= e ../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_prob= e, 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_prob= e, file ../drivers/bus/pci/pci_common.c, dev->name 0000:00:02.0
pci_p= robe, file ../drivers/bus/pci/pci_common.c, dev->name 0000:00:03.0
pc= i_probe, file ../drivers/bus/pci/pci_common.c, dev->name 0000:00:04.0pci_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:0= 6.0
pci_probe, file ../drivers/bus/pci/pci_common.c, dev->name 0000:0= 0:07.0
pci_probe, file ../drivers/bus/pci/pci_common.c, dev->name 000= 0:00:08.0
rte_pci_map_device, file ../drivers/bus/pci/linux/pci.c, rte_p= ci_device->name 0000:00:08.0, dev->kdrv 0
pci_probe, file ../drive= rs/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, fil= e ../lib/eal/common/eal_common_bus.c, bus->name dsa
rte_bus_probe, fi= le ../lib/eal/common/eal_common_bus.c, vbus->name vdev
vdev_probe, fi= le ../drivers/bus/vdev/vdev.c, PROBE, &vdev_device_list 0x55bed8764d30<= br>vdev_probe, file ../drivers/bus/vdev/vdev.c, dev is (nil)
TELEMETRY: = No legacy callbacks, legacy socket not created
main, file ../examples/sk= eleton/basicfwd.c, nb_ports 0
EAL: Error - exiting with code: 1
=C2= =A0 Cause: Error: number of ports must be even

=
Verghis<= br>
--000000000000ea387005f9a54eb0--