DPDK usage discussions
 help / color / mirror / Atom feed
From: Amedeo Sapio <amedeo.sapio@kaust.edu.sa>
To: users@dpdk.org
Subject: [dpdk-users] DPDK application as a library
Date: Tue, 11 Sep 2018 13:49:31 +0300	[thread overview]
Message-ID: <CAMkTTJMBhsBa0XPV9BPpDZU3uoe_61pJ=mPHjdnjG-4wF2pRBg@mail.gmail.com> (raw)

Dear all,
I am writing a program that uses dpdk. I wrote the program based on the
dpdk examples, in particular using the Makefile provided in the examples.
If i compile the program as an APP (as describe here
<https://doc.dpdk.org/guides-18.02/prog_guide/build_app.html>), all goes
well.
However, my code is part of a larger project, for which the use of a
separate makefile causes a lot of troubles.
So I compiled my code as a library, as described in the same page.
Now, the program that calls the functions in the library (to initialize the
EAL) is getting this error:

MBUF: error setting mempool handler
Cannot init mbuf pool

I also made an experiment with the l2fwd example. The example compiled as
an app works correctly. But if I compile it as a library and then I call
the functions in this library from another program, I get:

EAL: Error - exiting with code: 1
  Cause: No Ethernet ports - bye

I have one ethernet port using the igb_uio driver (seen from
dpdk-devbind.py). When I compile my program, I link the following
libraries: dpdk, pthread, dl, numa. DPDK is compiled from source as
described here <https://doc.dpdk.org/guides/linux_gsg/build_dpdk.html>.

Thanks for your help,

---
Amedeo

-- 

This message and its contents, including attachments are intended solely 
for the original recipient. If you are not the intended recipient or have 
received this message in error, please notify me immediately and delete 
this message from your computer system. Any unauthorized use or 
distribution is prohibited. Please consider the environment before printing 
this email.

             reply	other threads:[~2018-09-11 10:50 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-09-11 10:49 Amedeo Sapio [this message]
2018-09-11 14:07 ` Wiles, Keith
2018-09-11 14:56   ` Amedeo Sapio
2018-09-13 15:18     ` Amedeo Sapio
2018-09-13 15:22       ` Wiles, Keith

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='CAMkTTJMBhsBa0XPV9BPpDZU3uoe_61pJ=mPHjdnjG-4wF2pRBg@mail.gmail.com' \
    --to=amedeo.sapio@kaust.edu.sa \
    --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).