* [dpdk-users] How allocate IP to NIC binded to DPDK driver (igb)
@ 2019-07-04 9:14 Nilesh Unhale
2019-07-04 14:52 ` Stephen Hemminger
0 siblings, 1 reply; 2+ messages in thread
From: Nilesh Unhale @ 2019-07-04 9:14 UTC (permalink / raw)
To: users; +Cc: diptyaroop
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)
--
Regards,
Nilesh Unhale
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [dpdk-users] How allocate IP to NIC binded to DPDK driver (igb)
2019-07-04 9:14 [dpdk-users] How allocate IP to NIC binded to DPDK driver (igb) Nilesh Unhale
@ 2019-07-04 14:52 ` Stephen Hemminger
0 siblings, 0 replies; 2+ messages in thread
From: Stephen Hemminger @ 2019-07-04 14:52 UTC (permalink / raw)
To: Nilesh Unhale; +Cc: users, diptyaroop
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).
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2019-07-04 14:52 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-07-04 9:14 [dpdk-users] How allocate IP to NIC binded to DPDK driver (igb) Nilesh Unhale
2019-07-04 14:52 ` Stephen Hemminger
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).