DPDK usage discussions
 help / color / mirror / Atom feed
* [dpdk-users] Difficulty With rte_eal_init()
@ 2016-03-18 21:45 Cliff Burdick
  2016-03-18 21:56 ` Matthew Hall
  2016-03-20  6:16 ` gowrishankar
  0 siblings, 2 replies; 10+ messages in thread
From: Cliff Burdick @ 2016-03-18 21:45 UTC (permalink / raw)
  To: users

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?

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2016-03-30 22:40 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-03-18 21:45 [dpdk-users] Difficulty With rte_eal_init() 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
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

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).