DPDK patches and discussions
 help / color / mirror / Atom feed
From: Kyle Larose <eomereadig@gmail.com>
To: 张伟 <zhangwqh@126.com>
Cc: dev@dpdk.org
Subject: Re: [dpdk-dev] How kernel can share the mem from dpdk hugepage?
Date: Fri, 2 Oct 2015 09:09:43 -0400	[thread overview]
Message-ID: <CAMFWN9mcVXxrVk_LesyoaCoWKdqo-yh-SKGb-kxFhfyt1VXpMw@mail.gmail.com> (raw)
In-Reply-To: <a61428d.3d5d.150241c131d.Coremail.zhangwqh@126.com>

All of this information is in shared memory, is it not? For example,
you could patch the ring library to give a programmable interface to
the following function:
http://dpdk.org/doc/api/rte__ring_8h.html#a7bfcef0ad324fcc4c03bcb59cd7e867f.
This would allow you to see the full set of rings in a process that
has attached as a secondary to DPDK. Write a process that does this,
and then interfaces with whatever you have running in the kernel.

Ultimately, the architecture is pulling from userspace and pushing
into the kernel, rather than pulling directly from the kernel.

Does that help?

Thanks,

Kyle

On Thu, Oct 1, 2015 at 11:53 AM, 张伟 <zhangwqh@126.com> wrote:
> Hi all,
>
>
> I want to ask does anybody know how kernel can share the info from dpdk hugepage. My project has a requirement which kernel needs to get some info from dpdk application. Eg, in multi-process example, every client has a shared ring buffer with server. The shared ring contains some meta data of packets. Is it possible that dpdk share this info to kernel, then kernel can access it? What are the key points that can help to achieve the goal?

      reply	other threads:[~2015-10-02 13:09 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-10-01 15:53 张伟
2015-10-02 13:09 ` Kyle Larose [this message]

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=CAMFWN9mcVXxrVk_LesyoaCoWKdqo-yh-SKGb-kxFhfyt1VXpMw@mail.gmail.com \
    --to=eomereadig@gmail.com \
    --cc=dev@dpdk.org \
    --cc=zhangwqh@126.com \
    /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).