From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <users-bounces@dpdk.org>
Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124])
	by inbox.dpdk.org (Postfix) with ESMTP id 2245A42982
	for <public@inbox.dpdk.org>; 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 <users@dpdk.org>; Wed, 19 Apr 2023 02:14:33 +0200 (CEST)
Received: by mail-ua1-f52.google.com with SMTP id x8so12885870uau.9
 for <users@dpdk.org>; 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: <CAANwsYPCP9zFeqC+uKAuEZ3tEk6K_7LtQjYbjsUfrUUf-fq0aQ@mail.gmail.com>
In-Reply-To: <CAANwsYPCP9zFeqC+uKAuEZ3tEk6K_7LtQjYbjsUfrUUf-fq0aQ@mail.gmail.com>
From: Verghis Koshi <vkoshi@gmail.com>
Date: Tue, 18 Apr 2023 17:14:21 -0700
Message-ID: <CAANwsYPbQ8x5PJugkQrLBnhWDoXVMavaxD_6oaUOBodGQsDORQ@mail.gmail.com>
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 <users.dpdk.org>
List-Unsubscribe: <https://mails.dpdk.org/options/users>,
 <mailto:users-request@dpdk.org?subject=unsubscribe>
List-Archive: <http://mails.dpdk.org/archives/users/>
List-Post: <mailto:users@dpdk.org>
List-Help: <mailto:users-request@dpdk.org?subject=help>
List-Subscribe: <https://mails.dpdk.org/listinfo/users>,
 <mailto:users-request@dpdk.org?subject=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 <vkoshi@gmail.com> 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

<div dir=3D"ltr"><div>=C2=A0=C2=A0=C2=A0 It appears that the vdev_device_li=
st is empty - isn&#39;t this where the probe function for VFIO lives?</div>=
<div><br></div><div><span style=3D"font-family:monospace"><font size=3D"4">=
rte_bus_probe, file ../lib/eal/common/eal_common_bus.c, vbus-&gt;name vdev<=
br>vdev_probe, file ../drivers/bus/vdev/vdev.c, PROBE, &amp;vdev_device_lis=
t 0x56337bb30d30<br>vdev_probe, file ../drivers/bus/vdev/vdev.c, dev is (ni=
l)</font></span></div><div><br></div><div>=C2=A0=C2=A0=C2=A0 This is how I =
call basicfwd, am I missing something?</div><div><br></div><div><span style=
=3D"font-family:monospace"><font size=3D"4">sudo examples/dpdk-skeleton -l =
1 -n 4</font></span></div><div><br></div><div>=C2=A0=C2=A0=C2=A0 Thanks,.</=
div><div><br></div><div>Verghis<br></div><div><br></div><div><br></div><div=
><br></div><div><br></div><div>m<br></div></div><br><div class=3D"gmail_quo=
te"><div dir=3D"ltr" class=3D"gmail_attr">On Tue, Apr 18, 2023 at 10:11=E2=
=80=AFAM Verghis Koshi &lt;<a href=3D"mailto:vkoshi@gmail.com" target=3D"_b=
lank">vkoshi@gmail.com</a>&gt; wrote:<br></div><blockquote class=3D"gmail_q=
uote" style=3D"margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,2=
04);padding-left:1ex"><div dir=3D"ltr"><div dir=3D"ltr"><div>=C2=A0=C2=A0=
=C2=A0 I&#39;m having trouble running the basicfwd example and would apprec=
iate any help.</div><div>=C2=A0=C2=A0=C2=A0 I&#39;m running Linux Mint 21.1=
 inside VirtualBox, and I&#39;ve created two NICs:</div><div><br></div><div=
>verghis@verghis-VirtualBox:~/dpdk-stable-22.11.1/build$ ../usertools/dpdk-=
devbind.py --status<br><br>Network devices using DPDK-compatible driver<br>=
=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<br>0000:00:03.0 &=
#39;79c970 [PCnet32 LANCE] 2000&#39; drv=3Dvfio-pci unused=3Dpcnet32<br><br=
>Network devices using kernel driver<br>=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<br=
>0000:00:08.0 &#39;82540EM Gigabit Ethernet Controller 100e&#39; if=3Denp0s=
8 drv=3De1000 unused=3Dvfio-pci *Active*</div><div><br></div><div>=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.</div><div>=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 00:08.0</div><div>is using a non-kernel driver - why=
?</div><div>=C2=A0=C2=A0=C2=A0 Here&#39;s the debug output; it should pick =
up the single VFIO port.=C2=A0 I don&#39;t care about the &#39;even number =
of ports&#39;, that&#39;s</div><div>easy to fix.</div><div>=C2=A0=C2=A0=C2=
=A0 My apologies if I&#39;m overlooking something simple.<br></div><div><br=
></div><div><font size=3D"2"><span style=3D"font-family:monospace">verghis@=
verghis-VirtualBox:~/dpdk-stable-22.11.1/build$ sudo examples/dpdk-skeleton=
 -l 1 -n 4<br>EAL: Detected CPU lcores: 2<br>EAL: Detected NUMA nodes: 1<br=
>EAL: Detected static linkage of DPDK<br>EAL: Multi-process socket /var/run=
/dpdk/rte/mp_socket<br>EAL: Selected IOVA mode &#39;VA&#39;<br>EAL: VFIO su=
pport initialized<br>rte_vfio_enable, file ../lib/eal/linux/eal_vfio.c, VFI=
O support initialized<br>0: examples/dpdk-skeleton (rte_dump_stack+0x42) [5=
5bed7d42d62]<br>1: examples/dpdk-skeleton (55bed6cbb000+0x23b39f) [55bed6ef=
639f]<br>2: examples/dpdk-skeleton (55bed6cbb000+0x239211) [55bed6ef4211]<b=
r>3: examples/dpdk-skeleton (main+0xf) [55bed70ac51f]<br>4: /lib/x86_64-lin=
ux-gnu/libc.so.6 (7fbde5fb2000+0x29d90) [7fbde5fdbd90]<br>5: /lib/x86_64-li=
nux-gnu/libc.so.6 (__libc_start_main+0x80) [7fbde5fdbe40]<br>6: examples/dp=
dk-skeleton (_start+0x25) [55bed7b86055]<br>rte_bus_probe, file ../lib/eal/=
common/eal_common_bus.c, bus-&gt;name auxiliary<br>rte_bus_probe, file ../l=
ib/eal/common/eal_common_bus.c, bus-&gt;name dpaa_bus<br>rte_bus_probe, fil=
e ../lib/eal/common/eal_common_bus.c, bus-&gt;name fslmc<br>rte_bus_probe, =
file ../lib/eal/common/eal_common_bus.c, bus-&gt;name ifpga<br>rte_bus_prob=
e, file ../lib/eal/common/eal_common_bus.c, bus-&gt;name pci<br>pci_probe, =
file ../drivers/bus/pci/pci_common.c, dev-&gt;name 0000:00:01.1<br>pci_prob=
e, file ../drivers/bus/pci/pci_common.c, dev-&gt;name 0000:00:02.0<br>pci_p=
robe, file ../drivers/bus/pci/pci_common.c, dev-&gt;name 0000:00:03.0<br>pc=
i_probe, file ../drivers/bus/pci/pci_common.c, dev-&gt;name 0000:00:04.0<br=
>pci_probe, file ../drivers/bus/pci/pci_common.c, dev-&gt;name 0000:00:05.0=
<br>pci_probe, file ../drivers/bus/pci/pci_common.c, dev-&gt;name 0000:00:0=
6.0<br>pci_probe, file ../drivers/bus/pci/pci_common.c, dev-&gt;name 0000:0=
0:07.0<br>pci_probe, file ../drivers/bus/pci/pci_common.c, dev-&gt;name 000=
0:00:08.0<br>rte_pci_map_device, file ../drivers/bus/pci/linux/pci.c, rte_p=
ci_device-&gt;name 0000:00:08.0, dev-&gt;kdrv 0<br>pci_probe, file ../drive=
rs/bus/pci/pci_common.c, dev-&gt;name 0000:00:0d.0<br>rte_bus_probe, file .=
./lib/eal/common/eal_common_bus.c, bus-&gt;name vmbus<br>rte_bus_probe, fil=
e ../lib/eal/common/eal_common_bus.c, bus-&gt;name dsa<br>rte_bus_probe, fi=
le ../lib/eal/common/eal_common_bus.c, vbus-&gt;name vdev<br>vdev_probe, fi=
le ../drivers/bus/vdev/vdev.c, PROBE, &amp;vdev_device_list 0x55bed8764d30<=
br>vdev_probe, file ../drivers/bus/vdev/vdev.c, dev is (nil)<br>TELEMETRY: =
No legacy callbacks, legacy socket not created<br>main, file ../examples/sk=
eleton/basicfwd.c, nb_ports 0<br>EAL: Error - exiting with code: 1<br>=C2=
=A0 Cause: Error: number of ports must be even</span></font></div><div><fon=
t size=3D"2"><span style=3D"font-family:monospace"><br></span></font></div>=
<div><font size=3D"2"><span style=3D"font-family:arial,sans-serif">Verghis<=
br></span></font></div></div></div>
</blockquote></div>

--000000000000ea387005f9a54eb0--