<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr">
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;font-family:Calibri,Helvetica,sans-serif;" dir="ltr">
<p>Hi,</p>
<p><br>
</p>
<p>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.
<br>
</p>
<p><br>
</p>
<p>OS & Kernel:</p>
<p></p>
<div>Linux debian-10 4.19.0-17-amd64 #1 SMP Debian 4.19.194-2 (2021-06-21) x86_64 GNU/Linux<br>
<br>
The steps followed:</div>
<div>
<ul style="margin-bottom: 0px; margin-top: 0px;">
<li>Installed <span>MLNX_OFED_LINUX-4.9-4.0.8.0-debian10.0-x86_64</span> (<span>./mlnxofedinstall --skip-distro-check --upstream-libs --dpdk</span>)</li><li>Downloaded dpdk-18.11 source, and built it after making following changes in config
<br>
</li></ul>
</div>
<div>
<div>           CONFIG_RTE_LIBRTE_MLX5_PMD=y<br>
           CONFIG_RTE_TEST_PMD_RECORD_CORE_CYCLES=y<br>
           CONFIG_RTE_BUILD_SHARED_LIB=y</div>
<div>
<ul style="margin-bottom: 0px; margin-top: 0px;">
<li>When I run testpmd, it is not recognizing any Mellanox ports  <br>
</li></ul>
<div> </div>
<div>#########<br>
<div>root@debian-10:~/dpdk-18.11/myinstall# ./bin/testpmd -l 1-3  -w 82:00.0 --no-pci -- --total-num-mbufs 1025<br>
EAL: Detected 24 lcore(s)<br>
EAL: Detected 2 NUMA nodes<br>
EAL: Multi-process socket /var/run/dpdk/rte/mp_socket<br>
EAL: No free hugepages reported in hugepages-1048576kB<br>
EAL: Probing VFIO support...<br>
testpmd: No probed ethernet devices<br>
testpmd: create a new mbuf pool <mbuf_pool_socket_0>: n=1025, size=2176, socket=0<br>
testpmd: preferred mempool ops selected: ring_mp_mc<br>
testpmd: create a new mbuf pool <mbuf_pool_socket_1>: n=1025, size=2176, socket=1<br>
testpmd: preferred mempool ops selected: ring_mp_mc<br>
Done<br>
No commandline core given, start packet forwarding<br>
io packet forwarding - ports=0 - cores=0 - streams=0 - NUMA support enabled, MP allocation mode: native<br>
<br>
  io packet forwarding packets/burst=32<br>
  nb forwarding cores=1 - nb forwarding ports=0<br>
Press enter to exit<br>
##########</div>
<div><br>
</div>
<div>
<div>root@debian-10:~# lspci | grep Mellanox<br>
82:00.0 Ethernet controller: Mellanox Technologies MT28800 Family [ConnectX-5 Ex]<br>
82:00.1 Ethernet controller: Mellanox Technologies MT28800 Family [ConnectX-5 Ex]<br>
root@debian-10:~# ibv_devinfo<br>
hca_id:    mlx5_0<br>
    transport:            InfiniBand (0)<br>
    fw_ver:                16.28.4512<br>
    node_guid:            b8ce:f603:00f2:7952<br>
    sys_image_guid:            b8ce:f603:00f2:7952<br>
    vendor_id:            0x02c9<br>
    vendor_part_id:            4121<br>
    hw_ver:                0x0<br>
    board_id:            DEL0000000004<br>
    phys_port_cnt:            1<br>
        port:    1<br>
            state:            PORT_ACTIVE (4)<br>
            max_mtu:        4096 (5)<br>
            active_mtu:        1024 (3)<br>
            sm_lid:            0<br>
            port_lid:        0<br>
            port_lmc:        0x00<br>
            link_layer:        Ethernet<br>
<br>
hca_id:    mlx5_1<br>
    transport:            InfiniBand (0)<br>
    fw_ver:                16.28.4512<br>
    node_guid:            b8ce:f603:00f2:7953<br>
    sys_image_guid:            b8ce:f603:00f2:7952<br>
    vendor_id:            0x02c9<br>
    vendor_part_id:            4121<br>
    hw_ver:                0x0<br>
    board_id:            DEL0000000004<br>
    phys_port_cnt:            1<br>
        port:    1<br>
            state:            PORT_ACTIVE (4)<br>
            max_mtu:        4096 (5)<br>
            active_mtu:        1024 (3)<br>
            sm_lid:            0<br>
            port_lid:        0<br>
            port_lmc:        0x00<br>
            link_layer:        Ethernet<br>
<br>
</div>
<br>
</div>
</div>
</div>
I'm not sure where I'm going wrong. Any hints will be much appreciated.</div>
<div><br>
</div>
<div>Thanks,</div>
<div>Sindhu<br>
</div>
<p></p>
</div>
</body>
</html>