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 3DD74A0471 for ; Tue, 13 Aug 2019 06:09:19 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 63FEC1B952; Tue, 13 Aug 2019 06:09:18 +0200 (CEST) Received: from mail-vk1-f195.google.com (mail-vk1-f195.google.com [209.85.221.195]) by dpdk.org (Postfix) with ESMTP id AA5D91B94A for ; Tue, 13 Aug 2019 06:09:15 +0200 (CEST) Received: by mail-vk1-f195.google.com with SMTP id x20so701801vkd.6 for ; Mon, 12 Aug 2019 21:09:15 -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=/1nMmvtIw4jeaFTUC58Wo3NEB2pduqrZogRuIKM0FZo=; b=XjfLUcWtrKwp8EIX/3sTvyASAq1D3TDK1u7PwhvHt0lPpn1gTErj/xWe1ZdB29MbgG hTcJHSWQrER1MrgWF3JjmjkTTindMJ05nUwPzLvKSTv31jtc/fqmLZ29ieEbei/axQUp 3alFciJfTua3YPtb+zF9LFWr9Yrnps2t/llVToqNMhxWaSt+x806gSngCHEkv0c+k3Z4 2kql0W44AD9obYWPu8+1kO/jvE0UP0xvQK/9L+npcKoRbLrO2NY4f2yn5JG39To8HRnd dGlMzWatTdibV2edPyHMwDfd4hIVbn0M32PYl7BvMNYbkNB+LvOq0MUf+1zU4/L7tS1T /YPw== 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=/1nMmvtIw4jeaFTUC58Wo3NEB2pduqrZogRuIKM0FZo=; b=P/O8wVw/jPOED97MMafrR9ADDoSbpHGICCPhADPxRuikaI1Zz47pZrkqmhQ1DQVBi7 ltFgd/IDfi5DCKhTeiHIhQ716QICH0q8VUpJRYWpfBlKZNq1L3jMZqry07LIlxwn5O/C u7uNt/eq3krrePJpDTsiOLF5uphqoB2EM4AfQpydxAuFDoHSLSw7oLdO3GaaGSLdJi4X OP1BemFaxF3fbQglMNDjPf4tlvS65x4xJsSLP7OjKwVX2NemryrpsPi+AyNuffRoGtBd EUJscdlTlQLZyqom1WXST6G95b1BkvgH4LD3l0c8pN8LbRFM/+tMc/GKnuK+vry/ORej g/lA== X-Gm-Message-State: APjAAAUZFWkE8S+bfvyQtQPOxkANTtcQL+m0N8ImU07vaN1T+ZuhD/4J 07XazYtZvg7RZAeS/fZ0tJvaorlaKS8qMik2i9Qb5rmniIA= X-Google-Smtp-Source: APXvYqxVn6F2mdrOQwLdcJ48k1xVsLgqeH9E61FXa7yNRPqwAtkIRMfhxP76pxbsSAw5w7vksaOOIk1TnZ7xfd8TJms= X-Received: by 2002:a1f:3146:: with SMTP id x67mr3245951vkx.47.1565669354596; Mon, 12 Aug 2019 21:09:14 -0700 (PDT) MIME-Version: 1.0 From: vikram T Date: Tue, 13 Aug 2019 09:39:03 +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] DPDK failes to initailze on VMXNet3 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, When initialing the DPDK failed with the Below error on VMXNet3: *Aug 9 14:05:34 vprobe rat_dpdk_sniffer[10768]: EAL: Probing VFIO support...Aug 9 14:05:34 vprobe rat_dpdk_sniffer[10768]: EAL: PCI device 0000:02:00.0 on NUMA socket -1Aug 9 14:05:34 vprobe rat_dpdk_sniffer[10768]: EAL: Invalid NUMA socket, default to 0Aug 9 14:05:34 vprobe rat_dpdk_sniffer[10768]: EAL: probe driver: 8086:100f net_e1000_emAug 9 14:05:34 vprobe rat_dpdk_sniffer[10768]: EAL: PCI device 0000:03:00.0 on NUMA socket 0Aug 9 14:05:34 vprobe kernel: igb_uio 0000:03:00.0: uio device registered with irq 58Aug 9 14:05:34 vprobe rat_dpdk_sniffer[10768]: EAL: probe driver: 15ad:7b0 net_vmxnet3Aug 9 14:05:34 vprobe rat_dpdk_sniffer[10768]: PANIC in rte_eth_dev_shared_data_prepare():Aug 9 14:05:34 vprobe rat_dpdk_sniffer[10768]: Cannot allocate ethdev shared data* With the BackTrace pointing to : *(gdb) bt#0 0x00007ffff54612c7 in raise () from /lib64/libc.so.6#1 0x00007ffff54629b8 in abort () from /lib64/libc.so.6#2 0x00000000004eab34 in __rte_panic ()#3 0x000000000050cbf8 in rte_eth_dev_shared_data_prepare ()#4 0x000000000050de1c in rte_eth_dev_allocate ()#5 0x0000000000667025 in eth_vmxnet3_pci_probe ()#6 0x00000000005b4178 in pci_probe_all_drivers ()#7 0x00000000005b42bc in rte_pci_probe ()#8 0x000000000053642c in rte_bus_probe ()#9 0x00000000005242ee in rte_eal_init ()#10 0x00000000006c24c7 in rat::dpdk::init (cfg=...) at ../../rat/src/sniffer/dpdk_utils.cc:71* The sample application testpmd was running successfully: *[root@vprobe test-pmd]# ./testpmd -l 0-3 -n 4 -- -i --portmask=0x1 --nb-cores=2EAL: Detected 16 lcore(s)EAL: Detected 4 NUMA nodesEAL: Multi-process socket /var/run/dpdk/rte/mp_socketEAL: No free hugepages reported in hugepages-2048kBEAL: No free hugepages reported in hugepages-2048kBEAL: Probing VFIO support...EAL: PCI device 0000:02:00.0 on NUMA socket -1EAL: Invalid NUMA socket, default to 0EAL: probe driver: 8086:100f net_e1000_emEAL: PCI device 0000:03:00.0 on NUMA socket 0EAL: probe driver: 15ad:7b0 net_vmxnet3Interactive-mode selectedtestpmd: create a new mbuf pool : n=171456, size=2176, socket=0testpmd: preferred mempool ops selected: ring_mp_mcWarning! port-topology=paired and odd forward ports number, the last port will pair with itself.Configuring Port 0 (socket 0)Port 0: 00:0C:29:36:B2:F1Checking link statuses...Donetestpmd> startio packet forwarding - ports=1 - cores=1 - streams=1 - NUMA support enabled, MP allocation mode: nativeLogical Core 1 (socket 0) forwards packets on 1 streams: RX P=0/Q=0 (socket 0) -> TX P=0/Q=0 (socket 0) peer=02:00:00:00:00:00* Additionally I observed that on this virtual machine file *"/sys/bus/pci/devices/0000:03:00.0/numa_node"* is set as -1 and when sample application are run the programs detects 4 NUMA Nodes. But on any other physical machine it is properly set to appropriate numa_node. It would be of great help if I get pointers on why the initialization fails here. Regards Vikram