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 623E2A0032 for ; Thu, 1 Sep 2022 09:34:07 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id EB30840684; Thu, 1 Sep 2022 09:34:06 +0200 (CEST) Received: from mail-vk1-f169.google.com (mail-vk1-f169.google.com [209.85.221.169]) by mails.dpdk.org (Postfix) with ESMTP id 6EEC340395 for ; Thu, 1 Sep 2022 09:34:05 +0200 (CEST) Received: by mail-vk1-f169.google.com with SMTP id t82so5641785vkb.6 for ; Thu, 01 Sep 2022 00:34:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=argonnetech.net; s=google; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date; bh=G6HWKRGGGQW8kutxnpFJqNPZG116PJBlk1Yxaw4wZNU=; b=AiN/CUea1P2bxtpoNFZd1BtFGe3WrPxTwS78qchWZx9DgNyNAjt4wPSGMDSi9jIfeS SQdJFdiufca/tmTcS0ZtivKM3b3fbBSxrXhEs8MCFb/+WS5Ume6V5y26or396m2OPmsp bv3mIfQ5OBW+d1q9TkAUTs7w+5Q9BUxH2SfIX7IfC8TOSI3s5aPZbH7VdjXEyLId24Ua Ph9T9abG6gw507OZ2r7q6d6sycZ4A+wh5+JvVrmdmlk3jXtSztB8x8/CW3cJ19Yjcz8c iquBZeXWVAUaBuFiNnuFkogDn4cXFc9aPTkvEGLo1i06u9X5hsOLY5RrIQTUiN8yOVVn 4uiA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date; bh=G6HWKRGGGQW8kutxnpFJqNPZG116PJBlk1Yxaw4wZNU=; b=r1RxFocIVN2Z/AnXSe8fcEsTndGzp4resdxl2VotNX+iDv6/E/OdUNfggcvqpMyDX5 zooX0XqiDcxbXWZWPQSlV2NVUMn8EVS6+LyP+erTX3v0W8/DG6ioBO9EXiGoEC7OKdFU 5crLm+S+FlxidRXg8oTBqcDk1tJZx2nhNnHfOu1xyS11VR3vJ69P/meXZGIZDHzuNjhQ 8fikCalZ6HsxuIbhOI9NA/QPzwIgfEIWosNJU2IvN5G7C0DkC+8g2TH/9bCy/mYUVd7U nzqJXFIWHNMKhx9P5j7QAEph9SpfkclDdGSS7RNK/Qy5PenESpEmOxKmWQC1KcsmI3Ro OcHQ== X-Gm-Message-State: ACgBeo132GLWV93SJPF3L9hz3VcBTJDuodriQBATpR2j+Tm5ozzLmhkl TM20pBIHfGztVncGRYJtv9382IfUp7QvV11uYSaNCh0+j9KQZ3Ma X-Google-Smtp-Source: AA6agR5Pp9+K7+Pir6q6juTYXGqwezsGiG19UQPy7j+2IlWLVwCo9C13HzZ6F3hQFE4imUYpk0qSq7PaK8cLFOYutqY= X-Received: by 2002:ac5:c9aa:0:b0:394:ddbb:f8b2 with SMTP id f10-20020ac5c9aa000000b00394ddbbf8b2mr619132vkm.25.1662017644650; Thu, 01 Sep 2022 00:34:04 -0700 (PDT) MIME-Version: 1.0 References: <20220831182546.228d64a3@hermes.local> In-Reply-To: <20220831182546.228d64a3@hermes.local> From: Anna Tauzzi Date: Thu, 1 Sep 2022 09:33:54 +0200 Message-ID: Subject: Re: Initializing and starting port on primary but transmitting on secondary I get port not ready To: stephen@networkplumber.org Cc: users@dpdk.org Content-Type: multipart/alternative; boundary="00000000000051f60005e798a39e" 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 --00000000000051f60005e798a39e Content-Type: text/plain; charset="UTF-8" I'm using the Mellanox Connect X5: pci@0000:3b:00.0 enp59s0f0np0 network MT27800 Family [ConnectX-5] pci@0000:3b:00.1 enp59s0f1np1 network MT27800 Family [ConnectX-5] pci@0000:3b:00.2 enp59s0f0v0 network MT27800 Family [ConnectX-5 Virtual Function] pci@0000:3b:00.3 enp59s0f0v1 network MT27800 Family [ConnectX-5 Virtual Function] pci@0000:3b:00.4 enp59s0f0v2 network MT27800 Family [ConnectX-5 Virtual Function] pci@0000:3b:00.5 enp59s0f0v3 network MT27800 Family [ConnectX-5 Virtual Function] pci@0000:3b:04.2 enp59s0f1v0 network MT27800 Family [ConnectX-5 Virtual Function] pci@0000:3b:04.3 enp59s0f1v1 network MT27800 Family [ConnectX-5 Virtual Function] pci@0000:3b:04.4 enp59s0f1v2 network MT27800 Family [ConnectX-5 Virtual Function] pci@0000:3b:04.5 enp59s0f1v3 network MT27800 Family [ConnectX-5 Virtual Function] This is the message: lcore 6 called tx_pkt_burst for not ready port 0 8: [/lib/x86_64-linux-gnu/libc.so.6(+0x126a00) [0x7ffff7c77a00]] 7: [/lib/x86_64-linux-gnu/libc.so.6(+0x94b43) [0x7ffff7be5b43]] 6: [/usr/local/lib/librte_eal.so.22(+0x1559a) [0x7ffff7d8e59a]] 5: [build/simple_eth_tx_mp(+0x1a0c7) [0x55555556e0c7]] 4: [build/simple_eth_tx_mp(+0x19f89) [0x55555556df89]] 3: [build/simple_eth_tx_mp(+0x423c) [0x55555555823c]] 2: [/usr/local/lib/librte_ethdev.so.22(+0x7cbc) [0x7ffff7eb3cbc]] 1: [/usr/local/lib/librte_eal.so.22(rte_dump_stack+0x32) [0x7ffff7daf152]] I'm having all sorts of problems with this Mellanox stuff, Intel cards are much more user friendly. Just to recap: * configure on primary and transmit on primary ---> GOOD * configure on secondary and transmit on secondary ---> SIGSEGV Thread 4 "lcore-worker-6" received signal SIGSEGV, Segmentation fault. [Switching to Thread 0x7ffff4346640 (LWP 7208)] rte_eth_tx_burst (port_id=0, queue_id=0, tx_pkts=0x7ffff4344ac0, nb_pkts=1) at /usr/local/include/rte_ethdev.h:5650 5650 qd = p->txq.data[queue_id]; (gdb) print p->txq $2 = {data = 0x0, clbk = 0x7ffff7f21528 } (data is NULL) * configure on primary and transmit on secondary ---> PORT NOT READY Do you know who should be notified of this problem? Should I open a bug on DPDK bugzilla or file it to NVIDIA? Thx. Il giorno gio 1 set 2022 alle ore 03:25 Stephen Hemminger < stephen@networkplumber.org> ha scritto: > On Wed, 31 Aug 2022 22:59:56 +0200 > Anna Tauzzi wrote: > > > I initialize a port with the following methods on a primary process: > > > > rte_dev_probe(vf) > > > > rte_eth_dev_configure(port_id, ... ); > > > > rte_eth_dev_adjust_nb_rx_tx_desc(port_id, ... ); > > > > rte_eth_rx_queue_setup(port_id, .... ); > > > > rte_eth_tx_queue_setup(port_id, ... ); > > > > rte_eth_dev_start(port_id ... ); > > > > > > > > Then I use the rte_eth_tx_burst(port_id) in the secondary process but I > get > > this message: > > > > called tx_pkt_burst for not ready port 0 > > > > Is this expected? > > No looks like a device driver bug. Which PMD? > --00000000000051f60005e798a39e Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
I'm using the Mellanox Connect X5:

pci@00= 00:3b:00.0 =C2=A0enp59s0f0np0 =C2=A0 network =C2=A0 =C2=A0 =C2=A0 =C2=A0MT2= 7800 Family [ConnectX-5]
pci@0000:3b:00.1 =C2=A0enp59s0f1np1 =C2=A0 netw= ork =C2=A0 =C2=A0 =C2=A0 =C2=A0MT27800 Family [ConnectX-5]
pci@0000:3b:0= 0.2 =C2=A0enp59s0f0v0 =C2=A0 =C2=A0network =C2=A0 =C2=A0 =C2=A0 =C2=A0MT278= 00 Family [ConnectX-5 Virtual Function]
pci@0000:3b:00.3 =C2=A0enp59s0f0= v1 =C2=A0 =C2=A0network =C2=A0 =C2=A0 =C2=A0 =C2=A0MT27800 Family [ConnectX= -5 Virtual Function]
pci@0000:3b:00.4 =C2=A0enp59s0f0v2 =C2=A0 =C2=A0net= work =C2=A0 =C2=A0 =C2=A0 =C2=A0MT27800 Family [ConnectX-5 Virtual Function= ]
pci@0000:3b:00.5 =C2=A0enp59s0f0v3 =C2=A0 =C2=A0network =C2=A0 =C2=A0 = =C2=A0 =C2=A0MT27800 Family [ConnectX-5 Virtual Function]
pci@0000:3b:04= .2 =C2=A0enp59s0f1v0 =C2=A0 =C2=A0network =C2=A0 =C2=A0 =C2=A0 =C2=A0MT2780= 0 Family [ConnectX-5 Virtual Function]
pci@0000:3b:04.3 =C2=A0enp59s0f1v= 1 =C2=A0 =C2=A0network =C2=A0 =C2=A0 =C2=A0 =C2=A0MT27800 Family [ConnectX-= 5 Virtual Function]
pci@0000:3b:04.4 =C2=A0enp59s0f1v2 =C2=A0 =C2=A0netw= ork =C2=A0 =C2=A0 =C2=A0 =C2=A0MT27800 Family [ConnectX-5 Virtual Function]=
pci@0000:3b:04.5 =C2=A0enp59s0f1v3 =C2=A0 =C2=A0network =C2=A0 =C2=A0 = =C2=A0 =C2=A0MT27800 Family [ConnectX-5 Virtual Function]
This is the message:
lcore 6 called tx_pkt_burst for = not ready port 0
8: [/lib/x86_64-linux-gnu/libc.so.6(+0x126a00) [0x7ffff= 7c77a00]]
7: [/lib/x86_64-linux-gnu/libc.so.6(+0x94b43) [0x7ffff7be5b43]= ]
6: [/usr/local/lib/librte_eal.so.22(+0x1559a) [0x7ffff7d8e59a]]
5: = [build/simple_eth_tx_mp(+0x1a0c7) [0x55555556e0c7]]
4: [build/simple_eth= _tx_mp(+0x19f89) [0x55555556df89]]
3: [build/simple_eth_tx_mp(+0x423c) [= 0x55555555823c]]
2: [/usr/local/lib/librte_ethdev.so.22(+0x7cbc) [0x7fff= f7eb3cbc]]
1: [/usr/local/lib/librte_eal.so.22(rte_dump_stack+0x32) [0x7= ffff7daf152]]

I'm having all sorts of prob= lems with this Mellanox stuff, Intel cards are much more user friendly.=C2= =A0

Just to recap:
* configure on primar= y and transmit on primary=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0---> G= OOD

* configure on secondary and transmit on secon= dary=C2=A0 ---> SIGSEGV=C2=A0=C2=A0
Thread 4 "lcore-worke= r-6" received signal SIGSEGV, Segmentation fault.
[Switching to Thr= ead 0x7ffff4346640 (LWP 7208)]
rte_eth_tx_burst (port_id=3D0, queue_id= =3D0, tx_pkts=3D0x7ffff4344ac0, nb_pkts=3D1) at /usr/local/include/rte_ethd= ev.h:5650
5650 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0qd =3D p->txq= .data[queue_id];=C2=A0
(gdb) print p->txq
$2 =3D {data = =3D 0x0, clbk =3D 0x7ffff7f21528 <rte_eth_devices+8296>} (data is NUL= L)


* configure on primary and t= ransmit on secondary=C2=A0 =C2=A0 =C2=A0 =C2=A0---> PORT NOT READY
=

Do you know who should be notified of this problem? Sho= uld I open a bug on DPDK bugzilla or file it to=C2=A0NVIDIA?

=
Thx.



Il giorno gio 1 se= t 2022 alle ore 03:25 Stephen Hemminger <stephen@networkplumber.org> ha scritto:
On Wed, 31 Aug 2022 22:59:56 = +0200
Anna Tauzzi <= admin@argonnetech.net> wrote:

> I initialize a port with the following methods on a primary process: >
> rte_dev_probe(vf)
>
> rte_eth_dev_configure(port_id, ... );
>
> rte_eth_dev_adjust_nb_rx_tx_desc(port_id, ... );
>
> rte_eth_rx_queue_setup(port_id, .... );
>
> rte_eth_tx_queue_setup(port_id, ... );
>
> rte_eth_dev_start(port_id ... );
>
>
>
> Then I use the rte_eth_tx_burst(port_id) in the secondary process but = I get
> this message:
>
> called tx_pkt_burst for not ready port 0
>
> Is this expected?

No looks like a device driver bug. Which PMD?
--00000000000051f60005e798a39e--