From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id B0DDDA317C for ; Thu, 17 Oct 2019 15:07:23 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 7A3E21C0CE; Thu, 17 Oct 2019 15:07:23 +0200 (CEST) Received: from mail-vs1-f44.google.com (mail-vs1-f44.google.com [209.85.217.44]) by dpdk.org (Postfix) with ESMTP id 2E6E81C0CC for ; Thu, 17 Oct 2019 15:07:22 +0200 (CEST) Received: by mail-vs1-f44.google.com with SMTP id s7so1547302vsl.2 for ; Thu, 17 Oct 2019 06:07:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=Bg768RtrOBQav6K5Jv2Otwl2anzyOl3r+HOZWMMK9HE=; b=JXZiY21CwEJWHI2280lcBHcA/sZM3cDHRwdEGfGQTQsVpig461auRjYCpvfyKT0Yp6 zQbAdMBrpjkfAZP8tkmpvR4ON40SAlNfS3a9uuIk+RZSy5NlTgE53iSuCZFJTcH+iXAh p5hih3J1aLZeGu8YwqRscomXTXk/0THl+IVGmBh22hTDOZHWtuHJXAQ5ZIlMQP4HVHc3 sf2xOk2w1GIsa0Hy7RmmgBEqHDfZGOP/CSwBO4mf/RauqBRISFohc/eMncg6oyCOD4Td qJSzRE1GAuiIBcFKY/3LLXvqUAv4q8vqyy9sc/JcERVVrpRO36NpNIH4zeOlfgvWPYLZ 9aUA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=Bg768RtrOBQav6K5Jv2Otwl2anzyOl3r+HOZWMMK9HE=; b=eL12VOSnOhoOfP/esKJ7wm9eSOMLeWk72JqELNVweBw0TWk/K1pWUe97MecIVF5Y0X PM7AsA0iMM8wjhUXEapifrg/hvMiTamRXmSFjxUPCaFPDWAXN5xsHaVb9S7a/NMpQmCh GyB5BzksHbGfYHmFzK3AUuesnUAgSG/1isqXR+NWF63s3kdAkbq4jxbh73RP5cN2BP6/ Y5jXvs7vs8jaXpoXGrWvSMbREIGavV+nPHzmuDaitIdOI29zxbzUbhutzu6guEZV2K51 lJQDmnPDJS7nHhTtBIfgeNM9eBrtbJaj5Tj3H1Z5tvfb8xrkwdVXQABMLsf5xF0uJNki BL7A== X-Gm-Message-State: APjAAAWaGFfdfD8kvE2v2StaRHK9MGpkJ1ZWnxHfwAWOeXn5VbHIINuG DuKwcSoGSzIuNkHwfwFqmBDRtNyxyzwkl9HXsqWE4Pp2 X-Google-Smtp-Source: APXvYqwaTxfTTwsn7/84zFbtxEhPdr5YTp/CovJeMj8hUPGw5pJGgycvn1Y2y5p/AJNA2mtL8WUyw35JwxN0DiuddJ8= X-Received: by 2002:a05:6102:253:: with SMTP id a19mr1823597vsq.37.1571317640864; Thu, 17 Oct 2019 06:07:20 -0700 (PDT) MIME-Version: 1.0 From: vikram T Date: Thu, 17 Oct 2019 18:37:09 +0530 Message-ID: To: dev@dpdk.org Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.15 Subject: [dpdk-dev] rte_eth_dev_count_avail() returns 0 with the MLX5 NIC card X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" Hi, I am facing an issue with rte_eth_dev_count_avail() returns 0 on the MLX5 NIC card. "dpdk-devbind.py -s" says that the interface is bound to mlx5_core. ( Need not be bounded to igb_uio) *# /var/cache/ocsm/dpdk/dpdk-18.11/usertools/dpdk-devbind.py -s* Network devices using kernel driver =================================== 0000:02:00.0 'NetXtreme BCM5720 Gigabit Ethernet PCIe 165f' if=em1 drv=tg3 unused=igb_uio *Active* 0000:02:00.1 'NetXtreme BCM5720 Gigabit Ethernet PCIe 165f' if=em2 drv=tg3 unused=igb_uio 0000:08:00.0 'MT27700 Family [ConnectX-4] 1013' if=p2p1 drv=mlx5_core unused=igb_uio 0000:08:00.1 'MT27700 Family [ConnectX-4] 1013' if=p2p2 drv=mlx5_core unused=igb_uio 0000:41:00.0 'Ethernet Controller X710 for 10GbE SFP+ 1572' if=p1p1 drv=i40e unused=igb_uio 0000:41:00.1 'Ethernet Controller X710 for 10GbE SFP+ 1572' if=p1p2 drv=i40e unused=igb_uio No 'Crypto' devices detected ============================ No 'Eventdev' devices detected ============================== No 'Mempool' devices detected ============================= No 'Compress' devices detected ============================== *# ibv_devinfo* hca_id: mlx5_0 transport: InfiniBand (0) fw_ver: 12.25.1020 node_guid: 506b:4b03:00db:fe0a sys_image_guid: 506b:4b03:00db:fe0a vendor_id: 0x02c9 vendor_part_id: 4115 hw_ver: 0x0 board_id: MT_2150110033 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: 12.25.1020 node_guid: 506b:4b03:00db:fe0b sys_image_guid: 506b:4b03:00db:fe0a vendor_id: 0x02c9 vendor_part_id: 4115 hw_ver: 0x0 board_id: MT_2150110033 phys_port_cnt: 1 port: 1 state: PORT_DOWN (1) max_mtu: 4096 (5) active_mtu: 1024 (3) sm_lid: 0 port_lid: 0 port_lmc: 0x00 link_layer: Ethernet # *mst start* Starting MST (Mellanox Software Tools) driver set Loading MST PCI module - Success Loading MST PCI configuration module - Success Create devices -W- Missing "lsusb" command, skipping MTUSB devices detection Unloading MST PCI module (unused) - Success *# mst status* MST modules: ------------ MST PCI module is not loaded MST PCI configuration module loaded MST devices: ------------ /dev/mst/mt4115_pciconf0 - PCI configuration cycles access. domain:bus:dev.fn=0000:08:00.0 addr.reg=88 data.reg=92 cr_bar.gw_offset=-1 Chip revision is: 00 * # ls -d /sys/class/net/*/device/infiniband_verbs/uverbs* | cut -d / -f 5* p2p1 p2p2 However testpmd works fine here; *# ./testpmd -l 8-15 -n 4 -w 08:00.0 -w 08:00.1 -- --rxq=2 --txq=2 -i* EAL: Detected 32 lcore(s) EAL: Detected 2 NUMA nodes EAL: Multi-process socket /var/run/dpdk/rte/mp_socket EAL: Probing VFIO support... EAL: VFIO support initialized EAL: PCI device 0000:08:00.0 on NUMA socket 0 EAL: probe driver: 15b3:1013 net_mlx5 EAL: PCI device 0000:08:00.1 on NUMA socket 0 EAL: probe driver: 15b3:1013 net_mlx5 Interactive-mode selected testpmd: create a new mbuf pool : n=203456, size=2176, socket=0 testpmd: preferred mempool ops selected: ring_mp_mc testpmd: create a new mbuf pool : n=203456, size=2176, socket=1 testpmd: preferred mempool ops selected: ring_mp_mc Configuring Port 0 (socket 0) Port 0: 50:6B:4B:DB:FE:0A Configuring Port 1 (socket 0) Port 1: 50:6B:4B:DB:FE:0B Checking link statuses... Done testpmd> Killed Is anything missing here for API rte_eth_dev_count_avail() not working here. Guidance to resolve from this blocking issue is much appreciated. Let me know if any other input/info is required. Thanks in advance Regards Vikram