[dpdk-dev] [PATCH 06/11] kvargs: simpler parsing and allow duplicated keys

2014-01-29 Thread Olivier MATZ
Hi Bruce, >> Also replace rte_strsplit() by more a standard function strtok_r() that is >> easier to understand for people already knowing the libc. It also avoids >> useless calls to strnlen(). The delimiters macros become strings instead of >> chars due to the strtok_r() API. >> > > As a genera

[dpdk-dev] multiple VLAN IDs for SR-IOV ports

2014-01-29 Thread James Yu
Any one know what commands to use on the KVM host to add multiple VLAN IDs to a SR-IOV port ? I could only add one VLAN ID using ip link set ethN vf NUM vlan VLANID Also do I have to call any routine on the DPDK side to add those VIDs ? James

[dpdk-dev] [ovs-dev] [PATCH RFC] dpif-netdev: Add support Intel DPDK based ports.

2014-01-29 Thread François-Frédéric Ozog
> > First and easy answer: it is open source, so anyone can recompile. So, > > what's the issue? > > I'm talking from a pure distribution perspective here: Requiring to > recompile all DPDK based applications to distribute a bugfix or to add > support for a new PMD is not ideal. > > So ideally O

[dpdk-dev] How to debug packet sends to virtual functions

2014-01-29 Thread Mats Liljegren
I'm trying to get a modified version of the l2fwd example running, and have problems with packets being silently thrown away. I can receive packets, and my printf's indicates that the packets are being sent to the correct port, using correct MAC address as source address. And still, the packets are

[dpdk-dev] [ovs-dev] [PATCH RFC] dpif-netdev: Add support Intel DPDK based ports.

2014-01-29 Thread Thomas Graf
On 01/29/2014 05:34 PM, Vincent JARDIN wrote: > Thomas, > > First and easy answer: it is open source, so anyone can recompile. So, > what's the issue? I'm talking from a pure distribution perspective here: Requiring to recompile all DPDK based applications to distribute a bugfix or to add support

[dpdk-dev] [ovs-dev] [PATCH RFC] dpif-netdev: Add support Intel DPDK based ports.

2014-01-29 Thread Vincent JARDIN
Thomas, First and easy answer: it is open source, so anyone can recompile. So, what's the issue? > Without a concept of stable interfaces, it will be difficult to > package and distribute RTE libraries, PMD, and DPDK applications. Right > now, the obvious path would include packaging the PMD bit

[dpdk-dev] checking packet drop at NIC

2014-01-29 Thread Daniel Kaminsky
Hi Sharath, Try rte_eth_stats_get, I think this should give you what you're looking for. Regards, Daniel On Tue, Jan 28, 2014 at 7:29 AM, Sharath wrote: > hi ! > > can someone please tell me whether the DPDK provides any method to handle > below > > a. account the packet drops at NIC level ? i

[dpdk-dev] [PATCH 06/11] kvargs: simpler parsing and allow duplicated keys

2014-01-29 Thread Richardson, Bruce
> -Original Message- > From: dev [mailto:dev-bounces at dpdk.org] On Behalf Of Olivier Matz > Sent: Tuesday, January 28, 2014 4:07 PM > To: dev at dpdk.org > Subject: [dpdk-dev] [PATCH 06/11] kvargs: simpler parsing and allow > duplicated keys > > Remove the rte_kvargs_add_pair() function

[dpdk-dev] [PATCH 04/11] kvargs: remove useless size field

2014-01-29 Thread Richardson, Bruce
> -Original Message- > From: dev [mailto:dev-bounces at dpdk.org] On Behalf Of Olivier Matz > Sent: Tuesday, January 28, 2014 4:07 PM > To: dev at dpdk.org > Subject: [dpdk-dev] [PATCH 04/11] kvargs: remove useless size field > > This value was not very useful as the size of the table is f

[dpdk-dev] [PATCH 03/11] kvargs: remove driver name in arguments

2014-01-29 Thread Richardson, Bruce
> -Original Message- > From: dev [mailto:dev-bounces at dpdk.org] On Behalf Of Olivier Matz > Sent: Tuesday, January 28, 2014 4:07 PM > To: dev at dpdk.org > Subject: [dpdk-dev] [PATCH 03/11] kvargs: remove driver name in > arguments > > Now that rte_kvargs is a generic library, there is n

[dpdk-dev] [PATCH 02/11] kvargs: use the new library in pmd_pcap

2014-01-29 Thread Richardson, Bruce
> -Original Message- > From: dev [mailto:dev-bounces at dpdk.org] On Behalf Of Olivier Matz > Sent: Tuesday, January 28, 2014 4:07 PM > To: dev at dpdk.org > Subject: [dpdk-dev] [PATCH 02/11] kvargs: use the new library in pmd_pcap > > The rte_kvargs library is a reworked copy of rte_eth_p

[dpdk-dev] [PATCH 01/11] kvargs: add a new library to parse key/value arguments

2014-01-29 Thread Richardson, Bruce
> -Original Message- > From: dev [mailto:dev-bounces at dpdk.org] On Behalf Of Olivier Matz > Sent: Tuesday, January 28, 2014 4:07 PM > To: dev at dpdk.org > Subject: [dpdk-dev] [PATCH 01/11] kvargs: add a new library to parse > key/value arguments > > Copy the code from rte_eth_pcap_arg

[dpdk-dev] FindDPDK.cmake

2014-01-29 Thread Hamid Ramazani
Hi, Anybody has written FindDPDK.cmake? Like those under "/usr/share/cmakeXXX/Modules". All the Best, --Hamid

[dpdk-dev] [PATCH RFC] dpif-netdev: Add support Intel DPDK based ports.

2014-01-29 Thread Prashant Upadhyaya
Hi Pravin, I think your stuff is on the brink of a creating a mini revolution :) Some questions inline below -- +ovs-vsctl add-port br0 dpdk0 -- set Interface dpdk0 type=dpdk What do you mean by portid here, do you mean the physical interface id like eth0 which I have bound to igb_uio now ?

[dpdk-dev] [ovs-dev] [PATCH RFC] dpif-netdev: Add support Intel DPDK based ports.

2014-01-29 Thread Pravin Shelar
On Wed, Jan 29, 2014 at 2:01 AM, Thomas Graf wrote: > On 01/28/2014 02:48 AM, pshelar at nicira.com wrote: >> >> From: Pravin B Shelar >> >> Following patch adds DPDK netdev-class to userspace datapath. >> Approach taken in this patch differs from Intel? DPDK vSwitch >> where DPDK datapath switch

[dpdk-dev] [PATCH RFC] dpif-netdev: Add support Intel DPDK based ports.

2014-01-29 Thread Pravin Shelar
On Wed, Jan 29, 2014 at 12:56 AM, Prashant Upadhyaya wrote: > Hi Pravin, > > I think your stuff is on the brink of a creating a mini revolution :) > > Some questions inline below -- > +ovs-vsctl add-port br0 dpdk0 -- set Interface dpdk0 type=dpdk > What do you mean by portid here, do you mean

[dpdk-dev] [ovs-dev] [PATCH RFC] dpif-netdev: Add support Intel DPDK based ports.

2014-01-29 Thread Thomas Graf
Vincent, On 01/29/2014 11:26 AM, Vincent JARDIN wrote: > DPDK's ABIs are not Kernel's ABIs, they are not POSIX, there is no > standard. Currently, there is no such plan to have a stable ABI since we > need to keep freedom to chase CPU cycles over having a stable ABI. For > instance, some applicati

[dpdk-dev] [PATCH RFC] dpif-netdev: Add support Intel DPDK based ports.

2014-01-29 Thread Pravin Shelar
On Tue, Jan 28, 2014 at 4:15 PM, Vincent JARDIN wrote: > Hi Pravin, > > >>> Few feature questions: >>> >>>- what's about the vNIC supports (toward the guests)? >>>- what's about IPsec support (VxLAN over IPsec for instance)? >>> I do not understand how your patch will solve those 2 cases.

[dpdk-dev] [ovs-dev] [PATCH RFC] dpif-netdev: Add support Intel DPDK based ports.

2014-01-29 Thread Vincent JARDIN
Hi Thomas, On 29/01/2014 09:15, Thomas Graf wrote: > The obvious and usual best practise would be for DPDK to guarantee > ABI stability between minor releases. > > Since dpdk-dev is copied as well, any comments? DPDK's ABIs are not Kernel's ABIs, they are not POSIX, there is no standard. Cu

[dpdk-dev] [ovs-dev] [PATCH RFC] dpif-netdev: Add support Intel DPDK based ports.

2014-01-29 Thread Thomas Graf
On 01/28/2014 02:48 AM, pshelar at nicira.com wrote: > From: Pravin B Shelar > > Following patch adds DPDK netdev-class to userspace datapath. > Approach taken in this patch differs from Intel? DPDK vSwitch > where DPDK datapath switching is done in saparate process. This > patch adds support for

[dpdk-dev] [ovs-dev] [PATCH RFC] dpif-netdev: Add support Intel DPDK based ports.

2014-01-29 Thread Stephen Hemminger
On Wed, 29 Jan 2014 18:14:01 +0100 Thomas Graf wrote: > On 01/29/2014 05:34 PM, Vincent JARDIN wrote: > > Thomas, > > > > First and easy answer: it is open source, so anyone can recompile. So, > > what's the issue? > > I'm talking from a pure distribution perspective here: Requiring to > recompi

[dpdk-dev] [ovs-dev] [PATCH RFC] dpif-netdev: Add support Intel DPDK based ports.

2014-01-29 Thread Thomas Graf
On 01/28/2014 07:17 PM, Pravin Shelar wrote: > Right, version mismatch will not work. API provided by DPDK are not > stable, So OVS has to be built for different releases for now. > > I do not see how we can fix it from OVS side. DPDK needs to > standardize API, Actually OVS also needs more API, li

[dpdk-dev] [PATCH RFC] dpif-netdev: Add support Intel DPDK based ports.

2014-01-29 Thread Vincent JARDIN
Hi Pravin, >> Few feature questions: >>- what's about the vNIC supports (toward the guests)? >>- what's about IPsec support (VxLAN over IPsec for instance)? >> I do not understand how your patch will solve those 2 cases. >> > At this point I wanted to get basic DPDK support in OVS, once t