[dpdk-dev] [PATCH v2 0/4] vhost: add missing barriers, move prefetching

2018-12-19 Thread Maxime Coquelin
This series adds missing read barriers after reading avail index for split ring and desc flags for packed ring. Also, it turns out that some descriptors prefetching are either badly placed, or useless, last part of the series fixes that. With the series applied, I get between 0 and 4% gain depend

[dpdk-dev] [PATCH v2 2/4] vhost: enforce desc flags and content read ordering

2018-12-19 Thread Maxime Coquelin
A read barrier is required to ensure that the ordering between descriptor's flags and content reads is enforced. 1. read flags = desc->flags if (flags & AVAIL_BIT) 2. read desc->id There is a control dependency between steps 1 and step 2. 2 could be speculatively executed before 1, which could

[dpdk-dev] [PATCH v2 3/4] vhost: prefetch descriptor after the read barrier

2018-12-19 Thread Maxime Coquelin
This patch moves the prefetch after the available index is read to avoid prefetching a descriptor not available yet. Signed-off-by: Maxime Coquelin --- lib/librte_vhost/virtio_net.c | 7 --- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/lib/librte_vhost/virtio_net.c b/lib/lib

[dpdk-dev] [PATCH v2 1/4] vhost: enforce avail index and desc read ordering

2018-12-19 Thread Maxime Coquelin
A read barrier is required to ensure the ordering between available index and the descriptor reads is enforced. 1. read avail_head = avail->idx 2. read cur_idx = last_avail_idx if (cur_idx != avail_head) { 3. read idx = avail->ring[cur_idx] 4. read desc[idx] } There is a control dependenc

[dpdk-dev] [PATCH v2 4/4] vhost: remove useless prefetch for packed ring descriptor

2018-12-19 Thread Maxime Coquelin
This prefetch does not show any performance improvement. Signed-off-by: Maxime Coquelin --- lib/librte_vhost/virtio_net.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/lib/librte_vhost/virtio_net.c b/lib/librte_vhost/virtio_net.c index a9be633de..4d201a3fd 100644 --- a/lib/librte_vhost/vi

Re: [dpdk-dev] [PATCH 2/2] test: add new test-cases for rwlock autotest

2018-12-19 Thread Gavin Hu (Arm Technology China)
> -Original Message- > From: dev On Behalf Of Konstantin Ananyev > Sent: Wednesday, November 14, 2018 1:28 AM > To: dev@dpdk.org > Cc: Konstantin Ananyev > Subject: [dpdk-dev] [PATCH 2/2] test: add new test-cases for rwlock autotest > > This patch targets 19.02 release. > > Add few fun

Re: [dpdk-dev] [PATCH 1/2] rwlock: introduce 'try' semantics for RD and WR locking

2018-12-19 Thread Gavin Hu (Arm Technology China)
> -Original Message- > From: Honnappa Nagarahalli > Sent: Wednesday, December 19, 2018 2:38 PM > To: Konstantin Ananyev ; dev@dpdk.org > Cc: nd ; Honnappa Nagarahalli > ; Gavin Hu (Arm Technology China) > ; nd > Subject: RE: [dpdk-dev] [PATCH 1/2] rwlock: introduce 'try' semantics for

Re: [dpdk-dev] [PATCH v2]/driver/raw/ifpga_rawdev: fix a memory leak bug in ifpga

2018-12-19 Thread Pei, Andy
Hi, Tianfei, After checking the code, I found that opae_adapter_alloc() function is no long called. So is it Ok to delete the function? To: I agree that the free is not necessary. -Original Message- From: Xu, Rosen Sent: Wednesday, December 19, 2018 3:16 PM To: Pei, Andy ; dev@dpdk.or

Re: [dpdk-dev] [PATCH] eal: close MP socket during cleanup

2018-12-19 Thread Thomas Monjalon
19/12/2018 08:41, Qi Zhang: > When secondary process quit, the mp_socket* file still exist, that > cause rte_mp_request_sync fail when try to send message on a floating > socket. > > The patch fix the issue by introduce a function rte_mp_channel_fini. > This function will be called by rte_eal_clea

Re: [dpdk-dev] [PATCH v3] libs/power: add p-state driver compatibility

2018-12-19 Thread Hunt, David
On 19/12/2018 3:18 AM, Thomas Monjalon wrote: 14/12/2018 14:11, Liang Ma: Previously, in order to use the power library, it was necessary for the user to disable the intel_pstate driver by adding “intel_pstate=disable” to the kernel command line for the system, which causes the acpi_cpufreq dr

Re: [dpdk-dev] Marking symbols as experimental in the headers only

2018-12-19 Thread David Marchand
On Tue, Dec 18, 2018 at 1:27 PM David Marchand wrote: > > On Tue, Dec 18, 2018 at 1:25 PM Neil Horman wrote: > >> On Tue, Dec 18, 2018 at 11:41:34AM +0100, David Marchand wrote: >> >> > The real issue in the end is that the __rte_experimental in headers is >> the >> > most important thing and ca

Re: [dpdk-dev] [PATCH] vhost: batch used descriptors chains write-back with packed ring

2018-12-19 Thread Maxime Coquelin
On 12/12/18 7:53 PM, Michael S. Tsirkin wrote: On Wed, Dec 12, 2018 at 05:34:31PM +0100, Maxime Coquelin wrote: Hi Ilya, On 12/12/18 4:23 PM, Ilya Maximets wrote: On 12.12.2018 11:24, Maxime Coquelin wrote: Instead of writing back descriptors chains in order, let's write the first chain fl

Re: [dpdk-dev] [PATCH] net/vhost: fix double free of MAC addrs

2018-12-19 Thread Tiwei Bie
On Wed, Dec 19, 2018 at 01:37:18PM +0900, Hideyuki Yamashita wrote: > The common data freeing has been moved to rte_eth_dev_release_port(), > so freeing mac_addrs like this in eth_dev_close() is unnecessary and > will cause double free. > > Fixes: e16adf08e54d ("ethdev: free all common data when r

Re: [dpdk-dev] [PATCH] bbdev: add missing experimental tags

2018-12-19 Thread Mokhtar, Amr
From: David Marchand [mailto:david.march...@redhat.com] Sent: Tuesday 18 December 2018 10:49 To: Akhil Goyal ; Mokhtar, Amr Cc: Neil Horman ; dev@dpdk.org; sta...@dpdk.org; tredae...@redhat.com; Yigit, Ferruh Subject: Re: [dpdk-dev] [PATCH] bbdev: add missing experimental tags On Tue, Dec 18

Re: [dpdk-dev] [PATCH] mk: use misleading indentation warning when available

2018-12-19 Thread Gaëtan Rivet
On Tue, Dec 18, 2018 at 02:50:30PM +, Ferruh Yigit wrote: > On 12/18/2018 10:26 AM, Gaetan Rivet wrote: > > -Wmisleading-indentation was introduced in GCC 6.0. > > It seems '-Wmisleading-indentation' is part of -Wall, which we already set by > default. If so no need to explicitly add it. > >

Re: [dpdk-dev] [PATCH v2 1/3] net/virtio: inline refill and offload helpers

2018-12-19 Thread Jens Freimann
On Tue, Dec 11, 2018 at 02:48:02PM +0100, Maxime Coquelin wrote: Signed-off-by: Maxime Coquelin --- drivers/net/virtio/virtio_rxtx.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/net/virtio/virtio_rxtx.c b/drivers/net/virtio/virtio_rxtx.c index eb891433e..e1c

Re: [dpdk-dev] [PATCH v4 01/10] cryptodev: add opaque userdata pointer into crypto sym session

2018-12-19 Thread Akhil Goyal
On 12/14/2018 9:53 PM, Konstantin Ananyev wrote: > Add 'uint64_t opaque_data' inside struct rte_cryptodev_sym_session. > That allows upper layer to easily associate some user defined > data with the session. > > Signed-off-by: Konstantin Ananyev > Acked-by: Fiona Trahe > Acked-by: Mohammad Abdu

Re: [dpdk-dev] [PATCH v4 02/10] security: add opaque userdata pointer into security session

2018-12-19 Thread Akhil Goyal
On 12/14/2018 9:53 PM, Konstantin Ananyev wrote: > Add 'uint64_t opaque_data' inside struct rte_security_session. > That allows upper layer to easily associate some user defined > data with the session. > > Signed-off-by: Konstantin Ananyev > Acked-by: Mohammad Abdul Awal > Acked-by: Declan Doh

[dpdk-dev] [PATCH v2] vhost: batch used descs chains write-back with packed ring

2018-12-19 Thread Maxime Coquelin
Instead of writing back descriptors chains in order, let's write the first chain flags last in order to improve batching. With Kernel's pktgen benchmark, ~3% performance gain is measured. Signed-off-by: Maxime Coquelin --- V2: Revert back to initial implementation to have a write barrier before

Re: [dpdk-dev] [PATCH v4 03/10] net: add ESP trailer structure definition

2018-12-19 Thread Akhil Goyal
On 12/14/2018 9:53 PM, Konstantin Ananyev wrote: > Signed-off-by: Konstantin Ananyev > Acked-by: Mohammad Abdul Awal > Acked-by: Declan Doherty > --- > lib/librte_net/rte_esp.h | 10 +- > 1 file changed, 9 insertions(+), 1 deletion(-) > > diff --git a/lib/librte_net/rte_esp.h b/lib/

[dpdk-dev] Pktgen having problem with Lua on RHEL

2018-12-19 Thread Hossein Golestani
Hi, I'm having a hard time compiling Pktgen on a Red Hat machine. The source of the problem is the Lua library. I'm using Pktgen 3.5.9, and it requires Lua 5.3. Standard installation of Lua on RHEL ends up having Lua 5.1. So for having the latest release, I need to compile Lua from its source. My

Re: [dpdk-dev] [PATCH v2 3/3] net/virtio: improve batching in mergeable path

2018-12-19 Thread Jens Freimann
On Tue, Dec 11, 2018 at 02:48:04PM +0100, Maxime Coquelin wrote: This patch improves both descriptors dequeue and refill, by using the same bathing strategy as done in in-order path. s/bathing/batching/ Signed-off-by: Maxime Coquelin --- drivers/net/virtio/virtio_rxtx.c | 237 ++

[dpdk-dev] [PATCH v2] bbdev: add missing APIs to map file and tag all experimental

2018-12-19 Thread Amr Mokhtar
- add missing APIs to map file - add experimental tag to all bbdev APIs Signed-off-by: Amr Mokhtar --- lib/librte_bbdev/rte_bbdev.h | 8 lib/librte_bbdev/rte_bbdev_op.h| 12 ++-- lib/librte_bbdev/rte_bbdev_version.map | 4 3 files changed, 14 insertions(

Re: [dpdk-dev] [PATCH] mk: use misleading indentation warning when available

2018-12-19 Thread Burakov, Anatoly
On 19-Dec-18 9:24 AM, Gaëtan Rivet wrote: On Tue, Dec 18, 2018 at 02:50:30PM +, Ferruh Yigit wrote: On 12/18/2018 10:26 AM, Gaetan Rivet wrote: -Wmisleading-indentation was introduced in GCC 6.0. It seems '-Wmisleading-indentation' is part of -Wall, which we already set by default. If so

Re: [dpdk-dev] [PATCH] ip_frag: fix ipv6 when MTU sizes not aligned to 8 bytes

2018-12-19 Thread Ananyev, Konstantin
> -Original Message- > From: Chas Williams [mailto:3ch...@gmail.com] > Sent: Tuesday, November 27, 2018 4:56 AM > To: dev@dpdk.org > Cc: Ananyev, Konstantin ; Chas Williams > > Subject: [PATCH] ip_frag: fix ipv6 when MTU sizes not aligned to 8 bytes > > From: Chas Williams > > The s

Re: [dpdk-dev] [PATCH v2 1/3] net/virtio: inline refill and offload helpers

2018-12-19 Thread Gavin Hu (Arm Technology China)
> -Original Message- > From: dev On Behalf Of Jens Freimann > Sent: Wednesday, December 19, 2018 5:25 PM > To: Maxime Coquelin > Cc: dev@dpdk.org; tiwei@intel.com; zhihong.w...@intel.com > Subject: Re: [dpdk-dev] [PATCH v2 1/3] net/virtio: inline refill and offload > helpers > > O

Re: [dpdk-dev] [PATCH 1/2] rwlock: introduce 'try' semantics for RD and WR locking

2018-12-19 Thread Mattias Rönnblom
On 2018-12-19 07:37, Honnappa Nagarahalli wrote: diff --git a/lib/librte_eal/rte_eal_version.map b/lib/librte_eal/rte_eal_version.map index 3fe78260d..8b1593dd8 100644 --- a/lib/librte_eal/rte_eal_version.map +++ b/lib/librte_eal/rte_eal_version.map @@ -355,6 +355,8 @@ EXPERIMENTAL { rte_

Re: [dpdk-dev] [PATCH v2 2/3] eal: add new rte color definition

2018-12-19 Thread Dumitrescu, Cristian
> -Original Message- > From: Thomas Monjalon [mailto:tho...@monjalon.net] > Sent: Tuesday, December 18, 2018 8:20 PM > To: Dumitrescu, Cristian > Cc: Ananyev, Konstantin ; Pattan, Reshma > ; dev@dpdk.org; > jerin.ja...@caviumnetworks.com; Singh, Jasvinder > ; david.march...@redhat.com;

Re: [dpdk-dev] [PATCH v2 2/3] eal: add new rte color definition

2018-12-19 Thread Ananyev, Konstantin
Hi Cristian, > > > 18/12/2018 14:19, Dumitrescu, Cristian: > > > > From: Thomas Monjalon [mailto:tho...@monjalon.net] > > > > > 18/12/2018 12:18, Dumitrescu, Cristian: > > > > > > > > I replied in v3 that it should stay in rte_meter.h. > > > > > > > > You can include rte_meter.h in ethdev. > > >

Re: [dpdk-dev] [PATCH v2 2/3] eal: add new rte color definition

2018-12-19 Thread Thomas Monjalon
19/12/2018 11:47, Dumitrescu, Cristian: > From: Thomas Monjalon [mailto:tho...@monjalon.net] > > 18/12/2018 20:34, Dumitrescu, Cristian: > > > From: Ananyev, Konstantin > > > > From: Thomas Monjalon [mailto:tho...@monjalon.net] > > > > > 18/12/2018 14:19, Dumitrescu, Cristian: > > > > > > From: Tho

Re: [dpdk-dev] [PATCH v2 2/3] eal: add new rte color definition

2018-12-19 Thread Ananyev, Konstantin
> 18/12/2018 20:34, Dumitrescu, Cristian: > > From: Ananyev, Konstantin > > > From: Thomas Monjalon [mailto:tho...@monjalon.net] > > > > 18/12/2018 14:19, Dumitrescu, Cristian: > > > > > From: Thomas Monjalon [mailto:tho...@monjalon.net] > > > > > > 18/12/2018 12:18, Dumitrescu, Cristian: > > >

Re: [dpdk-dev] [PATCH v2 1/3] net/virtio: inline refill and offload helpers

2018-12-19 Thread Jens Freimann
On Wed, Dec 19, 2018 at 10:26:10AM +, Gavin Hu (Arm Technology China) wrote: -Original Message- From: dev On Behalf Of Jens Freimann Sent: Wednesday, December 19, 2018 5:25 PM To: Maxime Coquelin Cc: dev@dpdk.org; tiwei@intel.com; zhihong.w...@intel.com Subject: Re: [dpdk-dev

Re: [dpdk-dev] [PATCH 1/2] rwlock: introduce 'try' semantics for RD and WR locking

2018-12-19 Thread Ananyev, Konstantin
> -Original Message- > From: Mattias Rönnblom [mailto:hof...@lysator.liu.se] > Sent: Wednesday, December 19, 2018 10:28 AM > To: Honnappa Nagarahalli ; Ananyev, Konstantin > ; dev@dpdk.org > Cc: nd ; Gavin Hu (Arm Technology China) > Subject: Re: [dpdk-dev] [PATCH 1/2] rwlock: introduce

Re: [dpdk-dev] [PATCH 1/2] rwlock: introduce 'try' semantics for RD and WR locking

2018-12-19 Thread Bruce Richardson
On Wed, Dec 19, 2018 at 10:56:09AM +, Ananyev, Konstantin wrote: > > > > -Original Message- > > From: Mattias Rönnblom [mailto:hof...@lysator.liu.se] > > Sent: Wednesday, December 19, 2018 10:28 AM > > To: Honnappa Nagarahalli ; Ananyev, > > Konstantin ; dev@dpdk.org > > Cc: nd ; Gav

Re: [dpdk-dev] [PATCH v2 2/3] eal: add new rte color definition

2018-12-19 Thread Dumitrescu, Cristian
> -Original Message- > From: Ananyev, Konstantin > Sent: Wednesday, December 19, 2018 10:49 AM > To: Dumitrescu, Cristian ; Thomas Monjalon > > Cc: Pattan, Reshma ; dev@dpdk.org; > jerin.ja...@caviumnetworks.com; Singh, Jasvinder > ; david.march...@redhat.com; > olivier.m...@6wind.com >

Re: [dpdk-dev] [PATCH v2 3/3] net/virtio: improve batching in mergeable path

2018-12-19 Thread Tiwei Bie
On Tue, Dec 11, 2018 at 02:48:04PM +0100, Maxime Coquelin wrote: > This patch improves both descriptors dequeue and refill, > by using the same bathing strategy as done in in-order path. > > Signed-off-by: Maxime Coquelin > --- > drivers/net/virtio/virtio_rxtx.c | 237 ---

[dpdk-dev] [PATCH] net/i40e: use the proper config in I40E RxTx module

2018-12-19 Thread Rami Rosen
This patch fixes I40E RxTx module to use the proper config setting, CONFIG_RTE_LIBRTE_I40E_INC_VECTOR. Fixes: 9ed94e5bb04e ("i40e: add vector Rx") Signed-off-by: Rami Rosen --- drivers/net/i40e/i40e_rxtx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/i40e/i40e

Re: [dpdk-dev] [PATCH v2 2/3] net/virtio: add non-mergeable support to in-order path

2018-12-19 Thread Tiwei Bie
On Tue, Dec 11, 2018 at 02:48:03PM +0100, Maxime Coquelin wrote: > This patch adds support for in-order path when meargeable buffers > feature hasn't been negotiated. > > Signed-off-by: Maxime Coquelin > --- > drivers/net/virtio/virtio_ethdev.c | 11 +++ > drivers/net/virtio/virtio_ethde

[dpdk-dev] [PATCH] telemetry: fix error when using ports of different types

2018-12-19 Thread Bruce Richardson
Different NIC ports can have different numbers of xstats on them, which means that we can't just use the xstats list from the first port registered in the telemetry library. Instead, we need to check the type of each port - by checking its ops structure pointer - and register each port type once wi

Re: [dpdk-dev] [PATCH v2 3/3] net/virtio: improve batching in mergeable path

2018-12-19 Thread Maxime Coquelin
On 12/19/18 12:18 PM, Tiwei Bie wrote: On Tue, Dec 11, 2018 at 02:48:04PM +0100, Maxime Coquelin wrote: This patch improves both descriptors dequeue and refill, by using the same bathing strategy as done in in-order path. Signed-off-by: Maxime Coquelin --- drivers/net/virtio/virtio_rxtx.c

Re: [dpdk-dev] [PATCH v2 1/3] net/virtio: inline refill and offload helpers

2018-12-19 Thread Maxime Coquelin
On 12/19/18 11:53 AM, Jens Freimann wrote: On Wed, Dec 19, 2018 at 10:26:10AM +, Gavin Hu (Arm Technology China) wrote: -Original Message- From: dev On Behalf Of Jens Freimann Sent: Wednesday, December 19, 2018 5:25 PM To: Maxime Coquelin Cc: dev@dpdk.org; tiwei@intel.com

Re: [dpdk-dev] [PATCH v2 3/3] net/virtio: improve batching in mergeable path

2018-12-19 Thread Maxime Coquelin
On 12/19/18 10:47 AM, Jens Freimann wrote: On Tue, Dec 11, 2018 at 02:48:04PM +0100, Maxime Coquelin wrote: This patch improves both descriptors dequeue and refill, by using the same bathing strategy as done in in-order path. s/bathing/batching/ Signed-off-by: Maxime Coquelin --- driver

Re: [dpdk-dev] [PATCH v4 04/10] lib: introduce ipsec library

2018-12-19 Thread Akhil Goyal
On 12/14/2018 9:53 PM, Konstantin Ananyev wrote: > Introduce librte_ipsec library. > The library is supposed to utilize existing DPDK crypto-dev and > security API to provide application with transparent IPsec processing API. > That initial commit provides some base API to manage > IPsec Security

Re: [dpdk-dev] [PATCH v4 04/10] lib: introduce ipsec library

2018-12-19 Thread Thomas Monjalon
19/12/2018 13:08, Akhil Goyal: > On 12/14/2018 9:53 PM, Konstantin Ananyev wrote: > > --- a/MAINTAINERS > > +++ b/MAINTAINERS > > @@ -1071,6 +1071,11 @@ F: doc/guides/prog_guide/pdump_lib.rst > > F: app/pdump/ > > F: doc/guides/tools/pdump.rst > > > > +IPsec - EXPERIMENTAL > > +M: Konstantin

Re: [dpdk-dev] Marking symbols as experimental in the headers only

2018-12-19 Thread Neil Horman
On Wed, Dec 19, 2018 at 10:12:06AM +0100, David Marchand wrote: > On Tue, Dec 18, 2018 at 1:27 PM David Marchand > wrote: > > > > > On Tue, Dec 18, 2018 at 1:25 PM Neil Horman wrote: > > > >> On Tue, Dec 18, 2018 at 11:41:34AM +0100, David Marchand wrote: > >> > >> > The real issue in the end is

Re: [dpdk-dev] [PATCH 2/4] net/cxgbe: fix macros related to logs for Windows

2018-12-19 Thread Rahul Lakkireddy
On Tuesday, December 12/18/18, 2018 at 23:55:26 +0530, Ferruh Yigit wrote: > On 12/13/2018 3:02 PM, Rahul Lakkireddy wrote: > > Replace "args..." with "fmt, ..." and directly use __VA_ARGS__. > > What do you mean exactly by "for Windows"? Which compiler? Is there a > specific C > standard version

Re: [dpdk-dev] [PATCH 1/2] rwlock: introduce 'try' semantics for RD and WR locking

2018-12-19 Thread Ananyev, Konstantin
> -Original Message- > From: Richardson, Bruce > Sent: Wednesday, December 19, 2018 11:00 AM > To: Ananyev, Konstantin > Cc: Mattias Rönnblom ; Honnappa Nagarahalli > ; dev@dpdk.org; nd > ; Gavin Hu (Arm Technology China) > Subject: Re: [dpdk-dev] [PATCH 1/2] rwlock: introduce 'try' s

Re: [dpdk-dev] [PATCH 3/4] net/cxgbe: only redefine symbols when not available for Windows

2018-12-19 Thread Rahul Lakkireddy
On Tuesday, December 12/18/18, 2018 at 23:56:22 +0530, Ferruh Yigit wrote: > On 12/13/2018 3:02 PM, Rahul Lakkireddy wrote: > > Redefine symbols only when they are not available for Windows > > > > Again "for Windows" is very vague, can you please add more context? > These patches are a pre-req

Re: [dpdk-dev] [PATCH 1/4] net/cxgbe: use relative paths for including header files

2018-12-19 Thread Rahul Lakkireddy
On Tuesday, December 12/18/18, 2018 at 23:53:38 +0530, Ferruh Yigit wrote: > On 12/13/2018 3:02 PM, Rahul Lakkireddy wrote: > > Explicitly state header file location using relative paths. > > > > Signed-off-by: Rahul Lakkireddy > > --- > > drivers/net/cxgbe/Makefile | 2 -- > > drivers/n

[dpdk-dev] [RFC 1/2] doc: clean ABI/API policy guide

2018-12-19 Thread Ferruh Yigit
The original document written from the point of ABI versioning but later additions make document confusing, convert document into a ABI/API policy documentation and organize the document in subsections: - ABI/API Deprecation - Experimental APIs - Library versioning - ABI versioning Aim to clarify

[dpdk-dev] [RFC 2/2] doc: add deprecation marker usage

2018-12-19 Thread Ferruh Yigit
Define '__rte_deprecated' usage process. Suggests keeping old API with '__rte_deprecated' marker until next LTS. Signed-off-by: Ferruh Yigit --- Cc: Luca Boccassi Cc: Kevin Traynor Cc: Yongseok Koh Cc: Neil Horman --- doc/guides/contributing/versioning.rst | 9 + 1 file changed, 9 i

Re: [dpdk-dev] [PATCH] examples/fips_validate: add power on self test

2018-12-19 Thread Thomas Monjalon
18/12/2018 11:18, Akhil Goyal: > > On 11/15/2018 10:54 PM, Fan Zhang wrote: > > This patch adds a sample power on self-test to fips_validate > > sample application. > > > > Signed-off-by: Fan Zhang > > --- > > > Applied to dpdk-next-crypto Dropped from master because it does not compile with cla

Re: [dpdk-dev] [PATCH v4 05/10] ipsec: add SA data-path API

2018-12-19 Thread Akhil Goyal
Hi Konstantin, Sorry for a late review. I was on unplanned leave for more than 2 weeks. On 12/14/2018 9:53 PM, Konstantin Ananyev wrote: > Introduce Security Association (SA-level) data-path API > Operates at SA level, provides functions to: > - initialize/teardown SA object > - process

Re: [dpdk-dev] [PATCH v2] crypto/aesni_mb: use architure independent marcos

2018-12-19 Thread Thomas Monjalon
11/12/2018 13:29, Fan Zhang: > From: Lukasz Krakowiak > > This patch updates the aesni_mb to use IMB_* arch independent > macros to reduce the code size and future maintaining effort. > > Signed-off-by: Fan Zhang > Signed-off-by: Lukasz Krakowiak > --- > v2: > - making the PMD compatible with

Re: [dpdk-dev] [PATCH v2] kni:fix build failure as "ndo_change_mtu_rh74" not found in RHEL8

2018-12-19 Thread Ferruh Yigit
On 12/19/2018 7:07 AM, Xiao Liang wrote: > 'ndo_change_mtu_rh74' was changed to 'ndo_change_mtu' in RHEL8. > > Build error log: > /home/dpdk-18.11/kernel/linux/kni/compat.h:107:24: error: ‘const struct > net_device_ops’ has no member named ‘ndo_change_mtu_rh74’; did you mean > ‘ndo_change_mtu’? >

Re: [dpdk-dev] [PATCH] kni: Fix build on RHEL 8

2018-12-19 Thread Ferruh Yigit
On 11/27/2018 1:38 PM, Ferruh Yigit wrote: > On 11/27/2018 11:13 AM, Mohammed Gamal wrote: >> On Tue, 2018-11-27 at 10:55 +, Ferruh Yigit wrote: >>> On 11/26/2018 8:45 PM, Mohammed Gamal wrote: As RHEL8 beta has been released and is based on recent upstream kernels which don't us

Re: [dpdk-dev] [PATCH v2] kni:fix build failure as "ndo_change_mtu_rh74" not found in RHEL8

2018-12-19 Thread Ferruh Yigit
On 12/19/2018 1:26 PM, Ferruh Yigit wrote: > On 12/19/2018 7:07 AM, Xiao Liang wrote: >> 'ndo_change_mtu_rh74' was changed to 'ndo_change_mtu' in RHEL8. >> >> Build error log: >> /home/dpdk-18.11/kernel/linux/kni/compat.h:107:24: error: ‘const struct >> net_device_ops’ has no member named ‘ndo_chan

[dpdk-dev] [RFC PATCH] detect missing experimental tags in headers

2018-12-19 Thread David Marchand
Add a little script to get the symbols of a given section looking at a library map file, then, on installation, inspect the sources headers to check that the declaration of the EXPERIMENTAL symbols are prefixed with a __rte_experimental tag. Signed-off-by: David Marchand --- For now, the check i

Re: [dpdk-dev] [PATCH 2/4] net/cxgbe: fix macros related to logs for Windows

2018-12-19 Thread Ferruh Yigit
On 12/19/2018 12:39 PM, Rahul Lakkireddy wrote: > On Tuesday, December 12/18/18, 2018 at 23:55:26 +0530, Ferruh Yigit wrote: >> On 12/13/2018 3:02 PM, Rahul Lakkireddy wrote: >>> Replace "args..." with "fmt, ..." and directly use __VA_ARGS__. >> >> What do you mean exactly by "for Windows"? Which c

Re: [dpdk-dev] Marking symbols as experimental in the headers only

2018-12-19 Thread David Marchand
On Wed, Dec 19, 2018 at 1:39 PM Neil Horman wrote: > On Wed, Dec 19, 2018 at 10:12:06AM +0100, David Marchand wrote: > > On Tue, Dec 18, 2018 at 1:27 PM David Marchand < > david.march...@redhat.com> > > wrote: > > But my script still needs some work to make it lighter... > > A fresh build went fr

Re: [dpdk-dev] [PATCH v2] kni:fix build failure as "ndo_change_mtu_rh74" not found in RHEL8

2018-12-19 Thread Ferruh Yigit
On 12/19/2018 7:07 AM, Xiao Liang wrote: > 'ndo_change_mtu_rh74' was changed to 'ndo_change_mtu' in RHEL8. > > Build error log: > /home/dpdk-18.11/kernel/linux/kni/compat.h:107:24: error: ‘const struct > net_device_ops’ has no member named ‘ndo_change_mtu_rh74’; did you mean > ‘ndo_change_mtu’? >

Re: [dpdk-dev] [PATCH v2] crypto/aesni_mb: use architure independent marcos

2018-12-19 Thread Zhang, Roy Fan
Hi Thomas, Sorry the patch caused the problem. I have tested the patch with intel-ipsec-mb 0.50/0.52 library with make and did not find problem. Once switching between versions of ipsec-mb, a necessary "make uninstall" has to be done to clear old in /usr. However I didn't test meson in 0.50, s

[dpdk-dev] [PATCH 1/3] rte_ethdev: Add API function to read dev clock

2018-12-19 Thread Tom Barbette
Add rte_eth_read_clock to read the raw clock of a devide. The main use is to get the device clock conversion co-efficients to be able to translate the raw clock of the timestamp field of the pkt mbuf to a local synced time value. This function was missing to allow users to convert the RX timestam

[dpdk-dev] [PATCH 0/3] Add rte_eth_read_clock API

2018-12-19 Thread Tom Barbette
Some NICs allow to timestamp packets, but do not support the full PTP synchronization process. Hence, the value set in the mbuf timestamp field is only the raw value of an internal clock. To make sense of this value, one at least needs to be able to query the current hardware clock value. As with

[dpdk-dev] [PATCH 2/3] mlx5: Implement support for read_clock

2018-12-19 Thread Tom Barbette
Signed-off-by: Tom Barbette --- drivers/net/mlx5/Makefile | 2 +- drivers/net/mlx5/meson.build | 2 +- drivers/net/mlx5/mlx5.c| 1 + drivers/net/mlx5/mlx5.h| 1 + drivers/net/mlx5/mlx5_ethdev.c | 30 ++ drivers/net/mlx5/mlx5_glue.c | 8 +++

[dpdk-dev] [PATCH 3/3] rxtx_callbacks: Add support for HW timestamp

2018-12-19 Thread Tom Barbette
Use rxtx callback to demonstrate a way to use rte_eth_read_clock to convert the hardware timestamps to an amount of cycles. This allows to get the amount of time the packet spent since its entry in the device. While the regular latency only shows the latency from when it entered the software stack

Re: [dpdk-dev] Pktgen having problem with Lua on RHEL

2018-12-19 Thread Wiles, Keith
> On Dec 18, 2018, at 7:53 PM, Hossein Golestani wrote: > > Hi, > > I'm having a hard time compiling Pktgen on a Red Hat machine. The source of > the problem is the Lua library. > > I'm using Pktgen 3.5.9, and it requires Lua 5.3. Standard installation of > Lua on RHEL ends up having Lua 5.1.

Re: [dpdk-dev] [PATCH 2/4] net/cxgbe: fix macros related to logs for Windows

2018-12-19 Thread Rahul Lakkireddy
On Wednesday, December 12/19/18, 2018 at 19:15:39 +0530, Ferruh Yigit wrote: > On 12/19/2018 12:39 PM, Rahul Lakkireddy wrote: > > On Tuesday, December 12/18/18, 2018 at 23:55:26 +0530, Ferruh Yigit wrote: > >> On 12/13/2018 3:02 PM, Rahul Lakkireddy wrote: > >>> Replace "args..." with "fmt, ..." a

Re: [dpdk-dev] [PATCH 1/2] rwlock: introduce 'try' semantics for RD and WR locking

2018-12-19 Thread Honnappa Nagarahalli
> > > > > This patch targets 19.02 release. > > > > Introduce rte_rwlock_read_trylock() and rte_rwlock_write_trylock(). > > Signed-off-by: Konstantin Ananyev > > --- > > .../common/include/generic/rte_rwlock.h | 54 +++ > > lib/librte_eal/rte_eal_version.map| 2

Re: [dpdk-dev] [PATCH v4 06/10] ipsec: implement SA data-path API

2018-12-19 Thread Akhil Goyal
On 12/14/2018 9:53 PM, Konstantin Ananyev wrote: > Provide implementation for rte_ipsec_pkt_crypto_prepare() and > rte_ipsec_pkt_process(). > Current implementation: > - supports ESP protocol tunnel mode. > - supports ESP protocol transport mode. > - supports ESN and replay window. > - su

[dpdk-dev] [PATCH v5 1/2] meter: add new rte color definition

2018-12-19 Thread Reshma Pattan
Added new rte_color definition in librte_meter to consolidate color definition which is currently replicated in various places such as rte_meter.h, rte_tm.h and rte_mtr.h Created aliases for rte_tm_color, rte_mtr_color and rte_meter_color to use new rte_color values. The definitions of rte_tm_col

[dpdk-dev] [PATCH v5 2/2] mbuf: implement generic format for sched field

2018-12-19 Thread Reshma Pattan
This patch implements the changes proposed in the deprecation notes [1][2]. librte_mbuf changes: The mbuf::hash::sched field is updated to support generic definition in line with the ethdev TM and MTR APIs. The new generic format contains: queue ID, traffic class, color. Added public APIs to set

[dpdk-dev] [PATCH v6 1/2] meter: add new rte color definition

2018-12-19 Thread Reshma Pattan
Added new rte_color definition in librte_meter to consolidate color definition which is currently replicated in various places such as rte_meter.h, rte_tm.h and rte_mtr.h Created aliases for rte_tm_color, rte_mtr_color and rte_meter_color to use new rte_color values. The definitions of rte_tm_col

[dpdk-dev] [PATCH v6 2/2] mbuf: implement generic format for sched field

2018-12-19 Thread Reshma Pattan
This patch implements the changes proposed in the deprecation notes [1][2]. librte_mbuf changes: The mbuf::hash::sched field is updated to support generic definition in line with the ethdev TM and MTR APIs. The new generic format contains: queue ID, traffic class, color. Added public APIs to set

Re: [dpdk-dev] [PATCH v4 08/10] ipsec: helper functions to group completed crypto-ops

2018-12-19 Thread Akhil Goyal
On 12/14/2018 9:53 PM, Konstantin Ananyev wrote: > Introduce helper functions to process completed crypto-ops > and group related packets by sessions they belong to. > > Signed-off-by: Konstantin Ananyev > Acked-by: Declan Doherty > --- > lib/librte_ipsec/Makefile | 1 + > lib

Re: [dpdk-dev] [PATCH v2 1/4] vhost: enforce avail index and desc read ordering

2018-12-19 Thread Michael S. Tsirkin
On Wed, Dec 19, 2018 at 09:21:10AM +0100, Maxime Coquelin wrote: > A read barrier is required to ensure the ordering between > available index and the descriptor reads is enforced. > > 1. read avail_head = avail->idx > 2. read cur_idx = last_avail_idx > if (cur_idx != avail_head) { > 3. read i

[dpdk-dev] [PATCH v5 1/3] compress/isal: enable checksum support in driver

2018-12-19 Thread Lee Daly
This patch adds checksum support in the ISA-L PMD for both compression and decompression. CRC32 is supported as well as Adler32. V2: Documentation Changes V3: Added Release note V4: Removed dependency on offset unit test V5: If checksum type is incorrect, compression will continue without checksu

[dpdk-dev] [PATCH v5 2/3] test/compress: add checksum tests

2018-12-19 Thread Lee Daly
This patch adds a test which examines what type of checksum the PMD supports, adler, crc32 or alder32_crc32 and tests that feature if the PMD supports it. V2: Documentation Changes V3: Added Release note V4: Removed dependency on offset unit test V5: If checksum type is incorrect, compression will

[dpdk-dev] [PATCH v5 3/3] doc: update ISA-L guide to reflect checksum support

2018-12-19 Thread Lee Daly
This updates the ISA-L compression driver guide on how to enable and use checksums and release notes. Signed-off-by: Lee Daly Acked-by: Fiona Trahe --- doc/guides/compressdevs/features/isal.ini | 2 ++ doc/guides/compressdevs/isal.rst | 30 -- doc/guides/re

Re: [dpdk-dev] [PATCH v2 4/4] vhost: remove useless prefetch for packed ring descriptor

2018-12-19 Thread Michael S. Tsirkin
On Wed, Dec 19, 2018 at 09:21:13AM +0100, Maxime Coquelin wrote: > This prefetch does not show any performance improvement. > > Signed-off-by: Maxime Coquelin Likely because of the RMB. Try prefetching the *next* descriptor maybe? > --- > lib/librte_vhost/virtio_net.c | 2 -- > 1 file changed,

Re: [dpdk-dev] [PATCH v2 1/4] vhost: enforce avail index and desc read ordering

2018-12-19 Thread Maxime Coquelin
On 12/19/18 4:47 PM, Michael S. Tsirkin wrote: On Wed, Dec 19, 2018 at 09:21:10AM +0100, Maxime Coquelin wrote: A read barrier is required to ensure the ordering between available index and the descriptor reads is enforced. 1. read avail_head = avail->idx 2. read cur_idx = last_avail_idx if

Re: [dpdk-dev] [PATCH v2 0/4] vhost: add missing barriers, move prefetching

2018-12-19 Thread Michael S. Tsirkin
On Wed, Dec 19, 2018 at 09:21:09AM +0100, Maxime Coquelin wrote: > This series adds missing read barriers after reading avail index > for split ring and desc flags for packed ring. > > Also, it turns out that some descriptors prefetching are either > badly placed, or useless, last part of the seri

Re: [dpdk-dev] [PATCH v4 09/10] test/ipsec: introduce functional test

2018-12-19 Thread Akhil Goyal
On 12/14/2018 9:53 PM, Konstantin Ananyev wrote: > +static struct unit_test_suite ipsec_testsuite = { > + .suite_name = "IPsec NULL Unit Test Suite", > + .setup = testsuite_setup, > + .teardown = testsuite_teardown, > + .unit_test_cases = { > + TEST_CASE_ST(ut_setup,

Re: [dpdk-dev] [PATCH v4 10/10] doc: add IPsec library guide

2018-12-19 Thread Akhil Goyal
On 12/14/2018 9:57 PM, Konstantin Ananyev wrote: > Add IPsec library guide and update release notes. > > Signed-off-by: Bernard Iremonger > Signed-off-by: Konstantin Ananyev > --- > doc/guides/prog_guide/index.rst| 1 + > doc/guides/prog_guide/ipsec_lib.rst| 74 +

[dpdk-dev] [PATCH v2] timer: fix race condition

2018-12-19 Thread Erik Gabriel Carrillo
rte_timer_manage() adds expired timers to a "run list", and walks the list, transitioning each timer from the PENDING to the RUNNING state. If another lcore resets or stops the timer at precisely this moment, the timer state would instead be set to CONFIG by that other lcore, which would cause time

Re: [dpdk-dev] [PATCH] vhost: batch used descriptors chains write-back with packed ring

2018-12-19 Thread Michael S. Tsirkin
On Wed, Dec 19, 2018 at 10:16:24AM +0100, Maxime Coquelin wrote: > > > On 12/12/18 7:53 PM, Michael S. Tsirkin wrote: > > On Wed, Dec 12, 2018 at 05:34:31PM +0100, Maxime Coquelin wrote: > > > Hi Ilya, > > > > > > On 12/12/18 4:23 PM, Ilya Maximets wrote: > > > > On 12.12.2018 11:24, Maxime Coqu

Re: [dpdk-dev] [PATCH 1/1] timer: fix race condition

2018-12-19 Thread Carrillo, Erik G
> > > However, if a timer expires quickly enough, there exists the > > > following race condition that causes the timer_manage() routine to > > > misinterpret a timer in CONFIG state, resulting in lost timers: > > > > > > - Thread A: > > > - starts a timer with rte_timer_reset() > > > - the tim

Re: [dpdk-dev] [PATCH 1/2] rwlock: introduce 'try' semantics for RD and WR locking

2018-12-19 Thread Ananyev, Konstantin
> > > + * try to take a write lock. > > > + * > > > + * @param rwl > > > + * A pointer to a rwlock structure. > > > + * @return > > > + * - zero if the lock is successfully taken > > > + * - -EBUSY if lock could not be acquired for writing because > > > + * it was already locked for re

Re: [dpdk-dev] [PATCH v2 0/4] vhost: add missing barriers, move prefetching

2018-12-19 Thread Ilya Maximets
On 19.12.2018 18:50, Michael S. Tsirkin wrote: > On Wed, Dec 19, 2018 at 09:21:09AM +0100, Maxime Coquelin wrote: >> This series adds missing read barriers after reading avail index >> for split ring and desc flags for packed ring. >> >> Also, it turns out that some descriptors prefetching are eith

[dpdk-dev] [PATCH v2 0/4] net/cxgbe: fix build for Microsoft Windows OS support

2018-12-19 Thread Rahul Lakkireddy
This series of patches fix compilation warning and errors seen while building CXGBE PMD in preparation for Microsoft Windows OS support. Patch 1 uses relative paths for including header files. Patch 2 fixes macros related to rte_log(). Patch 3 only redefines symbols when they are not available. Pa

[dpdk-dev] [PATCH v2 1/4] net/cxgbe: use relative paths for including header files

2018-12-19 Thread Rahul Lakkireddy
The Intel C++ compiler is not able to locate the header files without relative paths in Windows build. Following errors are seen for these header files. C:\> base\common.h(9): error : cannot open source file "cxgbe_compat.h" #include "cxgbe_compat.h" ^ [...

[dpdk-dev] [PATCH v2 2/4] net/cxgbe: fix macros related to logs for Windows

2018-12-19 Thread Rahul Lakkireddy
Replace "args..." with "fmt, ..." and directly use __VA_ARGS__. This fixes following errors reported by Intel C++ compiler in Windows build. C:\> cxgbe_compat.h(28): error : expected a ")" #define dev_printf(level, fmt, args...) \ ^ C:\> cxgbe_compa

[dpdk-dev] [PATCH v2 3/4] net/cxgbe: only define symbols when not available

2018-12-19 Thread Rahul Lakkireddy
Define symbols only when they are not available. This fixes following types of issues reported by Intel C++ compiler in Windows build. C:\> cxgbe_compat.h(154): warning #47: incompatible redefinition of macro "min" #define min(a, b) RTE_MIN(a, b) ^ C:\> t4_hw.c(338): warn

[dpdk-dev] [PATCH v2 4/4] net/cxgbe: fix other misc build issues for Windows

2018-12-19 Thread Rahul Lakkireddy
Fix following build errors reported by Intel C++ compiler in Windows build. C:\> t4_hw.c(5105): warning #147: declaration is incompatible with "int t4_bar2_sge_qregs(struct adapter *, unsigned int, unsigned int, u64={uint64_t={unsigned __int64}} *, unsigned int *)" (declared at line 524 of "..\..\

Re: [dpdk-dev] [PATCH v2] vhost: batch used descs chains write-back with packed ring

2018-12-19 Thread Michael S. Tsirkin
On Wed, Dec 19, 2018 at 10:29:52AM +0100, Maxime Coquelin wrote: > Instead of writing back descriptors chains in order, let's > write the first chain flags last in order to improve batching. > > With Kernel's pktgen benchmark, ~3% performance gain is measured. > > Signed-off-by: Maxime Coquelin

Re: [dpdk-dev] [PATCH] compressdev: add feature flag to specify where processing is done

2018-12-19 Thread Trahe, Fiona
Hi Shally, > -Original Message- > From: Verma, Shally [mailto:shally.ve...@cavium.com] > Sent: Tuesday, December 18, 2018 10:48 PM > To: Trahe, Fiona ; Stephen Hemminger > > Cc: dev@dpdk.org; akhil.go...@nxp.com; Jozwiak, TomaszX > ; Gupta, > Ashish ; Daly, Lee ; Luse, Paul E > > Subje

Re: [dpdk-dev] [PATCH v3 1/3] dfs:add FUSE based filesystem for DPDK

2018-12-19 Thread Wiles, Keith
> On Dec 17, 2018, at 9:01 AM, Wiles, Keith wrote: > > > >> On Dec 17, 2018, at 5:45 AM, Thomas Monjalon wrote: >> >> Hi Keith, >> >> 16/12/2018 18:46, Keith Wiles: >>> DFS stands for DPDK Filesystem, which helps expose data >>> and control files in a FUSE based filesystem. The dfs require

[dpdk-dev] [PATCH v2 1/2] rwlock: introduce 'try' semantics for RD and WR locking

2018-12-19 Thread Konstantin Ananyev
Introduce rte_rwlock_read_trylock() and rte_rwlock_write_trylock(). Signed-off-by: Konstantin Ananyev Reviewed-by: Honnappa Nagarahalli Reviewed-by: Gavin Hu --- .../common/include/generic/rte_rwlock.h | 56 +++ 1 file changed, 56 insertions(+) diff --git a/lib/librte_ea

[dpdk-dev] [PATCH v2 0/2] Add 'try' semantics for RD and WR locking

2018-12-19 Thread Konstantin Ananyev
Introduce rte_rwlock_read_trylock() and rte_rwlock_write_trylock() and new UT test-case for it. v1 -> v2 Changes per Honnappa and Gavin comments: - remove cycle in rte_rwlock_write_trylock() - remove static inline functions from .map file - update comments Konstantin Ananyev (2): rwlock: in

[dpdk-dev] [PATCH v2 2/2] test: add new test-cases for rwlock autotest

2018-12-19 Thread Konstantin Ananyev
Add few functional and perfomance tests for rte_rwlock_read_trylock() and rte_rwlock_write_trylock(). Signed-off-by: Konstantin Ananyev Reviewed-by: Gavin Hu --- test/test/test_rwlock.c | 409 ++-- 1 file changed, 390 insertions(+), 19 deletions(-) diff --gi

  1   2   >