DPDK patches and discussions
 help / color / mirror / Atom feed
From: Bruce Richardson <bruce.richardson@intel.com>
To: Pedro Sousa <pgsousa@gmail.com>
Cc: dev@dpdk.org
Subject: Re: [dpdk-dev] newbie dpdk linux interfaces clarification
Date: Tue, 29 Sep 2015 12:12:08 +0100	[thread overview]
Message-ID: <20150929111208.GA6748@bricha3-MOBL3> (raw)
In-Reply-To: <CA+E02ZD6rWGfDNYwio2=VF2qS80nFgjZ-PQdbHzjDGtY_ST5Fg@mail.gmail.com>

On Mon, Sep 28, 2015 at 09:12:36PM +0100, Pedro Sousa wrote:
> Hi all,
> 
> I'm looking at dpdk the first time, so I would like someone could clarify
> me a little more about it.
> 
> I'm using a KVM Virtualized Guest that runs CentOS 7.1. I'm using SRIOV
> with bnx2x driver. When I bind my interface, as you can see below, to DPKD
> Driver igb_uio, I lose the interface control in linux.
> 
> My question is:
> 
> - Can use it normally on the operating system and how this is done?

Unfortunately not. An interface is either being used by the operating system
or by userspace (DPDK). It cannot be used by both at the same time. 

> 
> - Can I use it only on my app? And if so, how do I bind an ip from this
> dpdk interface to my app?

An IP address implies the presence of an IP stack. The DPDK libraries work
just on ethernet frames, and it's up to your app to provide an IP stack, and
therefore an IP address if it needs one.

Hope this clarifies things a bit for you.

Regards,
/Bruce

> 
> 
> *# ./dpdk_nic_bind.py --status*
> 
> *Network devices using DPDK-compatible driver*
> *============================================*
> *0000:00:08.0 'NetXtreme II BCM57810 10 Gigabit Ethernet Virtual Function'
> drv=igb_uio unused=vfio-pci,uio_pci_generic*
> 
> *Network devices using kernel driver*
> *===================================*
> *0000:00:07.0 'NetXtreme II BCM57810 10 Gigabit Ethernet Virtual Function'
> if=ens7 drv=bnx2x unused=igb_uio,vfio-pci,uio_pci_generic *Active**
> 
> 
> Thank you,
> Pedro Sousa

      reply	other threads:[~2015-09-29 11:12 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-09-28 20:12 Pedro Sousa
2015-09-29 11:12 ` Bruce Richardson [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=20150929111208.GA6748@bricha3-MOBL3 \
    --to=bruce.richardson@intel.com \
    --cc=dev@dpdk.org \
    --cc=pgsousa@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).