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 82598A0350 for ; Thu, 27 Jan 2022 09:16:37 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 4D99142727; Thu, 27 Jan 2022 09:16:37 +0100 (CET) Received: from server907.appriver.com (server907e.appriver.com [204.232.250.40]) by mails.dpdk.org (Postfix) with ESMTP id C2BBD40040 for ; Mon, 24 Jan 2022 18:44:15 +0100 (CET) X-Note: This Email was scanned by AppRiver SecureTide X-Note-AR-ScanTimeLocal: 01/24/2022 12:44:15 PM X-Note: SecureTide Build: 1/11/2022 7:29:34 PM UTC (2.19.16.0) X-Note: Filtered by 10.246.1.75 X-Note-AR-Scan: None - PIPE Received: by server907.appriver.com (CommuniGate Pro PIPE 6.2.15) with PIPE id 190645144; Mon, 24 Jan 2022 12:44:15 -0500 Received: from [10.246.0.39] (HELO smtp.us.exg7.exghost.com) by server907.appriver.com (CommuniGate Pro SMTP 6.2.15) with ESMTPS id 190645114; Mon, 24 Jan 2022 12:44:10 -0500 Received: from E16DN38B-S1E7.exg7.exghost.local (192.168.244.51) by E16DN66A-S1E7.exg7.exghost.local (192.168.245.160) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.1.2375.17; Mon, 24 Jan 2022 12:43:35 -0500 Received: from E16DN38B-S1E7.exg7.exghost.local ([192.168.244.51]) by E16DN38B-S1E7.exg7.exghost.local ([192.168.244.51]) with mapi id 15.01.2375.017; Mon, 24 Jan 2022 12:43:36 -0500 From: Sindhura Bandi To: PATRICK KEROULAS CC: "users@dpdk.org" , Venugopal Thacahappilly Subject: Re: Trouble bringing up dpdk testpmd with Mellanox ports Thread-Topic: Trouble bringing up dpdk testpmd with Mellanox ports Thread-Index: AQHYB6LXoVgEN7vKZEqg/LWWeCrUK6xnwnQAgArBtN0= Date: Mon, 24 Jan 2022 17:43:35 +0000 Message-ID: <325bfb23ee5849bb90b69b837b412403@certesnetworks.com> References: , In-Reply-To: Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [106.208.118.220] x-rerouted-by-exchange: MIME-Version: 1.0 Content-Language: en-US Content-Type: multipart/alternative; boundary="_000_325bfb23ee5849bb90b69b837b412403certesnetworkscom_" X-Note: This Email was scanned by AppRiver SecureTide X-Note-AR-ScanTimeLocal: 01/24/2022 12:44:10 PM X-Note: SecureTide Build: 1/11/2022 7:29:34 PM UTC (2.19.16.0) X-Note: Filtered by 10.246.1.75 X-Policy: certesnetworks.com X-Primary: certesnetworks.com@certesnetworks.com X-Note-Sender: sindhura.bandi@certesnetworks.com X-Note-Envelope-Recip: FAILURE,DELAY, X-Note-Envelope-Recip: FAILURE,DELAY, X-Virus-Scan: V- X-Note-SnifferID: 0 X-GBUdb-Analysis: 1, 192.168.244.51, Ugly c=0.600371 p=-0.958702 Source Normal X-Signature-Violations: 0-0-0-26496-c X-Note-419: 15.6255 ms. Fail:0 Chk:1434 of 1434 total X-Note: VSCH-CT/SI: 0-1434/SG:1 1/24/2022 12:43:29 PM X-Note: Spam Tests Failed: X-Country-Path: India->PRIVATE->PRIVATE-> X-Note-Sending-IP: 10.246.0.39 X-Note-Reverse-DNS: X-Note-Return-Path: sindhura.bandi@certesnetworks.com X-Note: User Rule Hits: X-Note: Global Rule Hits: G916 G918 G919 G920 G921 G939 G940 G941 G1384 X-Note: Encrypt Rule Hits: X-Note: Mail Class: VALID X-Mailman-Approved-At: Thu, 27 Jan 2022 09:16:36 +0100 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 --_000_325bfb23ee5849bb90b69b837b412403certesnetworkscom_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Hi, Thank you for the response. I tried what you suggested, but with the same result. ################## root@debian-10:~/dpdk-18.11/myinstall# ./bin/testpmd -l 10-12 -w 82:00.0 = -- --total-num-mbufs 1025 ./bin/testpmd: error while loading shared libraries: librte_pmd_bond.so.2.1= : cannot open shared object file: No such file or directory root@debian-10:~/dpdk-18.11/myinstall# export LD_LIBRARY_PATH=3D/root/dpdk-= 18.11/myinstall/share/dpdk/x86_64-native-linuxapp-gcc/lib root@debian-10:~/dpdk-18.11/myinstall# ./bin/testpmd -l 10-12 -w 82:00.0 = -- --total-num-mbufs 1025 EAL: Detected 24 lcore(s) EAL: Detected 2 NUMA nodes EAL: Multi-process socket /var/run/dpdk/rte/mp_socket EAL: No free hugepages reported in hugepages-1048576kB EAL: Probing VFIO support... testpmd: No probed ethernet devices testpmd: create a new mbuf pool : n=3D1025, size=3D2176= , socket=3D0 testpmd: preferred mempool ops selected: ring_mp_mc testpmd: create a new mbuf pool : n=3D1025, size=3D2176= , socket=3D1 testpmd: preferred mempool ops selected: ring_mp_mc Done No commandline core given, start packet forwarding io packet forwarding - ports=3D0 - cores=3D0 - streams=3D0 - NUMA support e= nabled, MP allocation mode: native io packet forwarding packets/burst=3D32 nb forwarding cores=3D1 - nb forwarding ports=3D0 Press enter to exit #################### -Sindhu ________________________________ From: PATRICK KEROULAS Sent: Monday, January 17, 2022 11:26:18 AM To: Sindhura Bandi Cc: users@dpdk.org; Venugopal Thacahappilly Subject: Re: Trouble bringing up dpdk testpmd with Mellanox ports Hello, Try without `--no-pci` in your testpmd command. On Sun, Jan 16, 2022 at 6:08 AM Sindhura Bandi wrote: > > Hi, > > > I'm trying to bring up dpdk-testpmd application using Mellanox connectX-5= ports. With a custom built dpdk, testpmd is not able to detect the ports. > > > OS & Kernel: > > Linux debian-10 4.19.0-17-amd64 #1 SMP Debian 4.19.194-2 (2021-06-21) x86= _64 GNU/Linux > > The steps followed: > > Installed MLNX_OFED_LINUX-4.9-4.0.8.0-debian10.0-x86_64 (./mlnxofedinstal= l --skip-distro-check --upstream-libs --dpdk) > Downloaded dpdk-18.11 source, and built it after making following changes= in config > > CONFIG_RTE_LIBRTE_MLX5_PMD=3Dy > CONFIG_RTE_TEST_PMD_RECORD_CORE_CYCLES=3Dy > CONFIG_RTE_BUILD_SHARED_LIB=3Dy > > When I run testpmd, it is not recognizing any Mellanox ports > > > ######### > root@debian-10:~/dpdk-18.11/myinstall# ./bin/testpmd -l 1-3 -w 82:00.0 -= -no-pci -- --total-num-mbufs 1025 > EAL: Detected 24 lcore(s) > EAL: Detected 2 NUMA nodes > EAL: Multi-process socket /var/run/dpdk/rte/mp_socket > EAL: No free hugepages reported in hugepages-1048576kB > EAL: Probing VFIO support... > testpmd: No probed ethernet devices > testpmd: create a new mbuf pool : n=3D1025, size=3D21= 76, socket=3D0 > testpmd: preferred mempool ops selected: ring_mp_mc > testpmd: create a new mbuf pool : n=3D1025, size=3D21= 76, socket=3D1 > testpmd: preferred mempool ops selected: ring_mp_mc > Done > No commandline core given, start packet forwarding > io packet forwarding - ports=3D0 - cores=3D0 - streams=3D0 - NUMA support= enabled, MP allocation mode: native > > io packet forwarding packets/burst=3D32 > nb forwarding cores=3D1 - nb forwarding ports=3D0 > Press enter to exit > ########## > > root@debian-10:~# lspci | grep Mellanox > 82:00.0 Ethernet controller: Mellanox Technologies MT28800 Family [Connec= tX-5 Ex] > 82:00.1 Ethernet controller: Mellanox Technologies MT28800 Family [Connec= tX-5 Ex] > root@debian-10:~# ibv_devinfo > hca_id: mlx5_0 > transport: InfiniBand (0) > fw_ver: 16.28.4512 > node_guid: b8ce:f603:00f2:7952 > sys_image_guid: b8ce:f603:00f2:7952 > vendor_id: 0x02c9 > vendor_part_id: 4121 > hw_ver: 0x0 > board_id: DEL0000000004 > phys_port_cnt: 1 > port: 1 > state: PORT_ACTIVE (4) > max_mtu: 4096 (5) > active_mtu: 1024 (3) > sm_lid: 0 > port_lid: 0 > port_lmc: 0x00 > link_layer: Ethernet > > hca_id: mlx5_1 > transport: InfiniBand (0) > fw_ver: 16.28.4512 > node_guid: b8ce:f603:00f2:7953 > sys_image_guid: b8ce:f603:00f2:7952 > vendor_id: 0x02c9 > vendor_part_id: 4121 > hw_ver: 0x0 > board_id: DEL0000000004 > phys_port_cnt: 1 > port: 1 > state: PORT_ACTIVE (4) > max_mtu: 4096 (5) > active_mtu: 1024 (3) > sm_lid: 0 > port_lid: 0 > port_lmc: 0x00 > link_layer: Ethernet > > > I'm not sure where I'm going wrong. Any hints will be much appreciated. > > Thanks, > Sindhu --_000_325bfb23ee5849bb90b69b837b412403certesnetworkscom_ Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

Hi,


Thank you for the response.

I tried what you suggested, but with the same result.


##################

root@debian-10:~/dpdk-18.11/myinstall# ./bin/testpmd -l 10-12  -w= 82:00.0  -- --total-num-mbufs 1025
./bin/testpmd: error while loading shared libraries: librte_pmd_bond.so.2.1= : cannot open shared object file: No such file or directory
root@debian-10:~/dpdk-18.11/myinstall# export LD_LIBRARY_PATH=3D/root/dpdk-= 18.11/myinstall/share/dpdk/x86_64-native-linuxapp-gcc/lib
root@debian-10:~/dpdk-18.11/myinstall# ./bin/testpmd -l 10-12  -w 82:0= 0.0  -- --total-num-mbufs 1025
EAL: Detected 24 lcore(s)
EAL: Detected 2 NUMA nodes
EAL: Multi-process socket /var/run/dpdk/rte/mp_socket
EAL: No free hugepages reported in hugepages-1048576kB
EAL: Probing VFIO support...
testpmd: No probed ethernet devices
testpmd: create a new mbuf pool <mbuf_pool_socket_0>: n=3D1025, size= =3D2176, socket=3D0
testpmd: preferred mempool ops selected: ring_mp_mc
testpmd: create a new mbuf pool <mbuf_pool_socket_1>: n=3D1025, size= =3D2176, socket=3D1
testpmd: preferred mempool ops selected: ring_mp_mc
Done
No commandline core given, start packet forwarding
io packet forwarding - ports=3D0 - cores=3D0 - streams=3D0 - NUMA support e= nabled, MP allocation mode: native

  io packet forwarding packets/burst=3D32
  nb forwarding cores=3D1 - nb forwarding ports=3D0
Press enter to exit
####################

-Sindhu


From: PATRICK KEROULAS &l= t;patrick.keroulas@radio-canada.ca>
Sent: Monday, January 17, 2022 11:26:18 AM
To: Sindhura Bandi
Cc: users@dpdk.org; Venugopal Thacahappilly
Subject: Re: Trouble bringing up dpdk testpmd with Mellanox ports
 
Hello,
Try without `--no-pci` in your testpmd command.

On Sun, Jan 16, 2022 at 6:08 AM Sindhura Bandi
<sindhura.bandi@certesnetworks.com> wrote:
>
> Hi,
>
>
> I'm trying to bring up dpdk-testpmd application using Mellanox connect= X-5 ports. With a custom built dpdk, testpmd is not able to detect the port= s.
>
>
> OS & Kernel:
>
> Linux debian-10 4.19.0-17-amd64 #1 SMP Debian 4.19.194-2 (2021-06-21) = x86_64 GNU/Linux
>
> The steps followed:
>
> Installed MLNX_OFED_LINUX-4.9-4.0.8.0-debian10.0-x86_64 (./mlnxofedins= tall --skip-distro-check --upstream-libs --dpdk)
> Downloaded dpdk-18.11 source, and built it after making following chan= ges in config
>
>            CONF= IG_RTE_LIBRTE_MLX5_PMD=3Dy
>            CONF= IG_RTE_TEST_PMD_RECORD_CORE_CYCLES=3Dy
>            CONF= IG_RTE_BUILD_SHARED_LIB=3Dy
>
> When I run testpmd, it is not recognizing any Mellanox ports
>
>
> #########
> root@debian-10:~/dpdk-18.11/myinstall# ./bin/testpmd -l 1-3  -w 8= 2:00.0 --no-pci -- --total-num-mbufs 1025
> EAL: Detected 24 lcore(s)
> EAL: Detected 2 NUMA nodes
> EAL: Multi-process socket /var/run/dpdk/rte/mp_socket
> EAL: No free hugepages reported in hugepages-1048576kB
> EAL: Probing VFIO support...
> testpmd: No probed ethernet devices
> testpmd: create a new mbuf pool <mbuf_pool_socket_0>: n=3D1025, = size=3D2176, socket=3D0
> testpmd: preferred mempool ops selected: ring_mp_mc
> testpmd: create a new mbuf pool <mbuf_pool_socket_1>: n=3D1025, = size=3D2176, socket=3D1
> testpmd: preferred mempool ops selected: ring_mp_mc
> Done
> No commandline core given, start packet forwarding
> io packet forwarding - ports=3D0 - cores=3D0 - streams=3D0 - NUMA supp= ort enabled, MP allocation mode: native
>
>   io packet forwarding packets/burst=3D32
>   nb forwarding cores=3D1 - nb forwarding ports=3D0
> Press enter to exit
> ##########
>
> root@debian-10:~# lspci | grep Mellanox
> 82:00.0 Ethernet controller: Mellanox Technologies MT28800 Family [Con= nectX-5 Ex]
> 82:00.1 Ethernet controller: Mellanox Technologies MT28800 Family [Con= nectX-5 Ex]
> root@debian-10:~# ibv_devinfo
> hca_id:    mlx5_0
>     transport:      =       InfiniBand (0)
>     fw_ver:      &nb= sp;         16.28.4512
>     node_guid:      =       b8ce:f603:00f2:7952
>     sys_image_guid:     &= nbsp;      b8ce:f603:00f2:7952
>     vendor_id:      =       0x02c9
>     vendor_part_id:     &= nbsp;      4121
>     hw_ver:      &nb= sp;         0x0
>     board_id:      &= nbsp;     DEL0000000004
>     phys_port_cnt:     &n= bsp;      1
>         port:   = ; 1
>            = ; state:            = PORT_ACTIVE (4)
>            = ; max_mtu:        4096 (5)
>            = ; active_mtu:        1024 (3)
>            = ; sm_lid:           = 0
>            = ; port_lid:        0
>            = ; port_lmc:        0x00
>            = ; link_layer:        Ethernet
>
> hca_id:    mlx5_1
>     transport:      =       InfiniBand (0)
>     fw_ver:      &nb= sp;         16.28.4512
>     node_guid:      =       b8ce:f603:00f2:7953
>     sys_image_guid:     &= nbsp;      b8ce:f603:00f2:7952
>     vendor_id:      =       0x02c9
>     vendor_part_id:     &= nbsp;      4121
>     hw_ver:      &nb= sp;         0x0
>     board_id:      &= nbsp;     DEL0000000004
>     phys_port_cnt:     &n= bsp;      1
>         port:   = ; 1
>            = ; state:            = PORT_ACTIVE (4)
>            = ; max_mtu:        4096 (5)
>            = ; active_mtu:        1024 (3)
>            = ; sm_lid:           = 0
>            = ; port_lid:        0
>            = ; port_lmc:        0x00
>            = ; link_layer:        Ethernet
>
>
> I'm not sure where I'm going wrong. Any hints will be much appreciated= .
>
> Thanks,
> Sindhu

--_000_325bfb23ee5849bb90b69b837b412403certesnetworkscom_--