[dpdk-dev] [PATCH] arch/arm: optimization for memcpy on AArch64

2017-11-26 Thread Herbert Guan
This patch provides an option to do rte_memcpy() using 'restrict' qualifier, which can induce GCC to do optimizations by using more efficient instructions, providing some performance gain over memcpy() on some AArch64 platforms/enviroments. The memory copy performance differs between different AAr

[dpdk-dev] [PATCH 1/2] Introducing SPDX License Identifiers

2017-11-26 Thread Hemant Agrawal
The DPDK uses the Open Source BSD-3-Clause license for the core libraries and drivers. The kernel components are naturally GPLv2 licensed. Many of the files in the DPDK source code contain the full text of the applicable license. For example, most of the BSD-3-Clause files contain a full copy of t

[dpdk-dev] [PATCH 2/2] Change root makefile license to SPDX tag

2017-11-26 Thread Hemant Agrawal
Signed-off-by: Hemant Agrawal --- GNUmakefile | 27 +-- Makefile| 27 +-- 2 files changed, 2 insertions(+), 52 deletions(-) diff --git a/GNUmakefile b/GNUmakefile index 45b7fbb..2602531 100644 --- a/GNUmakefile +++ b/GNUmakefile @@ -1,33 +1,8 @

Re: [dpdk-dev] [PATCH 01/39] examples/l2fwd: convert to new ethdev offloads API

2017-11-26 Thread Andrew Rybchenko
On 11/27/2017 10:03 AM, Shahaf Shuler wrote: Monday, November 27, 2017 8:35 AM, Andrew Rybchenko: Yes this is right. Not exposing the CRC offload flag means the device don’t support CRC strip toggling, however it does not explicitly say if device always strip/not. I guess device that has su

Re: [dpdk-dev] [PATCH 01/39] examples/l2fwd: convert to new ethdev offloads API

2017-11-26 Thread Jerin Jacob
-Original Message- > Date: Mon, 27 Nov 2017 07:03:54 + > From: Shahaf Shuler > To: Andrew Rybchenko , "dev@dpdk.org" > > Subject: Re: [dpdk-dev] [PATCH 01/39] examples/l2fwd: convert to new ethdev > offloads API > > Monday, November 27, 2017 8:35 AM, Andrew Rybchenko: > > Yes this

Re: [dpdk-dev] [PATCH 1/5] net/mlx5: remove get priv internal function

2017-11-26 Thread Shahaf Shuler
Thursday, November 23, 2017 11:23 AM, Nelio Laranjeiro: > Subject: [dpdk-dev] [PATCH 1/5] net/mlx5: remove get priv internal function > > mlx5_get_priv() is barely use across the driver. To avoid mixing access, this > function is definitely removed. > > Signed-off-by: Nelio Laranjeiro > Acked-b

Re: [dpdk-dev] [PATCH v2] net/mlx5: remove parser/flow drop queue

2017-11-26 Thread Shahaf Shuler
Thursday, November 23, 2017 11:30 AM, Nelio Laranjeiro: > This drop queue can be handled efficiently by using the drop flag in the > context. > > Signed-off-by: Nelio Laranjeiro > Acked-by: Yongseok Koh Applied to next-net-mlx, thanks.

[dpdk-dev] [PATCH v2 2/2] app/testpmd: add configuration for input set

2017-11-26 Thread Beilei Xing
This patch adds command to configure input set for RSS/flow director/flow director flexible payload. Signed-off-by: Beilei Xing --- app/test-pmd/cmdline.c | 133 + 1 file changed, 133 insertions(+) diff --git a/app/test-pmd/cmdline.c b/app/test-pm

[dpdk-dev] [PATCH v2 1/2] net/i40e: support input set configuration

2017-11-26 Thread Beilei Xing
This patch supports getting/setting input set info for RSS/FDIR/FDIR flexible payload. Also add some helper functions for input set configuration. Signed-off-by: Beilei Xing --- drivers/net/i40e/rte_pmd_i40e.c | 141 ++ drivers/net/i40e/rte_pmd_i40e.h

[dpdk-dev] [PATCH v2 0/2] net/i40e: support input set configuration

2017-11-26 Thread Beilei Xing
The patchset adds support input set configuration for RSS/FDIR/FDIR flexible payload. v2 changes: - Use 'static inline' to replace 'inline'. - Add support get status for some filed index of input set. Beilei Xing (2): net/i40e: support input set configuration app/testpmd: add configuration

Re: [dpdk-dev] [PATCH 01/39] examples/l2fwd: convert to new ethdev offloads API

2017-11-26 Thread Shahaf Shuler
Monday, November 27, 2017 8:35 AM, Andrew Rybchenko: Yes this is right. Not exposing the CRC offload flag means the device don’t support CRC strip toggling, however it does not explicitly say if device always strip/not. I guess device that has such limitation should specify it on the “Limitation

Re: [dpdk-dev] [PATCH 01/39] examples/l2fwd: convert to new ethdev offloads API

2017-11-26 Thread Andrew Rybchenko
On 11/26/2017 10:41 AM, Shahaf Shuler wrote: >>+    .ignore_offload_bitfield = 1, >>+    .offloads = DEV_RX_OFFLOAD_CRC_STRIP, > >It is not directly related to the patch. >May be I miss something, but it looks like there is no way to say that >"I always strip CRC and cannot prese

[dpdk-dev] [PATCH V6 3/3] ring: introduce new header file to support C11 memory model

2017-11-26 Thread Jia He
To support C11 memory model barrier, 2 options are suggested by Jerin: 1. use rte_smp_rmb 2. use load_acquire/store_release(refer to [1]). CONFIG_RTE_RING_USE_C11_MEM_MODEL is provided, and by default it is "y" only on arm64 so far. The reason why providing 2 options is due to the performance benc

[dpdk-dev] [PATCH V6 2/3] ring: introduce new header file to include common functions

2017-11-26 Thread Jia He
move the common part of rte_ring.h into rte_ring_generic.h. move the memory barrier part into update_tail(). no functional changes here. Signed-off-by: Jia He Suggested-by: Jerin Jacob Suggested-by: Ananyev, Konstantin --- lib/librte_eventdev/rte_event_ring.h | 6 +- lib/librte_ring/Makefil

[dpdk-dev] [PATCH V6 1/3] eal/arm64: remove the braces {} for dmb() and dsb()

2017-11-26 Thread Jia He
for the code as follows: if (condition) rte_smp_rmb(); else rte_smp_wmb(); Without this patch, compiler will report this error: error: 'else' without a previous 'if' Fixes: 84733fd0d75e ("eal/arm: fix memory barrier definition") Cc: sta...@dpdk.org Signed-off-by: Jia He --- lib/l

[dpdk-dev] [PATCH V6 0/3] support c11 memory model barrier in librte_ring

2017-11-26 Thread Jia He
To support C11 memory model barrier, 2 options are suggested by Jerin: 1. use rte_smp_rmb 2. use load_acquire/store_release CONFIG_RTE_RING_USE_C11_MEM_MODEL is provided, and by default it is "y" only on arm64 so far. The reason why providing 2 options is due to the performance benchmark differenc

[dpdk-dev] [PATCH] net/i40e: remove forward declaraion of i40e_xmit_pkts_simple

2017-11-26 Thread Rami Rosen
This trivial patch removes unnecessary forward decalartion of i40e_xmit_pkts_simple() in i40e_rxtx.c. Signed-off-by: Rami Rosen --- drivers/net/i40e/i40e_rxtx.c | 4 1 file changed, 4 deletions(-) diff --git a/drivers/net/i40e/i40e_rxtx.c b/drivers/net/i40e/i40e_rxtx.c index ad06b71..53a0

Re: [dpdk-dev] [ovs-dev] [PATCH RFC] netdev-dpdk: Fix device obtain mac address when received first packet in vhost type

2017-11-26 Thread Chen Hailin
Hi Aaron Conole && Jianfeng, The stp could not work in ovs-dpdk vhostuser. Because the attached vhost device doesn't have MAC address. Now we have two ways to solve this problem. 1. The vhost learns MAC address from packet like as my first patch. 2. The virtio notifies MAC address actively to vho