From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-vk0-f47.google.com (mail-vk0-f47.google.com [209.85.213.47]) by dpdk.org (Postfix) with ESMTP id 49E9F2BB4 for ; Fri, 18 Mar 2016 22:45:11 +0100 (CET) Received: by mail-vk0-f47.google.com with SMTP id q138so65498207vkb.3 for ; Fri, 18 Mar 2016 14:45:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to; bh=Qvg/CAZqZf9icvfmUnbtd43uHo1Gb7biZ9fQw6v2VKg=; b=kAaXnDlLdZjWSXlk1CA+yZ6lUZrCtKNVReAyYhb3rOkJfyHvCChQmM+e4Heg8J0iub DzNxWHuat9a4FclkP3uk8g29tBsmnE3IcZ1DWhEAq8Re5amRwcgacsDAT+2RyoJR8kbd 77xNjjmKFpCweqDfd7alcyysGGCRt8rDMFj9OhgajRfmMQ8Ne/DBQN8R09+VNLftUCRt 3uy2kYPID2+i812folNXO3zLDfQmjncSIbvT1AQIqHwIvEx1+mB61HGhMLMur4ennsSR CFTBYoftj2fsRble+m1qBE5329r3bTWJNTXK++Vxjs8BsIhskraEqnz0lC90Q+bKcDfv Yquw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:date:message-id:subject:from:to; bh=Qvg/CAZqZf9icvfmUnbtd43uHo1Gb7biZ9fQw6v2VKg=; b=bPS6CABk3zH4E/g10s2+LUbDzWOU/H+UJ5pAQlpG/27ZQLQFMHAuG4PSS/6s1FbWhz MyWkvVxGOuW+MUCduHP7On5Y5n1tgfsOY8TAjS9kBnGFqfKhuZM1HbEZjb+5tRm041y6 DFiMOfz1KFVk5nwGhq+iXZNANzC6eVW1KoFSy3ERGh4RxV39Kk0lbG9exXoiT1uW1ysP QXQ0QP7OylKZ7NsIRns83pRVLIXdlgUsud25jp6MgWUhT5lbdZ2pENdHCZ2zbnKgNxjS 2roZ3Nr7pUz4VTvItERKmYwpv6ZtFljteiTgmZxxwHvXQiR/CkkrVMbPzfJDhwxrvTjR GL2w== X-Gm-Message-State: AD7BkJKTRFbfBux4LJoAdQGIEp5Wv00kvZDCZeTz59xg9eD9+WOjIRaMkJM4FfgNqIIE0cxLxktOU937nCGUjQ== MIME-Version: 1.0 X-Received: by 10.31.5.134 with SMTP id 128mr19541187vkf.29.1458337510674; Fri, 18 Mar 2016 14:45:10 -0700 (PDT) Received: by 10.176.64.167 with HTTP; Fri, 18 Mar 2016 14:45:10 -0700 (PDT) Date: Fri, 18 Mar 2016 14:45:10 -0700 Message-ID: From: Cliff Burdick To: users@dpdk.org Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.15 Subject: [dpdk-users] Difficulty With rte_eal_init() X-BeenThere: users@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: usage discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 18 Mar 2016 21:45:11 -0000 Hi, I've been trying to create a standalone application linked against DPDK, and I'm having some issues getting the program to run properly. The main problem is that in my standalone app compared to the example code, rte_eal_init() from the example code seems to probe the PCI bus, whereas mine doesn't. Here is a snippet from mine and an example: mine: EAL: Virtual area found at 0x7f93ad000000 (size = 0x200000) EAL: Ask a virtual area of 0x3fc00000 bytes EAL: Virtual area found at 0x7f936d200000 (size = 0x3fc00000) EAL: Ask a virtual area of 0x200000 bytes EAL: Virtual area found at 0x7f936ce00000 (size = 0x200000) EAL: Requesting 512 pages of size 2MB from socket 0 EAL: Requesting 512 pages of size 2MB from socket 1 EAL: TSC frequency is ~2500000 KHz EAL: Master lcore 0 is ready (tid=ef4e6940;cpuset=[0]) EAL: lcore 6 is ready (tid=699ed700;cpuset=[6]) EAL: lcore 7 is ready (tid=691ec700;cpuset=[7]) EAL: lcore 4 is ready (tid=6a9ef700;cpuset=[4]) EAL: lcore 1 is ready (tid=6c1f2700;cpuset=[1]) EAL: lcore 2 is ready (tid=6b9f1700;cpuset=[2]) EAL: lcore 3 is ready (tid=6b1f0700;cpuset=[3]) EAL: lcore 5 is ready (tid=6a1ee700;cpuset=[5]) example: EAL: Requesting 512 pages of size 2MB from socket 1 EAL: TSC frequency is ~2500000 KHz EAL: Master lcore 0 is ready (tid=3019a900;cpuset=[0]) EAL: lcore 6 is ready (tid=aabed700;cpuset=[6]) EAL: lcore 5 is ready (tid=ab3ee700;cpuset=[5]) EAL: lcore 7 is ready (tid=aa3ec700;cpuset=[7]) EAL: lcore 1 is ready (tid=ad3f2700;cpuset=[1]) EAL: lcore 3 is ready (tid=ac3f0700;cpuset=[3]) EAL: lcore 2 is ready (tid=acbf1700;cpuset=[2]) EAL: lcore 4 is ready (tid=abbef700;cpuset=[4]) EAL: PCI device 0000:04:00.0 on NUMA socket 0 EAL: probe driver: 8086:1572 rte_i40e_pmd EAL: Not managed by a supported kernel driver, skipped EAL: PCI device 0000:04:00.1 on NUMA socket 0 EAL: probe driver: 8086:1572 rte_i40e_pmd EAL: Not managed by a supported kernel driver, skipped EAL: PCI device 0000:04:00.2 on NUMA socket 0 ... I even went so far as to port the dpdk part of my C++ code to C, then compile it into a standalone executable with the Makefile copied from an example. Sure enough, this worked and the PCI bus was scanned. However, when I then tried compiling the dpdk part of my app into a library and linking against it from my main program, the PCI scanning goes away and no devices are found. I can't really use the DPDK makefiles easily for my entire program since I'm using automake. Has anyone had this issue?