DPDK usage discussions
 help / color / mirror / Atom feed
From: "Wiles, Keith" <keith.wiles@intel.com>
To: Charles Ju <charlesyju@gmail.com>
Cc: "users@dpdk.org" <users@dpdk.org>
Subject: Re: [dpdk-users] Using dpdk libraries without EAL
Date: Mon, 10 Sep 2018 12:38:26 +0000	[thread overview]
Message-ID: <199252A3-8503-40CE-ADB9-3ACF0A9146EE@intel.com> (raw)
In-Reply-To: <CAODH1pfDpdKDnbJRWJTWoSTt9Q56MmvJ2rWdDbj2Qv-QkL7GZQ@mail.gmail.com>



> On Sep 10, 2018, at 3:20 AM, Charles Ju <charlesyju@gmail.com> wrote:
> 
> Hi,
> 
> I have developed my own packet capture code and would like to just use the
> dpdk libraries such as the ACL Library and mempool libraries. In this case,
> does these libraries require the EAL?

There is a number of dependences with mempool, but if you can write your own eal that calls the memory setup then yes you can. The problem is EAL does a lot of initializations for memory, pci and threads and not calling rte_eal_init() means you need to write some code to make sure everything is setup for mempool to work.

If you are going to use the PMDs then you have a bit more work to get them to work as mbufs, rings, buses and a number of other libs all need to be inited. EAL does that work today and breaking those dependences is not easy.

Regards,
Keith

  reply	other threads:[~2018-09-10 12:38 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-09-10  8:20 Charles Ju
2018-09-10 12:38 ` Wiles, Keith [this message]
  -- strict thread matches above, loose matches on Subject: below --
2018-09-10  8:05 Charles Ju
2018-09-13 14:45 ` Wiles, Keith
2018-09-13 14:47 ` Stephen Hemminger

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=199252A3-8503-40CE-ADB9-3ACF0A9146EE@intel.com \
    --to=keith.wiles@intel.com \
    --cc=charlesyju@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).