[dpdk-dev] A (possible) problem with `--no-huge` option

2017-05-14 Thread Ilya Matveychikov
Hi guys, I have a problem while running DPDK with `--no-huge` option. It seems that the problem occurs since commit cdc242f260e766bd95a658b5e0686a62ec04f5b0 and that is the change that affects me: + if ((page & 0x7fULL) == 0) + return RTE_BAD_PHYS_ADDR; + What I

Re: [dpdk-dev] [PATCH] driver/net: remove unnecessary macro for unused variables

2017-05-14 Thread Lu, Wenzhuo
Hi, > -Original Message- > From: Yigit, Ferruh > Sent: Friday, May 12, 2017 6:33 PM > To: John W. Linville; Legacy, Allain (Wind River); Peters, Matt (Wind River); > Harish Patil; Rasesh Mody; Stephen Hurd; Ajit Khaparde; Doherty, Declan; Lu, > Wenzhuo; Marcin Wojtas; Michal Krawczyk; Guy

Re: [dpdk-dev] [PATCH v5 2/4] eal: move gcc version definition to common header

2017-05-14 Thread Jianbo Liu
On 12 May 2017 at 18:15, Ashwin Sekhar T K wrote: > Moved the definition of GCC_VERSION from lib/librte_table/rte_lru.h > to lib/librte_eal/common/include/rte_common.h. > > Tested compilation on: > * arm64 with gcc > * x86 with gcc and clang > > Signed-off-by: Ashwin Sekhar T K > Reviewed-by: J

Re: [dpdk-dev] [PATCH v5 3/4] net: add arm64 neon version of CRC compute APIs

2017-05-14 Thread Jianbo Liu
On 12 May 2017 at 18:15, Ashwin Sekhar T K wrote: > Added CRC compute APIs for arm64 utilizing the pmull > capability. > > Added new file net_crc_neon.h to hold the arm64 pmull > CRC implementation. > > Added wrappers in rte_vect.h for those neon intrinsics > which are not supported in GCC version

Re: [dpdk-dev] [PATCH] driver/net: remove unnecessary macro for unused variables

2017-05-14 Thread Yuanhan Liu
On Fri, May 12, 2017 at 11:33:03AM +0100, Ferruh Yigit wrote: > remove __rte_unused instances that are not required. I'm wondering this is done by some scripts? --yliu

[dpdk-dev] [RFC 2/2] doc/guides/prog_guide: add new flow attribute

2017-05-14 Thread Qi Zhang
Update the programming guide for the new attribute of rte_flow Signed-off-by: Qi Zhang --- doc/guides/prog_guide/rte_flow.rst | 12 1 file changed, 12 insertions(+) diff --git a/doc/guides/prog_guide/rte_flow.rst b/doc/guides/prog_guide/rte_flow.rst index b587ba9..5207eec 100644 -

[dpdk-dev] [RFC 1/2] rte_flow: add attribute for signature match

2017-05-14 Thread Qi Zhang
Add new attribute "sig_match" to rte_flow_attr. This attribute indicate if current flow take "perfect match" or "signature match". With perfect match (by default), if a packet does not match pattern, actions will not be taken. (this is identical with current behavior ) With signature match, if a pa

[dpdk-dev] [RFC 0/2] ethdev: add new attribute for signature match

2017-05-14 Thread Qi Zhang
We try to enable ixgbe's signature match with rte_flow, but didn't find a way with current APIs, so the RFC propose to add a new flow attribute "sig_match" to indicate if current flow is "perfect match" or "signature match" With perfect match (by default), if a packet does not match pattern, action

[dpdk-dev] [PATCH v4 0/8] accelerate examples/l3fwd with NEON on ARM64 platform

2017-05-14 Thread Jianbo Liu
v4: - add vcopyq_laneq_u32 for older version of gcc v3: - remove unnecessary perfetch for rte_mbuf - fix typo in git log - Ashwin's suggestions for performance on ThunderX v2: - change name of l3fwd_em_sse.h to l3fwd_em_sequential.h - add the times of hash multi-lookup for different A

[dpdk-dev] [PATCH v4 1/8] examples/l3fwd: extract arch independent code from multi hash lookup

2017-05-14 Thread Jianbo Liu
Extract common code from l3fwd_em_hlm_sse.h, and add to the new file l3fwd_em_hlm.h. Signed-off-by: Jianbo Liu --- examples/l3fwd/l3fwd_em.c | 2 +- examples/l3fwd/l3fwd_em_hlm.h | 302 ++ examples/l3fwd/l3fwd_em_hlm_sse.h | 280 +

[dpdk-dev] [PATCH v4 2/8] examples/l3fwd: rename l3fwd_em_sse.h to l3fwd_em_sequential.h

2017-05-14 Thread Jianbo Liu
The l3fwd_em_sse.h is enabled by NO_HASH_LOOKUP_MULTI. Renaming it because it's only for sequential hash lookup, and doesn't include any x86 SSE instructions. Signed-off-by: Jianbo Liu --- examples/l3fwd/l3fwd_em.c| 2 +- examples/l3fwd/{l3fwd_em_sse.h => l3fwd_em

[dpdk-dev] [PATCH v4 3/8] examples/l3fwd: extract common code from multi packet send

2017-05-14 Thread Jianbo Liu
Keep x86 related code in l3fwd_sse.h, and move common code to l3fwd_common.h, which will be used by other Archs. Signed-off-by: Jianbo Liu --- examples/l3fwd/l3fwd_common.h | 293 ++ examples/l3fwd/l3fwd_sse.h| 255 +---

[dpdk-dev] [PATCH v4 5/8] arch/arm: add vcopyq_laneq_u32 for old version of gcc

2017-05-14 Thread Jianbo Liu
Implement vcopyq_laneq_u32 if gcc version is lower than 7. Signed-off-by: Jianbo Liu --- lib/librte_eal/common/include/arch/arm/rte_vect.h | 9 + 1 file changed, 9 insertions(+) diff --git a/lib/librte_eal/common/include/arch/arm/rte_vect.h b/lib/librte_eal/common/include/arch/arm/rte_

[dpdk-dev] [PATCH v4 6/8] examples/l3fwd: add neon support for l3fwd

2017-05-14 Thread Jianbo Liu
Use ARM NEON intrinsics to accelerate l3 fowarding. Signed-off-by: Jianbo Liu --- examples/l3fwd/l3fwd_em.c| 4 +- examples/l3fwd/l3fwd_em_hlm.h| 17 ++- examples/l3fwd/l3fwd_em_hlm_neon.h | 74 ++ examples/l3fwd/l3fwd_em_sequential.h | 18 ++- examples/l3fwd/l

[dpdk-dev] [PATCH v4 4/8] examples/l3fwd: rearrange the code for lpm_l3fwd

2017-05-14 Thread Jianbo Liu
Signed-off-by: Jianbo Liu Some common code can be used by other ARCHs, move to l3fwd_lpm.c --- examples/l3fwd/l3fwd_lpm.c | 83 ++ examples/l3fwd/l3fwd_lpm.h | 26 + examples/l3fwd/l3fwd_lpm_sse.h | 66 -

[dpdk-dev] [PATCH v4 7/8] examples/l3fwd: add the times of hash multi-lookup for different Archs

2017-05-14 Thread Jianbo Liu
New macro to define how many times of hash lookup in one time, and this makes the code more concise. Signed-off-by: Jianbo Liu --- examples/l3fwd/l3fwd_em_hlm.h | 241 +- 1 file changed, 71 insertions(+), 170 deletions(-) diff --git a/examples/l3fwd/l3fwd

[dpdk-dev] [PATCH v4 8/8] examples/l3fwd: change the guard macro name for header file

2017-05-14 Thread Jianbo Liu
As l3fwd_em_sse.h is renamed to l3fwd_em_sequential.h, change the macro to __L3FWD_EM_SEQUENTIAL_H__ to maintain consistency. Signed-off-by: Jianbo Liu --- examples/l3fwd/l3fwd_em_sequential.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/examples/l3fwd/l3fwd_em_seque

Re: [dpdk-dev] [PATCH] event/sw: add queue-to-port stats

2017-05-14 Thread Jerin Jacob
-Original Message- > Date: Thu, 11 May 2017 10:56:26 +0100 > From: Harry van Haaren > To: dev@dpdk.org > CC: jerin.ja...@caviumnetworks.com, Harry van Haaren > > Subject: [PATCH] event/sw: add queue-to-port stats > X-Mailer: git-send-email 2.7.4 > > This patch targets the next-eventdev

Re: [dpdk-dev] [PATCH] eventdev: clarify atomic and ordered queue config

2017-05-14 Thread Jerin Jacob
-Original Message- > Date: Fri, 12 May 2017 14:25:37 -0500 > From: Gage Eads > To: dev@dpdk.org > CC: jerin.ja...@caviumnetworks.org > Subject: [dpdk-dev] [PATCH] eventdev: clarify atomic and ordered queue > config > X-Mailer: git-send-email 2.7.4 > > The nb_atomic_flows and nb_atomic_or

Re: [dpdk-dev] [PATCH v4 5/8] arch/arm: add vcopyq_laneq_u32 for old version of gcc

2017-05-14 Thread Jerin Jacob
-Original Message- > Date: Mon, 15 May 2017 11:34:53 +0800 > From: Jianbo Liu > To: dev@dpdk.org, tomasz.kante...@intel.com, > jerin.ja...@caviumnetworks.com, ashwin.sek...@caviumnetworks.com > CC: Jianbo Liu > Subject: [PATCH v4 5/8] arch/arm: add vcopyq_laneq_u32 for old version of >

Re: [dpdk-dev] [PATCH v4 6/8] examples/l3fwd: add neon support for l3fwd

2017-05-14 Thread Sekhar, Ashwin
On Mon, 2017-05-15 at 11:34 +0800, Jianbo Liu wrote: > Use ARM NEON intrinsics to accelerate l3 fowarding. > > Signed-off-by: Jianbo Liu Acked-by: Ashwin Sekhar T K > --- >  examples/l3fwd/l3fwd_em.c|   4 +- >  examples/l3fwd/l3fwd_em_hlm.h|  17 ++- >  examples/l3fwd/l3fwd_em