DPDK usage discussions
 help / color / mirror / Atom feed
From: "Wiles, Keith" <keith.wiles@intel.com>
To: Kushal Gautam <kushal.gautam@gmail.com>
Cc: "users@dpdk.org" <users@dpdk.org>
Subject: Re: [dpdk-users] Query: decouple the driver and library components
Date: Tue, 19 Sep 2017 21:19:17 +0000	[thread overview]
Message-ID: <7C1F117E-40E8-4D5E-BC5A-80A4E91F532C@intel.com> (raw)
In-Reply-To: <CAGv3bDd3+g6uuFxoLYeD2sCb1h0yTF+F1nEdq6npmTc=HaoL0A@mail.gmail.com>


> On Sep 19, 2017, at 3:52 PM, Kushal Gautam <kushal.gautam@gmail.com> wrote:
> 
> Hi:
> 
> I am new to DPDK. I had been looking at the i40e driver implementation of
> DPDK. I see that the code is entirely revamped as compared to the original
> i40e-driver.
> 
> My query is that is it possible for me to use this i40e driver(in dpdk
> source code package) without other non-essential dependencies or in plain
> words, can I decouple these components ? I am more interested in the
> pollmode driver. My concern was on the jitter introduced by regular
> drivers. I did modify the original i40e driver for this, but things did not
> work out as I wanted to.
> 
> I understand that this driver package depends on various other libraries
> that are bundled with the source code. So, could I decouple these
> components ( for example; the libraries and the driver module) ?

DPDK PMDs are not standalone drivers and do require a fair number of DPDK headers and libraries. The i40e I believe does have core set of files that are generic across a number of OSes and systems. Intel provides the core code and DPDK PMD integrates with this core code by writing the DPDK PMD routines. I guess it is possible to take the core code and try to integrate to that level. As for taking the DPDK PMD as is will not be a simple task IMHO.

DPDK does provide external memory management for hardware and software designs in the mempool, which could allow you to add you memory allocation and your mbuf like wrapper around that memory. This was why it was added to DPDK to help developers with their own system to pull in DPDK for the PMDs.

Some parts of DPDK are kind of standalone, but no effort has been done to make them completely standalone libraries. IMO making it completely standalone set of libraries will add overhead (reduce performance) and a lot pain for the developers/users of DPDK integrate existing designs.

> 
> Any information on this would be very helpful.
> 
> Thanks,
> Kushal.

Regards,
Keith

      reply	other threads:[~2017-09-19 21:19 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-09-19 20:52 Kushal Gautam
2017-09-19 21:19 ` Wiles, Keith [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=7C1F117E-40E8-4D5E-BC5A-80A4E91F532C@intel.com \
    --to=keith.wiles@intel.com \
    --cc=kushal.gautam@gmail.com \
    --cc=users@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).