DPDK usage discussions
 help / color / mirror / Atom feed
From: Stephen Hemminger <stephen@networkplumber.org>
To: Nilesh Unhale <nileshunhale@cse.iitb.ac.in>
Cc: <users@dpdk.org>, <diptyaroop@cse.iitb.ac.in>
Subject: Re: [dpdk-users] How allocate IP to NIC binded to DPDK driver (igb)
Date: Thu, 4 Jul 2019 07:52:07 -0700	[thread overview]
Message-ID: <20190704075207.429045c2@hermes.lan> (raw)
In-Reply-To: <e72a27dea32e7caa61e82a5895ff5555@cse.iitb.ac.in>

On Thu, 04 Jul 2019 14:44:58 +0530
Nilesh Unhale <nileshunhale@cse.iitb.ac.in> wrote:

> Hello,
> 
> We are trying to build an application over DPDK. However, we are facing 
> some issues:
> 
> After binding NIC to DPDK driver (igb_uio), we can not see it in 
> ifconfig -a.
> So, how to bring up that interface and allocate IP to it? We want the 
> interface to be up even after our application is terminated. (Using KNI 
> module which is provided with DPDK, we were able to give ip address 
> which lasts till KNI program is running, but while KNI application is 
> running, we can not run any other application (which uses DPDK)).
> 
> System specification :
> 2 machines with
> Distributor ID:	Ubuntu
> Description:	Ubuntu 16.04.5 LTS
> Release:	16.04
> Codename:	xenial
> 
> Kernel: 4.15.0-29-generic
> DPDK: 19.05.0
> 
> Hardware:
> CPU: Intel(R) Xeon(R) CPU E5-2650 v4 @ 2.20GHz
> 
> NIC 1: Intel Corporation Ethernet Controller XL710 for 40GbE QSFP+ 
> (i40e)
> NIC 2: Intel Corporation I350 Gigabit Network Connection (igb)

Your question relates to understanding what DPDK is (and is not).

The DPDK is a set of routines for processing packets in user space.
It has no direct connection to the Linux kernel, therefore there is no
visible network device once a network interface is bound to DPDK.

There are many ways (KNI, Virtio, TAP) for a DPDK application to
reinject packets to the kernel. These all create pseudo network
devices.

If the majority of your packets need to go into the Linux kernel,
you probably don't want to use DPDK. Instead use the packet processing
features of kernel (netfilter, XDP, qdisc, etc).

      reply	other threads:[~2019-07-04 14:52 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-07-04  9:14 Nilesh Unhale
2019-07-04 14:52 ` Stephen Hemminger [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=20190704075207.429045c2@hermes.lan \
    --to=stephen@networkplumber.org \
    --cc=diptyaroop@cse.iitb.ac.in \
    --cc=nileshunhale@cse.iitb.ac.in \
    --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).