Re: [dpdk-users] [dpdk-dev] Reg DPDK with unsupported NIC
On Wed, 15 Mar 2017 04:45:03 + Bruce Richardson wrote: > On Tue, Mar 14, 2017 at 12:07:42PM +, Ferruh Yigit wrote: > > On 3/14/2017 9:28 AM, raman geetha gopalakrishnan wrote: > > > Hi , > > > > > > Please find my query, Currently i am planning to develop DPDK APP (linux > > > env). I do not have DPDK supported NIC. Till then i would still like to > > > develop DPDK APP and want DPDK to use OS interface to TX/RX packets from > > > NIC. How can i make it? > > > > > I went through KNI and my understanding is you > > > cannot use it - is this correct? > > > > You can use it. KNI does not require a physical device at all. > > > > But with the KNI support in main tree, you need to use KNI specific > > APIs, - which KNI sample app shows. > > > > With the KNI PMD in next-net tree, it is possible to use KNI as any > > other device. > > > > Just my 2c. While you can indeed use KNI here, I think I would recommend > pcap or AF_PACKET as my first-choice options, with TAP also a > possibility too, as Keith has already suggested. > > /Bruce Other than development environment, why would you want to use DPDK with AF_PACKET or TAP? It will be slower than kernel networking and with KNI doubly slow.
Re: [dpdk-users] [dpdk-dev] Reg DPDK with unsupported NIC
On Tue, Mar 14, 2017 at 12:07:42PM +, Ferruh Yigit wrote: > On 3/14/2017 9:28 AM, raman geetha gopalakrishnan wrote: > > Hi , > > > > Please find my query, Currently i am planning to develop DPDK APP (linux > > env). I do not have DPDK supported NIC. Till then i would still like to > > develop DPDK APP and want DPDK to use OS interface to TX/RX packets from > > NIC. How can i make it? > > > I went through KNI and my understanding is you > > cannot use it - is this correct? > > You can use it. KNI does not require a physical device at all. > > But with the KNI support in main tree, you need to use KNI specific > APIs, - which KNI sample app shows. > > With the KNI PMD in next-net tree, it is possible to use KNI as any > other device. > Just my 2c. While you can indeed use KNI here, I think I would recommend pcap or AF_PACKET as my first-choice options, with TAP also a possibility too, as Keith has already suggested. /Bruce
Re: [dpdk-users] Only building certain DPDK components?
On Tue, Mar 14, 2017 at 10:34 AM, Ferruh Yigit wrote: > It is possible to use %_sub target to build specific component, like: > "make lib/librte_eal_sub" will only compile eal library. > This requires config done, and dependent libraries built in advance. > Can be used for all components, like "make drivers/net/null_sub" > > A component can be excluded from build via config file: > "make T=... config" will create config file (build/.config by default) > it is possible to edit it and disable components, via setting "=n" > Thanks! *Alex Forster* Network Engineer, Linode
Re: [dpdk-users] Only building certain DPDK components?
On 3/14/2017 2:18 PM, Alex Forster wrote: > Hi all, my google-fu is failing me. > > Is it possible (supported) in the current build system to skip building > apps and tests, and to only build certain libs – skipping > librte_cmdline/librte_cfgfile, for instance? It is possible to use %_sub target to build specific component, like: "make lib/librte_eal_sub" will only compile eal library. This requires config done, and dependent libraries built in advance. Can be used for all components, like "make drivers/net/null_sub" A component can be excluded from build via config file: "make T=... config" will create config file (build/.config by default) it is possible to edit it and disable components, via setting "=n" > > *Alex Forster* > Network Engineer, Linode >
[dpdk-users] Only building certain DPDK components?
Hi all, my google-fu is failing me. Is it possible (supported) in the current build system to skip building apps and tests, and to only build certain libs – skipping librte_cmdline/librte_cfgfile, for instance? *Alex Forster* Network Engineer, Linode
Re: [dpdk-users] [dpdk-dev] Reg DPDK with unsupported NIC
On 3/14/2017 9:28 AM, raman geetha gopalakrishnan wrote: > Hi , > > Please find my query, Currently i am planning to develop DPDK APP (linux > env). I do not have DPDK supported NIC. Till then i would still like to > develop DPDK APP and want DPDK to use OS interface to TX/RX packets from > NIC. How can i make it? > I went through KNI and my understanding is you > cannot use it - is this correct? You can use it. KNI does not require a physical device at all. But with the KNI support in main tree, you need to use KNI specific APIs, - which KNI sample app shows. With the KNI PMD in next-net tree, it is possible to use KNI as any other device. > > In what way i can still develop DPDK APP with non supported NIC till get > the DPDK NIC. > > Thanks > Raman >
Re: [dpdk-users] [dpdk-dev] Reg DPDK with unsupported NIC
Thanks Keith For the quick Reply. On Tue, Mar 14, 2017 at 3:22 PM, Wiles, Keith wrote: > > > Sent from my iPhone > > > On Mar 14, 2017, at 5:29 PM, raman geetha gopalakrishnan < > glowing...@gmail.com> wrote: > > > > Hi , > > > > Please find my query, Currently i am planning to develop DPDK APP (linux > > env). I do not have DPDK supported NIC. Till then i would still like to > > develop DPDK APP and want DPDK to use OS interface to TX/RX packets from > > NIC. How can i make it? I went through KNI and my understanding is you > > cannot use it - is this correct? > > > > In what way i can still develop DPDK APP with non supported NIC till get > > the DPDK NIC. > > Take a look at the TAP PMD driver and look at the doc file in the doc > directory. > > It will not be high performance but it can work nicely using tap and some > like socat. > > > > Thanks > > Raman >
Re: [dpdk-users] [dpdk-dev] Reg DPDK with unsupported NIC
Thanks Monjalon For the quick reply. On Tue, Mar 14, 2017 at 3:16 PM, Thomas Monjalon wrote: > 2017-03-14 14:58, raman geetha gopalakrishnan: > > In what way i can still develop DPDK APP with non supported NIC till get > > the DPDK NIC. > > You should check the bottom of this page (section Ohers): > http://dpdk.org/doc/nics > The simplest is to use the ring PMD which do not require a NIC at all. > Or you can try the other solutions (pcap, tap, af_packet). >
Re: [dpdk-users] [dpdk-dev] Reg DPDK with unsupported NIC
Sent from my iPhone > On Mar 14, 2017, at 5:29 PM, raman geetha gopalakrishnan > wrote: > > Hi , > > Please find my query, Currently i am planning to develop DPDK APP (linux > env). I do not have DPDK supported NIC. Till then i would still like to > develop DPDK APP and want DPDK to use OS interface to TX/RX packets from > NIC. How can i make it? I went through KNI and my understanding is you > cannot use it - is this correct? > > In what way i can still develop DPDK APP with non supported NIC till get > the DPDK NIC. Take a look at the TAP PMD driver and look at the doc file in the doc directory. It will not be high performance but it can work nicely using tap and some like socat. > > Thanks > Raman
Re: [dpdk-users] [dpdk-dev] Reg DPDK with unsupported NIC
2017-03-14 14:58, raman geetha gopalakrishnan: > In what way i can still develop DPDK APP with non supported NIC till get > the DPDK NIC. You should check the bottom of this page (section Ohers): http://dpdk.org/doc/nics The simplest is to use the ring PMD which do not require a NIC at all. Or you can try the other solutions (pcap, tap, af_packet).
[dpdk-users] Reg DPDK with unsupported NIC
Hi , Please find my query, Currently i am planning to develop DPDK APP (linux env). I do not have DPDK supported NIC. Till then i would still like to develop DPDK APP and want DPDK to use OS interface to TX/RX packets from NIC. How can i make it? I went through KNI and my understanding is you cannot use it - is this correct? In what way i can still develop DPDK APP with non supported NIC till get the DPDK NIC. Thanks Raman