DPDK patches and discussions
 help / color / mirror / Atom feed
From: Pashupati Kumar <kumarp@Brocade.COM>
To: Jose Gavine Cueto <pepedocs@gmail.com>, "dev@dpdk.org" <dev@dpdk.org>
Subject: Re: [dpdk-dev] kni vs. pmd
Date: Thu, 12 Dec 2013 15:07:39 -0800	[thread overview]
Message-ID: <6895EAE0CA8DEE40B92D7CA88BB521F332BA573240@HQ1-EXCH02.corp.brocade.com> (raw)
In-Reply-To: <CAJ5bv6E+5uhiM5orZ0gZa4ODhgrppRume23otHKGo3BDtwJ8Zg@mail.gmail.com>

> -----Original Message-----
> From: dev [mailto:dev-bounces@dpdk.org] On Behalf Of Jose Gavine Cueto
> Sent: Tuesday, December 10, 2013 3:16 PM
> To: dev@dpdk.org
> Subject: Re: [dpdk-dev] kni vs. pmd
> 
> Additional question:
> 
> Apart from the possible fact that kni performs zero-copy in the driver layer,
> does this also apply on the sockets layer, or does the sockets operations (+
> sys calls) are not avoided ?  This is assuming that the application uses regular
> sockets to read/write to knis.
If you are going to use KNI, there is a copy involved from iovec to RTE mbuf memory ( assuming you are going to use Ring library for communication between DPDK application and KNI). I look at KNI as more for control path operation and PMDs for data path. 
> 
> Cheers,
> Pepe
> 
> 
> On Wed, Dec 11, 2013 at 7:12 AM, Jose Gavine Cueto
> <pepedocs@gmail.com>wrote:
> 
> > Hi,
> >
> > Correct me if I'm wrong, but in a high-level perspective I see that
> > kni is providing an option for applications to use their regular interfaces
> (e.g.
> > sockets) and abstracts the usage of pmds.
> >
> > If this is somehow correct, are there any differences with regard to
> > performance benefits that can be brought between directly using pmd
> > apis and kni ?
> >
> > I see that kni is easier to use, however at first (no code inspection)
> > look, it interfaces with the kernel which might have introduced some
> > overhead.
> >
> > Cheers,
> > Pepe
> >
> >
> > --
> > To stop learning is like to stop loving.
> >
> 
> 
> 
> --
> To stop learning is like to stop loving.

Thanks
Pash

  reply	other threads:[~2013-12-12 23:06 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-12-10 23:12 Jose Gavine Cueto
2013-12-10 23:15 ` Jose Gavine Cueto
2013-12-12 23:07   ` Pashupati Kumar [this message]
2013-12-13  3:11     ` Jose Gavine Cueto

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=6895EAE0CA8DEE40B92D7CA88BB521F332BA573240@HQ1-EXCH02.corp.brocade.com \
    --to=kumarp@brocade.com \
    --cc=dev@dpdk.org \
    --cc=pepedocs@gmail.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).