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	[thread overview]
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
https://github.com/rumpkernel/dpdk-rumptcpip/.

and another userland IP stack
http://ipaugenblick.net/

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.

Malveeka

             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:
  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='CAFpzwwP9HWqUAjmfs=hZf7n3kaYKSuKH0hLASH+7SrwJeRSNFA@mail.gmail.com' \
    --to=malveeka@gmail.com \
    --cc=dev@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).