DPDK patches and discussions
 help / color / mirror / Atom feed
From: Malveeka Tewari <malveeka@gmail.com>
To: "dev@dpdk.org" <dev@dpdk.org>
Subject: [dpdk-dev] LD_PRELOAD libraries for DPDK to run unmodified applications with DPDK?
Date: Wed, 24 Sep 2014 13:10:32 -0700
Message-ID: <CAFpzwwP9HWqUAjmfs=hZf7n3kaYKSuKH0hLASH+7SrwJeRSNFA@mail.gmail.com> (raw)

Hi all,

I've been trying to run unmodified applications with the DPDK framework.
I used the KNI module and while it allowed me to run stock applications
with DPDK infrastructure, it was not optimized for performance.

There is already a rump-kernel based  TCP/IP stack for DPDK

and another userland IP stack

But these solutions are again too heavy weight.
I am looking for something much simpler -- a lightweight  library that can
intercept the "sendto" calls made by the application (through LD_PRELOAD),
create corresponding rte_mbuf structures from the data buffer and pass it
to the NIC directly using the DPDK API, completely bypassing the kernel.
I realize this bypassing will not work for TCP, but perhaps such an
interposing library can be hooked to a user-space TCP implementation in
order to support TCP.

Does this approach sound reasonable or am I missing something?
And has this been done already?

Any thoughts/suggestions are welcome.


             reply	other threads:[~2014-09-24 20:04 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-09-24 20:10 Malveeka Tewari [this message]
2014-09-24 21:18 ` 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:

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

  git send-email \
    --in-reply-to='CAFpzwwP9HWqUAjmfs=hZf7n3kaYKSuKH0hLASH+7SrwJeRSNFA@mail.gmail.com' \
    --to=malveeka@gmail.com \
    --cc=dev@dpdk.org \


* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

DPDK patches and discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror https://inbox.dpdk.org/dev/0 dev/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 dev dev/ https://inbox.dpdk.org/dev \
	public-inbox-index dev

Example config snippet for mirrors.
Newsgroup available over NNTP:

AGPL code for this site: git clone https://public-inbox.org/public-inbox.git