DPDK usage discussions
 help / color / mirror / Atom feed
From: arun kumar <arunkumarsit@gmail.com>
To: Masoud Moshref Javadi <masood.moshref.j@gmail.com>
Cc: users@dpdk.org
Subject: Re: [dpdk-users] KNI implementation help needed
Date: Wed, 27 Jan 2016 12:28:14 -0800	[thread overview]
Message-ID: <CAGOgA28ouABGPhPLH-rc=dBmF=x+YqFgTTDOfgJJMXJyhubbRg@mail.gmail.com> (raw)
In-Reply-To: <CAKCrth3HEqw54Sg0N99s_MciA45Km0BoBV-UXHGPE+wTQ5n+=w@mail.gmail.com>

Thanks for your reply !
I used to run KNI in similar manner and I tested KNI sample application.

Came to know the reason behind dpdk0 interface ceration.
I am using mTCP package which contains dpdk integrated it. mTCP team
modified the igb_uio driver code to create dpdk# interfaces when the PCI
address is assigned igb_uio driver. so that's the reason I am seing dpdk0
interface when I run setup.py script and attach a device to igb_uio driver.
The dpdk0 interface will not be created by plain DPDK libraray/driver.

So I think I have to check with mTCP library to remove dependency with
dpdk0 interface to achieve what I need.

On Tue, Jan 26, 2016 at 2:28 AM, Masoud Moshref Javadi <
masood.moshref.j@gmail.com> wrote:

> What command did you use in setup.py to create dpdk0?
> This is how I use kni + dpdk.
> use setup.py to load kni and igb-uio module and connect interface to igb
> uio module
> run kni sample app
>
> On Tue, Jan 26, 2016 at 1:08 AM arun kumar <arunkumarsit@gmail.com> wrote:
>
>> Hi All,
>>
>> I need to integrate the KNI interface into my DPDK application which can
>> redirect the packets to Kernel stack.
>>
>> But the DPDK “setup.py” script already creating one DPDK interface (dpdk0)
>> for the NIC port. Also the KNI interface creates one more logical
>> interface
>> for the same NIC port. The creation of 2 logical interfaces for the same
>> NIC port creates issues in my application when I want to communicate to
>> external client.
>>
>> So I want to use only one interface which can be used by DPDK application
>> and by KNI as well.
>>
>> So, how to integrate KNI into DPDK applications?
>>
>>
>>
>> -Arun
>>
>

      reply	other threads:[~2016-01-27 20:28 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-01-26  9:08 arun kumar
2016-01-26 10:28 ` Masoud Moshref Javadi
2016-01-27 20:28   ` arun kumar [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='CAGOgA28ouABGPhPLH-rc=dBmF=x+YqFgTTDOfgJJMXJyhubbRg@mail.gmail.com' \
    --to=arunkumarsit@gmail.com \
    --cc=masood.moshref.j@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).