DPDK usage discussions
 help / color / mirror / Atom feed
From: gowrishankar <gowrishankar.m@linux.vnet.ibm.com>
To: Cliff Burdick <shaklee3@gmail.com>
Cc: users@dpdk.org
Subject: Re: [dpdk-users] Difficulty With rte_eal_init()
Date: Sun, 20 Mar 2016 11:46:51 +0530	[thread overview]
Message-ID: <56EE4053.9060306@linux.vnet.ibm.com> (raw)
In-Reply-To: <CA+Gp1nbABoY7NZ0GXx1Co0cFqUk-1OMKB9T1T2z1JA7QCLnTaQ@mail.gmail.com>

Trying CONFIG_RTE_BUILD_SHARED_LIB=y and calling eal_plugin_add() for 
your dpdk driver .so
could solve this ?.

Regards,
Gowrishankar

On Saturday 19 March 2016 03:15 AM, Cliff Burdick wrote:
> 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?
>

  parent reply	other threads:[~2016-03-20  6:17 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-03-18 21:45 Cliff Burdick
2016-03-18 21:56 ` Matthew Hall
2016-03-18 23:40   ` Cliff Burdick
2016-03-19  2:45     ` Matthew Hall
2016-03-20  6:16 ` gowrishankar [this message]
2016-03-29 21:16   ` Cliff Burdick
2016-03-29 21:30     ` Matthew Hall
2016-03-30  7:49       ` Van Haaren, Harry
2016-03-30 14:16       ` Cliff Burdick
2016-03-30 22:40         ` Matthew Hall

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=56EE4053.9060306@linux.vnet.ibm.com \
    --to=gowrishankar.m@linux.vnet.ibm.com \
    --cc=shaklee3@gmail.com \
    --cc=users@dpdk.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).