* [dpdk-dev] How to add veth interfaces in dpdk @ 2014-12-12 13:34 Sachin Sharma 2014-12-12 13:41 ` Marc Sune ` (2 more replies) 0 siblings, 3 replies; 5+ messages in thread From: Sachin Sharma @ 2014-12-12 13:34 UTC (permalink / raw) To: dev Hi all, I have created veth interfaces using command "sudo ip link add veth1 type veth peer name veth2". However, when I use command "sudo ./tools/igb_uio_bind.py --force --bind=igb_uio veth1" to add veth into dpdk. It gives me an error that "Unknown device: veth1. Please specify device in "bus:slot.func" format". I do not see even veth interfaces using command "sudo ./tools/igb_uio_bind.py --status". Is there any way that I can add these interfaces into dpdk? Regards, Sachin. ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [dpdk-dev] How to add veth interfaces in dpdk 2014-12-12 13:34 [dpdk-dev] How to add veth interfaces in dpdk Sachin Sharma @ 2014-12-12 13:41 ` Marc Sune 2014-12-12 13:57 ` Sachin Sharma 2014-12-12 15:24 ` Zhou, Danny 2 siblings, 0 replies; 5+ messages in thread From: Marc Sune @ 2014-12-12 13:41 UTC (permalink / raw) To: dev On 12/12/14 14:34, Sachin Sharma wrote: > Hi all, > > I have created veth interfaces using command "sudo ip link add veth1 type > veth peer name veth2". However, when I use command "sudo > ./tools/igb_uio_bind.py --force --bind=igb_uio veth1" to add veth into > dpdk. It gives me an error that "Unknown device: veth1. Please specify > device in "bus:slot.func" format". I do not see even veth interfaces using > command "sudo ./tools/igb_uio_bind.py --status". Is there any way that I > can add these interfaces into dpdk? veth are software interfaces, meaning there is no real NIC behind. That's why you cannot bind them to igb_uio. You can use KNI interfaces for communicating a DPDK application with the kernel interfaces and viceversa. There is an overhead on doing so, but whether this is an appropriate solution or not, depends on your use case. What do you plan to do? Marc > > > Regards, > Sachin. ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [dpdk-dev] How to add veth interfaces in dpdk 2014-12-12 13:34 [dpdk-dev] How to add veth interfaces in dpdk Sachin Sharma 2014-12-12 13:41 ` Marc Sune @ 2014-12-12 13:57 ` Sachin Sharma 2014-12-12 14:10 ` Marc Sune 2014-12-12 15:24 ` Zhou, Danny 2 siblings, 1 reply; 5+ messages in thread From: Sachin Sharma @ 2014-12-12 13:57 UTC (permalink / raw) To: dev, marc.sune Hi Marc, I have limited number of nodes (Linux nodes) in my testbed. So, I wanted to use veth interfaces for creating some of dpdk nodes in my nodes. You said that I can use KNI interfaces for this purpose. I am very new to KNI terminology. Could you please redirect me to a tutorial to create links with KNI interfaces and then adding those KNI interfaces into dpdk? Thanks & Regards, Sachin. On 12/12/14 14:34, Sachin Sharma wrote: >* Hi all, *>>* I have created veth interfaces using command "sudo ip link add veth1 type *>* veth peer name veth2". However, when I use command "sudo *>* ./tools/igb_uio_bind.py --force --bind=igb_uio veth1" to add veth into *>* dpdk. It gives me an error that "Unknown device: veth1. Please specify *>* device in "bus:slot.func" format". I do not see even veth interfaces using *>* command "sudo ./tools/igb_uio_bind.py --status". Is there any way that I *>* can add these interfaces into dpdk? * >veth are software interfaces, meaning there is no real NIC behind. >That's why you cannot bind them to igb_uio. >You can use KNI interfaces for communicating a DPDK application with the >kernel interfaces and viceversa. There is an overhead on doing so, but >whether this is an appropriate solution or not, depends on your use >case. What do you plan to do? >Marc On Fri, Dec 12, 2014 at 2:34 PM, Sachin Sharma <sharonsachin@gmail.com> wrote: > > Hi all, > > I have created veth interfaces using command "sudo ip link add veth1 type > veth peer name veth2". However, when I use command "sudo > ./tools/igb_uio_bind.py --force --bind=igb_uio veth1" to add veth into > dpdk. It gives me an error that "Unknown device: veth1. Please specify > device in "bus:slot.func" format". I do not see even veth interfaces using > command "sudo ./tools/igb_uio_bind.py --status". Is there any way that I > can add these interfaces into dpdk? > > > Regards, > Sachin. > ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [dpdk-dev] How to add veth interfaces in dpdk 2014-12-12 13:57 ` Sachin Sharma @ 2014-12-12 14:10 ` Marc Sune 0 siblings, 0 replies; 5+ messages in thread From: Marc Sune @ 2014-12-12 14:10 UTC (permalink / raw) To: Sachin Sharma, dev On 12/12/14 14:57, Sachin Sharma wrote: > Hi Marc, > I have limited number of nodes (Linux nodes) in my testbed. So, I wanted to use veth interfaces for creating some of dpdk nodes in my nodes. You said that I can use KNI interfaces for this purpose. I am very new to KNI terminology. Could you please redirect me to a tutorial to create links with KNI interfaces and then adding those KNI interfaces into dpdk? For the original problem, you could use qemu VMs with emulated e1000 NICs which are supported by DPDK. This is how we have some development environments here in BISDN. Of course, this is only valid for functional tests, not performance. The KNI documentation is in a section of the DPDK manual. The API is documented here: http://dpdk.org/doc/intel/dpdk-prog-guide-1.7.0.pdf http://dpdk.org/doc/api/rte__kni_8h.html I don't quite get what you meant by "creating links with KNI". KNI interfaces are a bridge between the kernel and the DPDK, meaning a kernel interface (e.g. kni0) will pop up in the kernel, as a regular interface, and from the DPDK zone you can RX and TX from and to it, in a similar way you do in normal eth devices ( using calls rte_kni_rx_burst, rte_kni_tx_burst). Marc > Thanks & Regards, > Sachin. > On 12/12/14 14:34, Sachin Sharma wrote: > >/ Hi all, > />/ > />/ I have created veth interfaces using command "sudo ip link add veth1 type > />/ veth peer name veth2". However, when I use command "sudo > />/ ./tools/igb_uio_bind.py --force --bind=igb_uio veth1" to add veth into > />/ dpdk. It gives me an error that "Unknown device: veth1. Please specify > />/ device in "bus:slot.func" format". I do not see even veth interfaces using > />/ command "sudo ./tools/igb_uio_bind.py --status". Is there any way that I > />/ can add these interfaces into dpdk? > / > >veth are software interfaces, meaning there is no real NIC behind. > >That's why you cannot bind them to igb_uio. > > >You can use KNI interfaces for communicating a DPDK application with the > >kernel interfaces and viceversa. There is an overhead on doing so, but > >whether this is an appropriate solution or not, depends on your use > >case. What do you plan to do? > > >Marc > > > On Fri, Dec 12, 2014 at 2:34 PM, Sachin Sharma <sharonsachin@gmail.com > <mailto:sharonsachin@gmail.com>> wrote: > > Hi all, > > I have created veth interfaces using command "sudo ip link add > veth1 type veth peer name veth2". However, when I use command > "sudo ./tools/igb_uio_bind.py --force --bind=igb_uio veth1" to add > veth into dpdk. It gives me an error that "Unknown device: veth1. > Please specify device in "bus:slot.func" format". I do not see > even veth interfaces using command "sudo ./tools/igb_uio_bind.py > --status". Is there any way that I can add these interfaces into dpdk? > > > Regards, > Sachin. > ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [dpdk-dev] How to add veth interfaces in dpdk 2014-12-12 13:34 [dpdk-dev] How to add veth interfaces in dpdk Sachin Sharma 2014-12-12 13:41 ` Marc Sune 2014-12-12 13:57 ` Sachin Sharma @ 2014-12-12 15:24 ` Zhou, Danny 2 siblings, 0 replies; 5+ messages in thread From: Zhou, Danny @ 2014-12-12 15:24 UTC (permalink / raw) To: Sachin Sharma, dev DPDK does not have PMD to support veth. I guess you might want to try to run DPDK in container, right? If that is the case, you have to assign a NIC's PF or VF to container to be driven by DPDK PMD. > -----Original Message----- > From: dev [mailto:dev-bounces@dpdk.org] On Behalf Of Sachin Sharma > Sent: Friday, December 12, 2014 9:35 PM > To: dev@dpdk.org > Subject: [dpdk-dev] How to add veth interfaces in dpdk > > Hi all, > > I have created veth interfaces using command "sudo ip link add veth1 type > veth peer name veth2". However, when I use command "sudo > ./tools/igb_uio_bind.py --force --bind=igb_uio veth1" to add veth into > dpdk. It gives me an error that "Unknown device: veth1. Please specify > device in "bus:slot.func" format". I do not see even veth interfaces using > command "sudo ./tools/igb_uio_bind.py --status". Is there any way that I > can add these interfaces into dpdk? > > > Regards, > Sachin. ^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2014-12-12 15:24 UTC | newest] Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2014-12-12 13:34 [dpdk-dev] How to add veth interfaces in dpdk Sachin Sharma 2014-12-12 13:41 ` Marc Sune 2014-12-12 13:57 ` Sachin Sharma 2014-12-12 14:10 ` Marc Sune 2014-12-12 15:24 ` Zhou, Danny
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).