DPDK usage discussions
 help / color / mirror / Atom feed
* [dpdk-users] Using dpdk libraries without EAL
@ 2018-09-10  8:05 Charles Ju
  2018-09-13 14:45 ` Wiles, Keith
  2018-09-13 14:47 ` Stephen Hemminger
  0 siblings, 2 replies; 5+ messages in thread
From: Charles Ju @ 2018-09-10  8:05 UTC (permalink / raw)
  To: users

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?

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

* Re: [dpdk-users] Using dpdk libraries without EAL
  2018-09-10  8:05 [dpdk-users] Using dpdk libraries without EAL Charles Ju
@ 2018-09-13 14:45 ` Wiles, Keith
  2018-09-13 14:47 ` Stephen Hemminger
  1 sibling, 0 replies; 5+ messages in thread
From: Wiles, Keith @ 2018-09-13 14:45 UTC (permalink / raw)
  To: Charles Ju; +Cc: users



> On Sep 10, 2018, at 3:05 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?

It depends on the code, but I assume it is using the DPDK memory system rte_malloc() and the like.

You will have to replace these calls as the memory subsystem is inited from EAL. Also I assume it maybe calling into other library components and they will have to modified as well.

DPDK is not a collection of functions like libc. The libc library is a collection of functions that are pretty much independent from each other and easy to use in a standalone fashion. DPDK Libraries are not typically written to be standalone as they use other highly optimized routines in DPDK.

It is not to say we should not look at making some parts of DPDK replaceable or be able to be swapped out with other user components. We have done a lot of work to allow external memory managers or hardware based memory in the case of SOCs.


Regards,
Keith

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

* Re: [dpdk-users] Using dpdk libraries without EAL
  2018-09-10  8:05 [dpdk-users] Using dpdk libraries without EAL Charles Ju
  2018-09-13 14:45 ` Wiles, Keith
@ 2018-09-13 14:47 ` Stephen Hemminger
  1 sibling, 0 replies; 5+ messages in thread
From: Stephen Hemminger @ 2018-09-13 14:47 UTC (permalink / raw)
  To: Charles Ju; +Cc: users

On Mon, 10 Sep 2018 16:05:33 +0800
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?

If you are going to extract bits and pieces then you are going to have
to look at the internals of the source code.  And deal with future changes.
I don't think it is fair to developers to expect that cherry picking libraries
will work.

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

* Re: [dpdk-users] Using dpdk libraries without EAL
  2018-09-10  8:20 Charles Ju
@ 2018-09-10 12:38 ` Wiles, Keith
  0 siblings, 0 replies; 5+ messages in thread
From: Wiles, Keith @ 2018-09-10 12:38 UTC (permalink / raw)
  To: Charles Ju; +Cc: users



> 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

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

* [dpdk-users] Using dpdk libraries without EAL
@ 2018-09-10  8:20 Charles Ju
  2018-09-10 12:38 ` Wiles, Keith
  0 siblings, 1 reply; 5+ messages in thread
From: Charles Ju @ 2018-09-10  8:20 UTC (permalink / raw)
  To: users

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?

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

end of thread, other threads:[~2018-09-13 14:47 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-09-10  8:05 [dpdk-users] Using dpdk libraries without EAL Charles Ju
2018-09-13 14:45 ` Wiles, Keith
2018-09-13 14:47 ` Stephen Hemminger
2018-09-10  8:20 Charles Ju
2018-09-10 12:38 ` Wiles, Keith

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