[dpdk-dev] Can not init NIC after merge to DPDK 1.7 problem

2014-09-23 Thread Wang, Shawn
This does resolve the problem. Thank you so much. From: Sanford, Robert [rsanf...@akamai.com] Sent: Tuesday, September 23, 2014 2:50 PM To: Wang, Shawn; dev at dpdk.org Subject: Re: [dpdk-dev] Can not init NIC after merge to DPDK 1.7 problem We ran into a

[dpdk-dev] KNI and memzones

2014-09-23 Thread Marc Sune
Danny, On 23/09/14 18:38, Zhou, Danny wrote: >> -Original Message- >> From: dev [mailto:dev-bounces at dpdk.org] On Behalf Of Jay Rolette >> Sent: Tuesday, September 23, 2014 8:39 PM >> To: Marc Sune >> Cc: ; dev-team at bisdn.de >> Subject: Re: [dpdk-dev] KNI and memzones >> >> *> p.s. La

[dpdk-dev] [PATCH 6/6] i40e: Add full VMDQ pools support

2014-09-23 Thread Chen Jing D(Mark)
From: "Chen Jing D(Mark)" 1. Function i40e_vsi_* name change to i40e_dev_* since PF can contains more than 1 VSI after VMDQ enabled. 2. i40e_dev_rx/tx_queue_setup change to have capability of setup queues that belongs to VMDQ pools. 3. Add queue mapping. This will do a convertion between qu

[dpdk-dev] [PATCH 5/6] i40e: macaddr add/del enhancement

2014-09-23 Thread Chen Jing D(Mark)
From: "Chen Jing D(Mark)" Change i40e_macaddr_add and i40e_macaddr_remove functions to support multiple macaddr add/delete. In the meanwhile, support macaddr ops on different pools. Signed-off-by: Chen Jing D(Mark) Acked-by: Konstantin Ananyev Acked-by: Jingjing Wu Acked-by: Jijiang Liu Acke

[dpdk-dev] [PATCH 4/6] i40e: add VMDQ support

2014-09-23 Thread Chen Jing D(Mark)
From: "Chen Jing D(Mark)" The change includes several parts: 1. Get maximum number of VMDQ pools supported in dev_init. 2. Fill VMDQ info in i40e_dev_info_get. 3. Setup VMDQ pools in i40e_dev_configure. 4. i40e_vsi_setup change to support creation of VMDQ VSI. Signed-off-by: Chen Jing D(Mark) A

[dpdk-dev] [PATCH 3/6] ixgbe: change for VMDQ arguments expansion

2014-09-23 Thread Chen Jing D(Mark)
From: "Chen Jing D(Mark)" Assign new VMDQ arguments with correct values. Signed-off-by: Chen Jing D(Mark) Acked-by: Konstantin Ananyev Acked-by: Jingjing Wu Acked-by: Jijiang Liu Acked-by: Huawei Xie --- lib/librte_pmd_ixgbe/ixgbe_ethdev.c |1 + 1 files changed, 1 insertions(+), 0 dele

[dpdk-dev] [PATCH 2/6] igb: change for VMDQ arguments expansion

2014-09-23 Thread Chen Jing D(Mark)
From: "Chen Jing D(Mark)" Assign new VMDQ arguments with correct values. Signed-off-by: Chen Jing D(Mark) Acked-by: Konstantin Ananyev Acked-by: Jingjing Wu Acked-by: Jijiang Liu Acked-by: Huawei Xie --- lib/librte_pmd_e1000/igb_ethdev.c |3 +++ 1 files changed, 3 insertions(+), 0 dele

[dpdk-dev] [PATCH 1/6] ether: enhancement for VMDQ support

2014-09-23 Thread Chen Jing D(Mark)
From: "Chen Jing D(Mark)" The change includes several parts: 1. Clear pool bitmap when trying to remove specific MAC. 2. Define RSS, DCB and VMDQ flags to combine rx_mq_mode. 3. Use 'struct' to replace 'union', which to expand the rx_adv_conf arguments to better support RSS, DCB and VMDQ. 4. F

[dpdk-dev] [PATCH 0/6] i40e VMDQ support

2014-09-23 Thread Chen Jing D(Mark)
From: "Chen Jing D(Mark)" Define extra VMDQ arguments to expand VMDQ configuration. This also includes change in igb and ixgbe PMD driver. In the meanwhile, fix 2 defects in rte_ether library. Add full VMDQ support in i40e PMD driver. renamed some functions, setup VMDQ VSI after it's enabled in

[dpdk-dev] KNI and memzones

2014-09-23 Thread Zhou, Danny
It looks like a typical network middle box usage with IDS/IPS/DPI sort of functionalities. Good enough performance rather than line-rate performance should be ok for this case, and multi-threaded KNI(multiple software rx/tx queues are established between DPDK and a single vEth netdev with multi

[dpdk-dev] Can not init NIC after merge to DPDK 1.7 problem

2014-09-23 Thread Wang, Shawn
Hi: We are using our own Makefile in building dpdk program. Recently we are working on upgrading from DPDK 1.3 to DPDK 1.7. I found the rte_ixgbe_pmd_init has been replaced by PMD_REGISTER_DRIVER. So I delete rte_ixgbe_pmd_init calls. But after that, our dpdk program could not correctly find th

[dpdk-dev] [PATCH 0/2] introduce dev_ops to get extended statistics of a device

2014-09-23 Thread Thomas Monjalon
2014-07-23 18:41, Richardson, Bruce: > > The generic statistics structure is getting bigger as new statistics are > > added in specific devices. For instance, fdir, tx_pause or loopback > > stats do not apply on virtual devices. It won't be possible to add every > > specific statistics in this gene

[dpdk-dev] [PATCH] eal: remove kni file from bsdapp eal

2014-09-23 Thread Thomas Monjalon
> KNI applies only to linux, so there should be no need for any kni files to > be present in the bsdapp eal folder. > > Signed-off-by: Bruce Richardson Acked-by: Thomas Monjalon Applied Thanks -- Thomas

[dpdk-dev] [PATCH 0/7] cleanup option parsing in bsd/linux eal

2014-09-23 Thread Thomas Monjalon
2014-09-22 08:43, Neil Horman: > On Mon, Sep 22, 2014 at 10:37:54AM +0200, David Marchand wrote: > > Following Neil comments, here is a patchset to rework the eal options > > parsing. > > I tried to have everything common to linux and bsd in a single file. > > > > I ran a little make test on linu

[dpdk-dev] [PATCH 1/4] compat: Add infrastructure to support symbol versioning

2014-09-23 Thread Sergio Gonzalez Monroy
On Tue, Sep 23, 2014 at 10:58:29AM -0400, Neil Horman wrote: > On Tue, Sep 23, 2014 at 11:39:29AM +0100, Sergio Gonzalez Monroy wrote: > > Hi Neil, > > > > On Mon, Sep 15, 2014 at 03:23:48PM -0400, Neil Horman wrote: > > > Add initial pass header files to support symbol versioning. > > > > > > Si

[dpdk-dev] Can not init NIC after merge to DPDK 1.7 problem

2014-09-23 Thread Sanford, Robert
We ran into a similar problem when migrating to 1.7. Here are the subtle flags, in dpdk/mk/rte.app.mk, that we needed: LDLIBS += --whole-archive ... LDLIBS += --no-whole-archive This apparently tells the linker to pull in whole archive(s), even if it thinks that we don't n

[dpdk-dev] KNI and memzones

2014-09-23 Thread Zhou, Danny
> -Original Message- > From: dev [mailto:dev-bounces at dpdk.org] On Behalf Of Jay Rolette > Sent: Tuesday, September 23, 2014 8:39 PM > To: Marc Sune > Cc: ; dev-team at bisdn.de > Subject: Re: [dpdk-dev] KNI and memzones > > *> p.s. Lately someone involved with DPDK said KNI would be de

[dpdk-dev] [PATCH v4 0/5] lib/librte_vhost: user space vhost cuse driver library

2014-09-23 Thread Xie, Huawei
Hi Thomas: Comments to this and the vhost example patch? BR. Huawei > -Original Message- > From: dev [mailto:dev-bounces at dpdk.org] On Behalf Of Huawei Xie > Sent: Friday, September 12, 2014 6:55 PM > To: dev at dpdk.org > Subject: [dpdk-dev] [PATCH v4 0/5] lib/librte_vhost: user space

[dpdk-dev] [PATCH] Change alarm cancel function to thread-safe.

2014-09-23 Thread Michal Jastrzebski
It eliminates a race between threads using rte_alarm_cancel and rte_alarm_set. Signed-off-by: Pawel Wodkowski Reviewed-by: Michal Jastrzebski --- lib/librte_eal/common/include/rte_alarm.h |3 +- lib/librte_eal/linuxapp/eal/eal_alarm.c | 68 +++-- 2 files changed,

[dpdk-dev] Can not init NIC after merge to DPDK 1.7 problem

2014-09-23 Thread Neil Horman
On Tue, Sep 23, 2014 at 06:53:57PM +, Wang, Shawn wrote: > Hi: > > We are using our own Makefile in building dpdk program. Recently we are > working on upgrading from DPDK 1.3 to DPDK 1.7. I found the > rte_ixgbe_pmd_init has been replaced by PMD_REGISTER_DRIVER. So I delete > rte_ixgbe_pmd

[dpdk-dev] KNI and memzones

2014-09-23 Thread Jay Rolette
Yep, good way to describe it. Not really related to network security functions but very similar architecture. On Tue, Sep 23, 2014 at 2:12 PM, Zhou, Danny wrote: > It looks like a typical network middle box usage with IDS/IPS/DPI sort > of functionalities. Good enough performance rather than l

[dpdk-dev] [PATCH v3 5/5] bond: unit test test macro refactor

2014-09-23 Thread Declan Doherty
Signed-off-by: Declan Doherty --- app/test/test_link_bonding.c | 2574 +- 1 files changed, 1036 insertions(+), 1538 deletions(-) diff --git a/app/test/test_link_bonding.c b/app/test/test_link_bonding.c index c32b685..c4fcaf7 100644 --- a/app/test/test_lin

[dpdk-dev] [PATCH v3 4/5] bond: lsc polling support

2014-09-23 Thread Declan Doherty
Adds link status polling functionality to bonding device as well as API to set polling interval and link up / down propagation delay. Also contains unit tests for testing polling functionailty. Signed-off-by: Declan Doherty --- app/test/test.h|7 +- app/test/test

[dpdk-dev] [PATCH v3 3/5] testpmd: adding parameter to reconfig method to set socket_id when adding new port to portlist

2014-09-23 Thread Declan Doherty
Signed-off-by: Declan Doherty --- app/test-pmd/cmdline.c |2 +- app/test-pmd/testpmd.c |3 ++- app/test-pmd/testpmd.h |2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/app/test-pmd/cmdline.c b/app/test-pmd/cmdline.c index 67321f7..ed76eea 100644 --- a/app/test-pmd

[dpdk-dev] [PATCH v3 2/5] test app: adding support for generating variable sized packet

2014-09-23 Thread Declan Doherty
Signed-off-by: Declan Doherty --- app/test/packet_burst_generator.c | 25 - app/test/packet_burst_generator.h |6 +- app/test/test_link_bonding.c | 14 +- 3 files changed, 22 insertions(+), 23 deletions(-) diff --git a/app/test/packet_burst_g

[dpdk-dev] [PATCH v3 1/5] bond: free mbufs if transmission fails in bonding tx_burst functions

2014-09-23 Thread Declan Doherty
Fixing a number of corner cases that if transmission failed on slave devices then this could lead to leaked mbufs Signed-off-by: Declan Doherty --- app/test/test_link_bonding.c | 393 +++- app/test/virtual_pmd.c | 80 +-- app/test/vi

[dpdk-dev] [PATCH v3 0/5] link bonding

2014-09-23 Thread Declan Doherty
This patch set contains a typo fix for the bond free mbufs patch aswell as updates to the test app patch to rebase for changes in the mbuf patches . It also contains a patch to add support for slave devices which don't support link status interrupts and also a patch to tidy up the link bonding unit

[dpdk-dev] [PATCH 0/3] distributor_app: new sample application for distributor library

2014-09-23 Thread Bruce Richardson
On Tue, Sep 16, 2014 at 01:13:24PM +0100, reshmapa wrote: > From: Reshma Pattan > > A new sample app that shows the usage of the distributor library. This > app works as follows: > > *An RX thread runs which pulls packets from each ethernet port in turn > and passes those packets to worker using

[dpdk-dev] KNI and memzones

2014-09-23 Thread Jay Rolette
I can't discuss product details openly yet, but I'm happy to have a detailed discussion under NDA with Intel. In fact, we had an early NDA discussion with Intel about it a few months ago. That said, the use case isn't tied so closely to my product that I can't describe it in general terms... Imag

[dpdk-dev] [PATCH 1/4] compat: Add infrastructure to support symbol versioning

2014-09-23 Thread Neil Horman
On Tue, Sep 23, 2014 at 05:29:48PM +0100, Sergio Gonzalez Monroy wrote: > On Tue, Sep 23, 2014 at 10:58:29AM -0400, Neil Horman wrote: > > On Tue, Sep 23, 2014 at 11:39:29AM +0100, Sergio Gonzalez Monroy wrote: > > > Hi Neil, > > > > > > On Mon, Sep 15, 2014 at 03:23:48PM -0400, Neil Horman wrote:

[dpdk-dev] Can not init NIC after merge to DPDK 1.7 problem

2014-09-23 Thread Matthew Hall
On Tue, Sep 23, 2014 at 06:53:57PM +, Wang, Shawn wrote: > Can someone share some light on what is magic of the dpdk Makefile to > correctly register the NIC type? I had the same problem as a guy who began using it before the auto-reg, stopped a while, and began again after. You have to pas

[dpdk-dev] [PATCH v2 3/5] testpmd: Change rxfreet default to 32

2014-09-23 Thread Neil Horman
On Tue, Sep 23, 2014 at 12:08:15PM +0100, Bruce Richardson wrote: > To improve performance by using bulk alloc or vectored RX routines, we > need to set rx free threshold (rxfreet) value to 32, so make this the > testpmd default. > > Thirty-two is the minimum setting needed to enable either the >

[dpdk-dev] [PATCH v2 5/5] mbuf: switch vlan_tci and reserved2 fields

2014-09-23 Thread Bruce Richardson
Move the vlan_tci field up by two bytes in the mbuf data structure. This has two effects: * Ensures the the ixgbe vector driver places the vlan tag in the correct place in the mbuf. * Allows a second vlan tag field, if one is added in the future, to be placed after the existing vlan field, rath

[dpdk-dev] [PATCH v2 4/5] mbuf: add userdata pointer field

2014-09-23 Thread Bruce Richardson
While some applications may store metadata about packets in the packet mbuf headroom, this is not a workable solution for packet metadata which is either: * larger than the headroom (or headroom is needed for adding pkt headers) * needs to be shared or copied among packets To support these use cas

[dpdk-dev] [PATCH v2 3/5] testpmd: Change rxfreet default to 32

2014-09-23 Thread Bruce Richardson
To improve performance by using bulk alloc or vectored RX routines, we need to set rx free threshold (rxfreet) value to 32, so make this the testpmd default. Thirty-two is the minimum setting needed to enable either the bulk alloc or vector RX routines inside the ixgbe driver, so it's best made th

[dpdk-dev] [PATCH v2 2/5] ixgbe: add prefetch to improve slow-path tx perf

2014-09-23 Thread Bruce Richardson
Make a small improvement to slow path TX performance by adding in a prefetch for the second mbuf cache line. Also move assignment of l2/l3 length values only when needed. What I've done with the prefetches is two-fold: 1) changed it from prefetching the mbuf (first cache line) to prefetching the m

[dpdk-dev] [PATCH v2 1/5] mbuf: ensure next pointer is set to null on free

2014-09-23 Thread Bruce Richardson
The receive functions for packets do not modify the next pointer so the next pointer should always be cleared on mbuf free, just in case. The slow-path TX needs to clear it, and the standard mbuf free function also needs to clear it. Fast path TX does not handle chained mbufs so is unaffected Chan

[dpdk-dev] [PATCH v2 0/5] Mbuf Structure Rework, part 3

2014-09-23 Thread Bruce Richardson
This is the final planned set of patches to make changes to the mbuf data structure and associated files. This patch set makes more changes to help improve performance following the mbuf changes and adds in two new fields into the mbuf structure. It is planned to add other fields other than the tw

[dpdk-dev] [PATCH 1/4] compat: Add infrastructure to support symbol versioning

2014-09-23 Thread Sergio Gonzalez Monroy
Hi Neil, On Mon, Sep 15, 2014 at 03:23:48PM -0400, Neil Horman wrote: > Add initial pass header files to support symbol versioning. > > Signed-off-by: Neil Horman > CC: Thomas Monjalon > CC: "Richardson, Bruce" > --- > lib/Makefile | 1 + > lib/librte_compat/Makefile |

[dpdk-dev] [PATCH 5/5]testpmd:test VF MACVLAN filter for i40e

2014-09-23 Thread Jijiang Liu
Add a test command in testpmd to test VF MACVLAN filter feature. Signed-off-by: Jijiang Liu Acked-by: Helin Zhang Acked-by: Jingjing Wu Acked-by: Changchun Ouyang --- app/test-pmd/cmdline.c | 115 ++- 1 files changed, 112 insertions(+), 3 deletions

[dpdk-dev] [PATCH 4/5]i40e:add VF MACVLAN filter implementation in librte_pmd_i40e

2014-09-23 Thread Jijiang Liu
Add i40e_vf_mac_filter_set() function to support perfect match and hash match filter of MAC address and VLAN ID for a VF. Signed-off-by: Jijiang Liu Acked-by: Helin Zhang Acked-by: Jingjing Wu Acked-by: Changchun Ouyang --- lib/librte_pmd_i40e/i40e_ethdev.c | 117 ++

[dpdk-dev] [PATCH 3/5]i40e:optimize MACVLAN filter implementation

2014-09-23 Thread Jijiang Liu
This patch mainly optimizes i40e_add_macvlan_filters() and i40e_remove_macvlan_filters() functions in order that we can provide a flexible configuration interface. And another relevant MACVLAN filter codes are changed based on new data structures Signed-off-by: Jijiang Liu Acked-by: Helin Zhan

[dpdk-dev] [PATCH 2/5]librte_ether:extend data structures of MACVLAN filter

2014-09-23 Thread Jijiang Liu
Add new data definations for MACVLAN filter enhancement in rte_eth_ctrl.h file. Signed-off-by: Jijiang Liu Acked-by: Helin Zhang Acked-by: Jingjing Wu Acked-by: Changchun Ouyang --- lib/librte_ether/rte_eth_ctrl.h | 25 + 1 files changed, 25 insertions(+), 0 deletion

[dpdk-dev] [PATCH 1/5]librte_ether:use new filter framework

2014-09-23 Thread Jijiang Liu
Introduce a new filter framewok in librte_ether. As to the implemetation discussion, please refer to http://dpdk.org/ml/archives/dev/2014-September/005179.html, and VF MACVLAN filter implementation is based on it. Signed-off-by: Jijiang Liu Acked-by: Helin Zhang Acked-by: Jingjing Wu Acked-

[dpdk-dev] [PATCH 0/5]support filter of unicast and multicast MAC address for VF on Fortville

2014-09-23 Thread Jijiang Liu
The patch set enhances MACVLAN filter configurability and supports perfect and hash match filter of unicast and multicast MAC address for VF on Fortville. It mainly includes: - Use new filter mechanism discussed at http://dpdk.org/ml/archives/dev/2014-September/005179.html. - Enhance MACVLAN

[dpdk-dev] KNI and memzones

2014-09-23 Thread Marc Sune
Hi all, So we are having some problems with KNI. In short, we have a DPDK application that creates KNI interfaces and destroys them during its lifecycle and connecting them to DOCKER containers. Interfaces may eventually be even named the same (see below). We were wondering why even calling rt

[dpdk-dev] compile error with linuxapp-clang target on Fedora 20 with 3.15.10 kernel

2014-09-23 Thread Bruce Richardson
On Mon, Sep 22, 2014 at 03:12:43PM -0700, Matthew Hall wrote: > On Mon, Sep 22, 2014 at 04:05:29PM -0400, Neil Horman wrote: > > On Mon, Sep 22, 2014 at 12:23:36PM -0700, Matthew Hall wrote: > > > I fixed some of the clang errors a few weeks ago. But some of my patches > > > got sent back due to i

[dpdk-dev] [PATCH 1/4] compat: Add infrastructure to support symbol versioning

2014-09-23 Thread Neil Horman
On Tue, Sep 23, 2014 at 11:39:29AM +0100, Sergio Gonzalez Monroy wrote: > Hi Neil, > > On Mon, Sep 15, 2014 at 03:23:48PM -0400, Neil Horman wrote: > > Add initial pass header files to support symbol versioning. > > > > Signed-off-by: Neil Horman > > CC: Thomas Monjalon > > CC: "Richardson, Bru

[dpdk-dev] compile error with linuxapp-clang target on Fedora 20 with 3.15.10 kernel

2014-09-23 Thread Matthew Hall
I fixed one main libs bug which blocked compile that was trivial and got it applied. I had examples working too but using an impolite method of doing so. As for the latest kernel stuff, it sounds like we have to get a hand from LKML or a sublist to figure it out, eh? Doesn't seem like it's in th

[dpdk-dev] DPDK 1.7 crashes on table initialization

2014-09-23 Thread Saha, Avik (AWS)
Hey guys My DPDK application is crashing on a table creation when I specify .action_data_size as greater than 0. I could not find the constraints on this field in documentation (multiple of 4 or something). Could someone please give some guidance on this issue. Thanks Avik

[dpdk-dev] [PATCH 06/10] Alternate implementation of librte_power for VM Power Management(Guest).

2014-09-23 Thread Carew, Alan
Hi Neil, > -Original Message- > From: Neil Horman [mailto:nhorman at tuxdriver.com] > Sent: Monday, September 22, 2014 8:18 PM > To: Carew, Alan > Cc: dev at dpdk.org > Subject: Re: [dpdk-dev] [PATCH 06/10] Alternate implementation of > librte_power for VM Power Management(Guest). > > On

[dpdk-dev] KNI and memzones

2014-09-23 Thread Jay Rolette
*> p.s. Lately someone involved with DPDK said KNI would be deprecated in future DPDK releases; I haven't read or listen to this before, is this true? What would be the natural replacement then?* KNI is a non-trivial part of the product I'm in the process of building. I'd appreciate someone "in th

[dpdk-dev] DPDK 1.7 crashes on table initialization

2014-09-23 Thread Neil Horman
On Tue, Sep 23, 2014 at 09:07:55AM +, Saha, Avik (AWS) wrote: > Hey guys >My DPDK application is crashing on a table creation when I specify > .action_data_size as greater than 0. I could not find the constraints on this > field in documentation (multiple of 4 or something). Could someone

[dpdk-dev] LRU using DPDK 1.7

2014-09-23 Thread Saha, Avik (AWS)
So with DPDK 1.7 there are 2 separate implementations - one is the rte_hash which does not support LRU (at least to my understanding - I could be wrong here) and then there is the librte_table library which has support for LRU in a hash table. I m a little confused as to which one you are referr

[dpdk-dev] LRU using DPDK 1.7

2014-09-23 Thread Saha, Avik (AWS)
Hello I was wondering if there is way to use the rte_table_hash_lru without building a pipeline - Basically using the same hash table like functionality of add, delete and lookup without setting up a pipeline and connect it to ports etc. Thanks Avik