[dpdk-dev] [PATCH v5 3/3] net/mlx5: rewrite TTL by E-Switch

2018-10-12 Thread Jack Min
Offload following modify TTL actions to E-Switch via TC-Flower driver - RTE_FLOW_ACTION_TYPE_SET_TTL - RTE_FLOW_ACTION_TYPE_DEC_TTL The corresponding IP protocol rte_flow_item_ipv[4|6] must be present in rte_flow pattern otherwith PMD return error The example testpmd commands are: flow crea

[dpdk-dev] [PATCH v5 2/3] app/testpmd: add commands of modify TTL

2018-10-12 Thread Jack Min
add commands which supports following TTL actions: - RTE_FLOW_ACTION_TYPE_DEC_TTL - RTE_FLOW_ACTION_TYPE_SET_TTL Signed-off-by: Xiaoyu Min Acked-by: Yongseok Koh --- app/test-pmd/cmdline_flow.c | 34 + doc/guides/testpmd_app_ug/testpmd_funcs.rst | 5 +++ 2 f

[dpdk-dev] [PATCH v5 1/3] ethdev: add generic TTL rewrite actions

2018-10-12 Thread Jack Min
rewrite TTL by decrease or just set it directly it's not necessary to check if the final result is zero or not This is slightly different from the one defined by openflow and more generic Signed-off-by: Xiaoyu Min Acked-by: Yongseok Koh --- doc/guides/prog_guide/rte_flow.rst | 30 +

[dpdk-dev] [PATCH v5 0/3] ethdev: add generic TTL rewrite actions

2018-10-12 Thread Jack Min
This patch series is for RFC[1] and depends on patch[2] Patch 1 adds generic TTL rewrite actions to flow API Patch 2 adds corresponding testpmd commands Patch 3 implements the offloading logic of E-Switch rules on Mellanox MLX5 [1]: https://patches.dpdk.org/patch/43617/ [2]: http://patches.dpdk.o

Re: [dpdk-dev] [PATCH v3 7/7] test/hash: read-write lock-free concurrency test

2018-10-12 Thread Wang, Yipeng1
>-Original Message- >From: Honnappa Nagarahalli [mailto:honnappa.nagaraha...@arm.com] >Sent: Thursday, October 11, 2018 11:32 PM >To: Richardson, Bruce ; De Lara Guarch, Pablo > >Cc: dev@dpdk.org; Wang, Yipeng1 ; >honnappa.nagaraha...@arm.com; dharmik.thak...@arm.com; >gavin...@arm.com; n

Re: [dpdk-dev] [PATCH v3 6/7] hash: enable lock-free reader-writer concurrency

2018-10-12 Thread Wang, Yipeng1
>-Original Message- >From: Honnappa Nagarahalli [mailto:honnappa.nagaraha...@arm.com] >Sent: Thursday, October 11, 2018 11:32 PM >To: Richardson, Bruce ; De Lara Guarch, Pablo > >Cc: dev@dpdk.org; Wang, Yipeng1 ; >honnappa.nagaraha...@arm.com; dharmik.thak...@arm.com; >gavin...@arm.com; n

Re: [dpdk-dev] [PATCH v4 1/3] ethdev: add generic TTL rewrite actions

2018-10-12 Thread Jack Min
On 18-10-12 15:12:06, Ferruh Yigit wrote: > On 10/11/2018 2:27 PM, Jack Min wrote: > > rewrite TTL by decrease or just set it directly > > it's not necessary to check if the final result > > is zero or not > > > > This is slightly different from the one defined > > by openflow and more generic > >

Re: [dpdk-dev] [PATCH v3 5/7] hash: fix rw concurrency while moving keys

2018-10-12 Thread Wang, Yipeng1
>-Original Message- >From: Honnappa Nagarahalli [mailto:honnappa.nagaraha...@arm.com] >Sent: Thursday, October 11, 2018 11:32 PM >To: Richardson, Bruce ; De Lara Guarch, Pablo > >Cc: dev@dpdk.org; Wang, Yipeng1 ; >honnappa.nagaraha...@arm.com; dharmik.thak...@arm.com; >gavin...@arm.com; n

Re: [dpdk-dev] [PATCH v3 4/7] hash: add memory ordering to avoid race conditions

2018-10-12 Thread Wang, Yipeng1
When I applied this commit: fatal: sha1 information is lacking or useless (lib/librte_hash/rte_cuckoo_hash.c). Please double check. >-Original Message- >From: Honnappa Nagarahalli [mailto:honnappa.nagaraha...@arm.com] >Sent: Thursday, October 11, 2018 11:32 PM >To: Richardson, Bruce ; De

Re: [dpdk-dev] [PATCH v3 3/7] hash: correct key store element alignment

2018-10-12 Thread Wang, Yipeng1
>-Original Message- >From: Honnappa Nagarahalli [mailto:honnappa.nagaraha...@arm.com] >Sent: Thursday, October 11, 2018 11:32 PM >To: Richardson, Bruce ; De Lara Guarch, Pablo > >Cc: dev@dpdk.org; Wang, Yipeng1 ; >honnappa.nagaraha...@arm.com; dharmik.thak...@arm.com; >gavin...@arm.com; n

Re: [dpdk-dev] [PATCH v3 2/7] hash: support do not recycle on delete

2018-10-12 Thread Wang, Yipeng1
>-Original Message- >From: Honnappa Nagarahalli [mailto:honnappa.nagaraha...@arm.com] >Sent: Thursday, October 11, 2018 11:32 PM >To: Richardson, Bruce ; De Lara Guarch, Pablo > >Cc: dev@dpdk.org; Wang, Yipeng1 ; >honnappa.nagaraha...@arm.com; dharmik.thak...@arm.com; >gavin...@arm.com; n

Re: [dpdk-dev] [PATCH v3 1/7] hash: separate multi-writer from rw-concurrency

2018-10-12 Thread Wang, Yipeng1
>-Original Message- >From: Honnappa Nagarahalli [mailto:honnappa.nagaraha...@arm.com] >Sent: Thursday, October 11, 2018 11:32 PM >To: Richardson, Bruce ; De Lara Guarch, Pablo > >Cc: dev@dpdk.org; Wang, Yipeng1 ; >honnappa.nagaraha...@arm.com; dharmik.thak...@arm.com; >gavin...@arm.com; n

[dpdk-dev] [PATCH 1/3] doc: remove INIT_DEBUG from ena

2018-10-12 Thread Stephen Hemminger
The ena driver has used dynamic log type to enable init debugging since 18.05 but the documentation still has leftover mention of the config option. Signed-off-by: Stephen Hemminger --- doc/guides/nics/ena.rst | 4 1 file changed, 4 deletions(-) diff --git a/doc/guides/nics/ena.rst b/doc/g

[dpdk-dev] [PATCH 3/3] qede: remove #ifdef for INIT_DEBUG

2018-10-12 Thread Stephen Hemminger
Now that logging of initialization is controlled by dynamic debug level, remove the #ifdef for RTE_LIBRTE_QEDE_DEBUG_INIT since that config option does not exist in common_base and is not documented. Signed-off-by: Stephen Hemminger --- drivers/net/qede/qede_ethdev.c | 9 + 1 file change

[dpdk-dev] [PATCH 2/3] doc: liquidio remove documentation for old config options

2018-10-12 Thread Stephen Hemminger
The config options for init and debug driver were replaced by dynamic log levels. Signed-off-by: Stephen Hemminger --- doc/guides/nics/liquidio.rst | 8 1 file changed, 8 deletions(-) diff --git a/doc/guides/nics/liquidio.rst b/doc/guides/nics/liquidio.rst index 87b42cdc4835..e2a38004d

[dpdk-dev] [PATCH 0/3] leftover INIT_DEBUG stuff

2018-10-12 Thread Stephen Hemminger
Was looking around and found some leftover references to old INIT_DEBUG configurations. Stephen Hemminger (3): doc: remove INIT_DEBUG from ena doc: liquidio remove documentation for old config options qede: remove #ifdef for INIT_DEBUG doc/guides/nics/ena.rst| 4 doc/guides/ni

Re: [dpdk-dev] [PATCH v4 1/4] ethdev: rename memzones allocated for DMA

2018-10-12 Thread Andrew Rybchenko
On October 12, 2018 20:21:32 Thomas Monjalon wrote: 12/10/2018 19:18, Thomas Monjalon: 12/10/2018 18:46, Andrew Rybchenko: > On 10/12/18 7:42 PM, Andrew Rybchenko wrote: > > On 10/12/18 7:40 PM, Thomas Monjalon wrote: > >> 12/10/2018 09:53, Andrew Rybchenko: > >>> On 10/12/18 12:02 AM, Thom

Re: [dpdk-dev] [PATCH] test/test: allow taking extra arguments from environment

2018-10-12 Thread Luca Boccassi
On Fri, 2018-10-12 at 16:34 +0100, Bruce Richardson wrote: > When running unit tests automatically, either via script, from meson, > or otherwise, the same set of options may be used for each run, for > example to set a standard coremask to be used for all tests. > > To facilitate this, this patch

Re: [dpdk-dev] [PATCH v6 00/22] net/atlantic: Aquantia aQtion 10G NIC Family DPDK PMD driver

2018-10-12 Thread Igor Russkikh
Hi Ferruh, On 12.10.2018 19:22, Ferruh Yigit wrote: > On 10/12/2018 12:09 PM, Igor Russkikh wrote: >> Hello DPDK community! >> >> Aquantia would like to contribute PMD for aQtion AQC10X NIC family: >> https://www.aquantia.com/products/aqtion/chips/ >> These are 10G ethernet NICs with various featu

Re: [dpdk-dev] [PATCH v4 1/4] ethdev: rename memzones allocated for DMA

2018-10-12 Thread Thomas Monjalon
12/10/2018 19:18, Thomas Monjalon: > 12/10/2018 18:46, Andrew Rybchenko: > > On 10/12/18 7:42 PM, Andrew Rybchenko wrote: > > > On 10/12/18 7:40 PM, Thomas Monjalon wrote: > > >> 12/10/2018 09:53, Andrew Rybchenko: > > >>> On 10/12/18 12:02 AM, Thomas Monjalon wrote: > > The helper rte_eth_dma

Re: [dpdk-dev] [PATCH v4 1/4] ethdev: rename memzones allocated for DMA

2018-10-12 Thread Thomas Monjalon
12/10/2018 18:46, Andrew Rybchenko: > On 10/12/18 7:42 PM, Andrew Rybchenko wrote: > > On 10/12/18 7:40 PM, Thomas Monjalon wrote: > >> 12/10/2018 09:53, Andrew Rybchenko: > >>> On 10/12/18 12:02 AM, Thomas Monjalon wrote: > The helper rte_eth_dma_zone_reserve() is called by PMDs > when p

Re: [dpdk-dev] [PATCH] app/testpmd: fix vdev socket initialization

2018-10-12 Thread Ferruh Yigit
On 10/12/2018 10:34 AM, phil.y...@arm.com wrote: > The cmdline settings of port-numa-config and rxring-numa-config have been > flushed by the following init_config. If we don't configure the > port-numa-config, the virtual device will allocate the device ports to > socket 0. It will cause failure w

Re: [dpdk-dev] [PATCH v2] build: add meson.build for kni kernel module

2018-10-12 Thread Luca Boccassi
On Fri, 2018-10-12 at 17:29 +0100, Bruce Richardson wrote: > On Fri, Oct 12, 2018 at 04:12:21PM +0100, Luca Boccassi wrote: > > A Kbuild is also included to allow users to use DKMS natively > > without > > additional code. > > > > Signed-off-by: Luca Boccassi > > --- > > v2: add local directory t

[dpdk-dev] [PATCH v3] build: add meson.build for kni kernel module

2018-10-12 Thread Luca Boccassi
A Kbuild is also included to allow users to use DKMS natively without additional code. Signed-off-by: Luca Boccassi Tested-by: Bruce Richardson Acked-by: Bruce Richardson --- v2: add local directory to -I and build sources list recursively to fix build on Fedora v3: add console: true so tha

Re: [dpdk-dev] [PATCH v4 1/4] ethdev: rename memzones allocated for DMA

2018-10-12 Thread Andrew Rybchenko
On 10/12/18 7:42 PM, Andrew Rybchenko wrote: On 10/12/18 7:40 PM, Thomas Monjalon wrote: 12/10/2018 09:53, Andrew Rybchenko: On 10/12/18 12:02 AM, Thomas Monjalon wrote: The helper rte_eth_dma_zone_reserve() is called by PMDs when probing a new port. It creates a new memzone with an unique nam

Re: [dpdk-dev] [PATCH v4 1/4] ethdev: rename memzones allocated for DMA

2018-10-12 Thread Andrew Rybchenko
On 10/12/18 7:40 PM, Thomas Monjalon wrote: 12/10/2018 09:53, Andrew Rybchenko: On 10/12/18 12:02 AM, Thomas Monjalon wrote: The helper rte_eth_dma_zone_reserve() is called by PMDs when probing a new port. It creates a new memzone with an unique name. The name of this memzone was using the name

Re: [dpdk-dev] [PATCH v4 1/4] ethdev: rename memzones allocated for DMA

2018-10-12 Thread Thomas Monjalon
12/10/2018 09:53, Andrew Rybchenko: > On 10/12/18 12:02 AM, Thomas Monjalon wrote: > > The helper rte_eth_dma_zone_reserve() is called by PMDs > > when probing a new port. > > It creates a new memzone with an unique name. > > The name of this memzone was using the name of the driver > > doing the p

Re: [dpdk-dev] [PATCH v2] build: add meson.build for kni kernel module

2018-10-12 Thread Bruce Richardson
On Fri, Oct 12, 2018 at 04:12:21PM +0100, Luca Boccassi wrote: > A Kbuild is also included to allow users to use DKMS natively without > additional code. > > Signed-off-by: Luca Boccassi > --- > v2: add local directory to -I and build sources list recursively to > fix build on Fedora > Yep,

Re: [dpdk-dev] [PATCH v2 1/5] bus/fslmc: fix physical addressing check

2018-10-12 Thread Pavan Nikhilesh
On Fri, Oct 12, 2018 at 04:14:36PM +0530, Shreyansh Jain wrote: > On Friday 12 October 2018 02:31 PM, Pavan Nikhilesh wrote: > > Hi Shreyansh, > > > > On Tue, Oct 09, 2018 at 04:55:44PM +0530, Shreyansh Jain wrote: > > > In case RTE_LIBRTE_DPAA2_USE_PHYS_IOVA is enabled, only supported > > > class

Re: [dpdk-dev] [PATCH v6 00/22] net/atlantic: Aquantia aQtion 10G NIC Family DPDK PMD driver

2018-10-12 Thread Ferruh Yigit
On 10/12/2018 12:09 PM, Igor Russkikh wrote: > Hello DPDK community! > > Aquantia would like to contribute PMD for aQtion AQC10X NIC family: > https://www.aquantia.com/products/aqtion/chips/ > These are 10G ethernet NICs with various features. > > We do base this work on parts of the existing nat

Re: [dpdk-dev] [PATCH v2] vhost: add doxygen comment to vDPA header

2018-10-12 Thread Maxime Coquelin
On 10/12/2018 10:52 AM, Xiaolong Ye wrote: As APIs in rte_vdpa.h are public, we need to add doxygen comments to all APIs and structures. Signed-off-by: Xiaolong Ye Reviewed-by: Maxime Coquelin --- changes from v1: 1. add descriptions for all fields of structs 2. add warning section for

Re: [dpdk-dev] [PATCH v4 2/4] drivers/bus: move driver assignment to end of probing

2018-10-12 Thread Thomas Monjalon
12/10/2018 09:44, Andrew Rybchenko: > Hi, Thomas, > > On 10/12/18 12:02 AM, Thomas Monjalon wrote: > > The PCI mapping requires to know the PCI driver to use, > > even before the probing is done. That's why the PCI driver is > > referenced early inside the PCI device structure. See > > commit 1d20

[dpdk-dev] [PATCH] test/test: allow taking extra arguments from environment

2018-10-12 Thread Bruce Richardson
When running unit tests automatically, either via script, from meson, or otherwise, the same set of options may be used for each run, for example to set a standard coremask to be used for all tests. To facilitate this, this patch adds support for the test binary taking additional EAL parameters fr

[dpdk-dev] [PATCH] net/softnic: add rte flow vxlan action support

2018-10-12 Thread Reshma Pattan
Added support to handle vxlan action of rte flow rule. Signed-off-by: Reshma Pattan Acked-by: Dumitrescu Cristian --- drivers/net/softnic/rte_eth_softnic_flow.c | 192 + 1 file changed, 192 insertions(+) diff --git a/drivers/net/softnic/rte_eth_softnic_flow.c b/drivers/net

Re: [dpdk-dev] [PATCH] build: add meson.build for kni kernel module

2018-10-12 Thread Luca Boccassi
On Fri, 2018-10-12 at 15:09 +0100, Bruce Richardson wrote: > On Thu, Oct 11, 2018 at 08:46:29PM +0100, Luca Boccassi wrote: > > A Kbuild is also included to allow users to use DKMS natively > > without > > additional code. > > > > Signed-off-by: Luca Boccassi > > --- > > build-tested on debian si

[dpdk-dev] [PATCH v2] build: add meson.build for kni kernel module

2018-10-12 Thread Luca Boccassi
A Kbuild is also included to allow users to use DKMS natively without additional code. Signed-off-by: Luca Boccassi --- v2: add local directory to -I and build sources list recursively to fix build on Fedora kernel/linux/kni/Kbuild| 8 ++ kernel/linux/kni/ethtool/ig

Re: [dpdk-dev] [PATCH] ethdev: add function name to log message

2018-10-12 Thread Stephen Hemminger
On Fri, 12 Oct 2018 14:43:57 +0200 Adrien Mazarguil wrote: > On Fri, Oct 12, 2018 at 11:45:01AM +0100, Ferruh Yigit wrote: > > On 10/12/2018 11:42 AM, Ferruh Yigit wrote: > > > On 10/11/2018 6:59 PM, Stephen Hemminger wrote: > > >> @@ -161,8 +161,9 @@ extern "C" { > > >> > > >> extern int

[dpdk-dev] [PATCH v4 8/8] doc: add guides for fips validation

2018-10-12 Thread Marko Kovacevic
Document explains how to run the fips sample app and instructions users need to parser all the request files and generate the response files. Signed-off-by: Marko Kovacevic Signed-off-by: Fan Zhang --- doc/guides/rel_notes/release_18_11.rst | 6 ++ doc/guides/sample_app_ug/fips_validati

[dpdk-dev] [PATCH v4 7/8] examples: add ccm parser and enablement for test types

2018-10-12 Thread Marko Kovacevic
Added enablement for CCM parser, to allow the application to parser the ccm request files and to validate all test types supported. Signed-off-by: Marko Kovacevic Signed-off-by: Fan Zhang --- examples/cryptodev_fips_validate/Makefile | 1 + .../cryptodev_fips_parse_ccm.c

[dpdk-dev] [PATCH v4 6/8] examples: add cmac parser and enablement for test types

2018-10-12 Thread Marko Kovacevic
Added enablement for CMAC parser, to allow the application to parser the cmac request files and to validate all test types supported. Signed-off-by: Marko Kovacevic Signed-off-by: Fan Zhang --- examples/cryptodev_fips_validate/Makefile | 1 + .../cryptodev_fips_parse_cmac.c

[dpdk-dev] [PATCH v4 3/8] examples: add hmac parser

2018-10-12 Thread Marko Kovacevic
Added enablement for HMAC parser, to allow the application to parser the hmac request files and to validate all tests supported Signed-off-by: Marko Kovacevic Signed-off-by: Fan Zhang --- examples/cryptodev_fips_validate/Makefile | 1 + .../cryptodev_fips_parse_hmac.c

[dpdk-dev] [PATCH v4 5/8] examples: add gcm parser

2018-10-12 Thread Marko Kovacevic
Added enablement for GCM parser, to allow the application to parser the GCM request file and to validate all tests supported. Signed-off-by: Marko Kovacevic Signed-off-by: Fan Zhang --- examples/cryptodev_fips_validate/Makefile | 1 + .../cryptodev_fips_parse_gcm.c

[dpdk-dev] [PATCH v4 4/8] examples: add TDES parser and enablement for test types

2018-10-12 Thread Marko Kovacevic
Added enablement for TDES parser, to allow the application to parser the TDES request files and to validate all test types supported. Signed-off-by: Marko Kovacevic Signed-off-by: Fan Zhang --- examples/cryptodev_fips_validate/Makefile | 1 + .../cryptodev_fips_parse_3des.c

[dpdk-dev] [PATCH v4 1/8] examples: add fips validation into examples

2018-10-12 Thread Marko Kovacevic
Added FIPS application into the examples to allow users to use a simple sample app to validate their systems and be able to get FIPS certification. Signed-off-by: Marko Kovacevic Signed-off-by: Fan Zhang --- examples/cryptodev_fips_validate/Makefile | 69 +++ .../cryptodev_fips_parse_

[dpdk-dev] [PATCH v4 2/8] examples: add aes parser and enablement for test types

2018-10-12 Thread Marko Kovacevic
Added enablement for AES-CBC parser, to allow the application to parser the aes request file and to validate all test types supported. Signed-off-by: Marko Kovacevic Signed-off-by: Fan Zhang --- examples/cryptodev_fips_validate/Makefile | 1 + .../cryptodev_fips_parse_aes.c

[dpdk-dev] [PATCH v4 0/8] FIPS validation capability

2018-10-12 Thread Marko Kovacevic
This sample application is made for the purpose so that users of DPDK who wish to get FIPS certification for their platforms, this sample app enables users to parse test vectors that is gotten from NIST and be able to get a generated response file which they can then verify and be sure their system

[dpdk-dev] [PATCH v2 14/14] doc: add caam jr cryptodev details

2018-10-12 Thread Gagandeep Singh
From: Hemant Agrawal add caam jr driver details, supported features and algorithms in the document. release note and MAINTAINERS are also updated. Signed-off-by: Hemant Agrawal --- MAINTAINERS| 7 + doc/guides/cryptodevs/caam_jr.rst | 150 +++

[dpdk-dev] [PATCH v2 12/14] crypto/caam_jr: add statistics ops

2018-10-12 Thread Gagandeep Singh
From: Hemant Agrawal This patch adds the following statistics operations: - stats_get - stats_reset Signed-off-by: Gagandeep Singh Signed-off-by: Hemant Agrawal --- drivers/crypto/caam_jr/caam_jr.c | 54 1 file changed, 54 insertions(+) diff --git a/drivers

[dpdk-dev] [PATCH v2 13/14] crypto/caam_jr: add security offload

2018-10-12 Thread Gagandeep Singh
From: Hemant Agrawal This patch provides the support for protocol offload to the hardware. following security operations are added: - session_create - session_destroy - capabilities_get Signed-off-by: Hemant Agrawal --- drivers/crypto/caam_jr/caam_jr.c | 360 ++-

[dpdk-dev] [PATCH v2 07/14] crypto/caam_jr: add queue pair config ops

2018-10-12 Thread Gagandeep Singh
From: Hemant Agrawal add following ops for configuring queues - queue_pair_setup - queue_pair_release - queue_pair_count Signed-off-by: Gagandeep Singh Signed-off-by: Hemant Agrawal --- drivers/crypto/caam_jr/caam_jr.c | 64 1 file changed, 64 insertions(+)

[dpdk-dev] [PATCH v2 08/14] crypto/caam_jr: add device cababilities

2018-10-12 Thread Gagandeep Singh
add device capabilities for supported algorithms, key length etc. Signed-off-by: Gagandeep Singh Signed-off-by: Hemant Agrawal --- drivers/crypto/caam_jr/Makefile | 1 + drivers/crypto/caam_jr/caam_jr.h | 18 ++ drivers/crypto/caam_jr/caam_jr_capabilities.c | 266 +

[dpdk-dev] [PATCH v2 10/14] crypto/caam_jr: add enqueue dequeue operations

2018-10-12 Thread Gagandeep Singh
This patch add support for : 1. creating run time sec hw decriptors for a given request. 2. enqueue operation to the caam jr ring 3. dequeue operation from the caam jr ring in poll mode 4. creating a crypto protocol descriptor for session - first time. Signed-off-by: Gagandeep Singh Signed-off-by

[dpdk-dev] [PATCH v2 11/14] crypto/caam_jr: add scatter gather

2018-10-12 Thread Gagandeep Singh
This patch add the scatter gather feature for auth-only, cipher-only and cipher-auth operations Signed-off-by: Gagandeep Singh Signed-off-by: Hemant Agrawal --- drivers/crypto/caam_jr/caam_jr.c | 375 ++- 1 file changed, 374 insertions(+), 1 deletion(-) diff --git a

[dpdk-dev] [PATCH v2 09/14] crypto/caam_jr: add session configuration methods

2018-10-12 Thread Gagandeep Singh
This patch add support to create session configuration of various types i.e. cipher, auth and aead etc. Signed-off-by: Gagandeep Singh Signed-off-by: Hemant Agrawal --- drivers/crypto/caam_jr/caam_jr.c | 215 +++ 1 file changed, 215 insertions(+) diff --git a/driver

[dpdk-dev] [PATCH v2 02/14] crypto/caam_jr: add HW tuning options

2018-10-12 Thread Gagandeep Singh
caam_jr hardware can be tuned for multiple settings like ring depth, coalescing, notification types, cache size etc. These parameter can be used for performance tuning for various platforms. Signed-off-by: Gagandeep Singh Signed-off-by: Hemant Agrawal --- drivers/crypto/caam_jr/caam_jr_config.

[dpdk-dev] [PATCH v2 04/14] crypto/caam_jr: add UIO specific operations

2018-10-12 Thread Gagandeep Singh
caam_jr need support from kernel caam driver for job ring initialisation. So to access register space for job ring and allow re configure and map to userspace UIO interface is used. This also allows to handle the caam interrupts from the user space. This patch adds UIO specific operations Signed-

[dpdk-dev] [PATCH v2 06/14] crypto/caam_jr: add device basic ops

2018-10-12 Thread Gagandeep Singh
This patch adds following device operations - dev_configure - dev_start - dev_stop - dev_close - dev_infos_get Signed-off-by: Gagandeep Singh Signed-off-by: Hemant Agrawal --- drivers/crypto/caam_jr/caam_jr.c | 98 +++- 1 file changed, 97 insertions(+), 1 deleti

[dpdk-dev] [PATCH v2 05/14] crypto/caam_jr: add basic job ring routines

2018-10-12 Thread Gagandeep Singh
This patch adds following job ring routines - init_job_ring (configure hw/sw resources) - shutdown_job_ring (releases hw/sw resources) - close_job_ring (flush job ring) Signed-off-by: Gagandeep Singh Signed-off-by: Hemant Agrawal --- drivers/crypto/caam_jr/caam_jr.c | 329 +++

[dpdk-dev] [PATCH v2 03/14] crypto/caam_jr: add routines to configure HW

2018-10-12 Thread Gagandeep Singh
This patch add routines for configuring the hw to support various features. These routines will be used by the PMD ops. The patch also defines structure and macros used to access hw capabilities. Signed-off-by: Gagandeep Singh Signed-off-by: Hemant Agrawal --- drivers/crypto/caam_jr/Makefile

[dpdk-dev] [PATCH v2 01/14] crypto/caam_jr: introduce basic driver

2018-10-12 Thread Gagandeep Singh
The caam_jr poll mode crypto driver is supported for NXP SEC 4.x+ (CAAM) hardware accelerator. This driver is by default supported on LE platforms, if it is used on BE platforms like LS104X, config option CONFIG_RTE_LIBRTE_PMD_CAAM_JR_BE can be enabled. This patch add skeleton for caam jobring dri

[dpdk-dev] [PATCH v2 00/14] Introducing the NXP CAAM job ring driver

2018-10-12 Thread Gagandeep Singh
v1->v2 change-log: * Most of the checkpatch warnings and erros are removed * CONFIG_RTE_CAAM_JR_PMD_MAX_NB_SESSIONS and CONFIG_RTE_PMD_CAAM_JR_DEBUG flags removed * local unlikely macro removed * extra spaces removed and functions format fixed * indentation fixed * documentation is updated * dead

[dpdk-dev] [PATCH v2 3/5] test: add performance tests under test-perf suite

2018-10-12 Thread Hari kumar Vemula
From: Hari Kumar Vemula Grouped performace test cases under test-perf category Signed-off-by: Hari Kumar Vemula --- test/test/meson.build | 34 ++ 1 file changed, 34 insertions(+) diff --git a/test/test/meson.build b/test/test/meson.build index b6443c88a..c69fe

[dpdk-dev] [PATCH v2 5/5] test: add dump test cases under test-dump suite

2018-10-12 Thread Hari kumar Vemula
From: Hari Kumar Vemula Grouped logging or dump related test cases to test-dump category Signed-off-by: Hari Kumar Vemula --- test/test/meson.build | 22 ++ 1 file changed, 22 insertions(+) diff --git a/test/test/meson.build b/test/test/meson.build index 4668eed81..007c810

[dpdk-dev] [PATCH v2 4/5] test: add library dependent tests under test-driver suite

2018-10-12 Thread Hari kumar Vemula
From: Hari Kumar Vemula Added test cases that depend on library as cryptodev Signed-off-by: Hari Kumar Vemula --- test/test/meson.build | 27 +++ 1 file changed, 27 insertions(+) diff --git a/test/test/meson.build b/test/test/meson.build index c69fe0007..4668eed81 1006

[dpdk-dev] [PATCH v2 1/5] test: remove existing testcases for categorization

2018-10-12 Thread Hari kumar Vemula
From: Hari Kumar Vemula Removed testcase list from meson build to categorize testcases into suites Signed-off-by: Hari Kumar Vemula --- test/test/meson.build | 110 -- 1 file changed, 110 deletions(-) diff --git a/test/test/meson.build b/test/te

[dpdk-dev] [PATCH v2 2/5] test: add quick run tests under test-fast suite

2018-10-12 Thread Hari kumar Vemula
From: Hari Kumar Vemula Added test cases that runs quickly under test fast category Signed-off-by: Hari Kumar Vemula --- test/test/meson.build | 102 +++--- 1 file changed, 97 insertions(+), 5 deletions(-) diff --git a/test/test/meson.build b/test/t

[dpdk-dev] [PATCH v2 0/5] create different meson test targets

2018-10-12 Thread Hari kumar Vemula
From: Hari Kumar Vemula 1/5: remove existing test cases to reorganize further 2/5: add test-fast suite to meson targets 3/5: add test-perf suite to meson targets 4/5: add test-driver suite to meson targets 5/5: add test-dump suite to meson targets -- v2: Divided fast-test list into two lists --

Re: [dpdk-dev] [PATCH] doc/proc_info: update support for vdev stats

2018-10-12 Thread Ferruh Yigit
On 10/12/2018 12:35 PM, Vipin Varghese wrote: > With the latest release, support for vdev ethernet devices like pcap, > tun and tap are been added. Hence collecting statistics using proc-info > is possible now. This support is enabled when device shared between primary & secondary. The capability

Re: [dpdk-dev] [PATCH v4 1/3] ethdev: add generic TTL rewrite actions

2018-10-12 Thread Ferruh Yigit
On 10/11/2018 2:27 PM, Jack Min wrote: > rewrite TTL by decrease or just set it directly > it's not necessary to check if the final result > is zero or not > > This is slightly different from the one defined > by openflow and more generic > > Signed-off-by: Xiaoyu Min > Acked-by: Yongseok Koh >

Re: [dpdk-dev] [PATCH] build: add meson.build for kni kernel module

2018-10-12 Thread Bruce Richardson
On Thu, Oct 11, 2018 at 08:46:29PM +0100, Luca Boccassi wrote: > A Kbuild is also included to allow users to use DKMS natively without > additional code. > > Signed-off-by: Luca Boccassi > --- > build-tested on debian sid am64 > > kernel/linux/kni/Kbuild | 8 ++ > kernel/linux/kni/mes

[dpdk-dev] [PATCH] doc/qos_meter: update application information

2018-10-12 Thread Vipin Varghese
THe change adds special note for colour blind and porfile_table actions. In colour blind mode, the previous colour value is always 0. For DROP action, one needs to edit the profile_table entries apporpiately. Signed-off-by: Vipin Varghese --- doc/guides/sample_app_ug/qos_metering.rst | 5 +

Re: [dpdk-dev] [PATCH 05/10] crypto/caam_jr: add queue config functions

2018-10-12 Thread Gagandeep Singh
Hi, > -Original Message- > From: Akhil Goyal > Sent: Tuesday, September 18, 2018 7:35 PM > To: Gagandeep Singh ; dev@dpdk.org > Cc: Hemant Agrawal > Subject: Re: [dpdk-dev] [PATCH 05/10] crypto/caam_jr: add queue config > functions > > Hi Gagan, > > On 9/13/2018 11:38 AM, Gagandeep Sing

Re: [dpdk-dev] [PATCH 04/10] crypto/caam_jr: add device configuration routines

2018-10-12 Thread Gagandeep Singh
> -Original Message- > From: Akhil Goyal > Sent: Tuesday, September 18, 2018 7:30 PM > To: Gagandeep Singh ; dev@dpdk.org > Cc: Hemant Agrawal > Subject: Re: [dpdk-dev] [PATCH 04/10] crypto/caam_jr: add device configuration > routines > > Hi Gagan, > > On 9/13/2018 11:38 AM, Gagandeep

Re: [dpdk-dev] [PATCH 03/10] crypto/caam_jr: add HW config for job rings

2018-10-12 Thread Gagandeep Singh
Hi Akhil, > -Original Message- > From: Akhil Goyal > Sent: Tuesday, September 18, 2018 7:07 PM > To: Gagandeep Singh ; dev@dpdk.org > Cc: Hemant Agrawal > Subject: Re: [dpdk-dev] [PATCH 03/10] crypto/caam_jr: add HW config for job > rings > > Hi Gagan, > > On 9/13/2018 11:38 AM, Gagande

Re: [dpdk-dev] [PATCH 01/10] doc: add caam jr cryptodev details

2018-10-12 Thread Gagandeep Singh
Hi, > -Original Message- > From: Akhil Goyal > Sent: Tuesday, September 18, 2018 5:57 PM > To: Gagandeep Singh ; dev@dpdk.org > Cc: Hemant Agrawal ; john.mcnam...@intel.com > Subject: Re: [dpdk-dev] [PATCH 01/10] doc: add caam jr cryptodev details > > ++John > > Hi Gagan, > > Please mak

Re: [dpdk-dev] [PATCH v10 1/4] lib/librte_power: traffic pattern aware power control

2018-10-12 Thread Yao, Lei A
> -Original Message- > From: Ma, Liang J > Sent: Friday, October 12, 2018 6:03 PM > To: Yao, Lei A > Cc: Hunt, David ; dev@dpdk.org; > ktray...@redhat.com; Kovacevic, Marko > Subject: Re: [PATCH v10 1/4] lib/librte_power: traffic pattern aware power > control > > On 11 Oct 18:59, Yao,

[dpdk-dev] [PATCH] examples/service_cores: check lcores before test run

2018-10-12 Thread Vipin Varghese
The service core samples has varied profiles created to run on specified lcore count. The patch adds the check before each run, to ensure example has sufficent lcores to be added as service cores on given run profile. If sufficent cores are not found, the run is skipped with user notification. Sig

Re: [dpdk-dev] [PATCH 02/10] crypto/caam_jr: introduce basic driver

2018-10-12 Thread Gagandeep Singh
Hi > -Original Message- > From: Akhil Goyal > Sent: Tuesday, September 18, 2018 5:44 PM > To: Gagandeep Singh ; dev@dpdk.org > Cc: Hemant Agrawal > Subject: Re: [dpdk-dev] [PATCH 02/10] crypto/caam_jr: introduce basic driver > > Hi Gagan, > > On 9/13/2018 11:38 AM, Gagandeep Singh wrote

Re: [dpdk-dev] [PATCH] ethdev: add function name to log message

2018-10-12 Thread Adrien Mazarguil
On Fri, Oct 12, 2018 at 11:45:01AM +0100, Ferruh Yigit wrote: > On 10/12/2018 11:42 AM, Ferruh Yigit wrote: > > On 10/11/2018 6:59 PM, Stephen Hemminger wrote: > >> @@ -161,8 +161,9 @@ extern "C" { > >> > >> extern int rte_eth_dev_logtype; > >> > >> -#define RTE_ETHDEV_LOG(level, ...) \ > >> -

[dpdk-dev] [PATCH v7 17/19] vhost: restrict postcopy live-migration enablement

2018-10-12 Thread Maxime Coquelin
Postcopy live-migration feature requires the application to not populate the guest memory. As the vhost library cannot prevent the application to that (e.g. preventing the application to call mlockall()), the feature is disabled by default. The application should only enable the feature if it does

[dpdk-dev] [PATCH v7 19/19] vhost: enable postcopy protocol feature

2018-10-12 Thread Maxime Coquelin
Signed-off-by: Dr. David Alan Gilbert Signed-off-by: Maxime Coquelin --- lib/librte_vhost/vhost_user.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/librte_vhost/vhost_user.h b/lib/librte_vhost/vhost_user.h index 73b1fe2b9..dc97be843 100644 --- a/lib/librte_vhost/vhos

[dpdk-dev] [PATCH v7 16/19] vhost: add support to postcopy's end request

2018-10-12 Thread Maxime Coquelin
The master sends this message before stopping handling userfaults, so that the backend closes the userfaultfd. The master waits for the slave to acknowledge the request with an empty 64bits payload for synchronization purpose. Signed-off-by: Dr. David Alan Gilbert Signed-off-by: Maxime Coquelin

[dpdk-dev] [PATCH v7 18/19] net/vhost: add parameter to enable postcopy support

2018-10-12 Thread Maxime Coquelin
Introduce a new postcopy-support parameter to Vhost PMD that passes the RTE_VHOST_USER_POSTCOPY_SUPPORT flag at vhost device register time. Flag should only be set if application does not prefault guest memory using, for example, mlockall() syscall. Default value is 0, meaning that postcopy suppo

[dpdk-dev] [PATCH v7 14/19] vhost: avoid useless VhostUserMemory copy

2018-10-12 Thread Maxime Coquelin
The VHOST_USER_SET_MEM_TABLE payload is copied when handled, whereas it could directly be referenced. This is not very important, but next, we'll need to update the payload and send it back to Qemu. Signed-off-by: Dr. David Alan Gilbert Signed-off-by: Maxime Coquelin Acked-by: Ilya Maximets --

[dpdk-dev] [PATCH v7 13/19] vhost: register new regions with userfaultfd

2018-10-12 Thread Maxime Coquelin
Signed-off-by: Dr. David Alan Gilbert Signed-off-by: Maxime Coquelin --- lib/librte_vhost/vhost_user.c | 26 ++ 1 file changed, 26 insertions(+) diff --git a/lib/librte_vhost/vhost_user.c b/lib/librte_vhost/vhost_user.c index 051589297..91c301ae2 100644 --- a/lib/librte_

[dpdk-dev] [PATCH v7 11/19] vhost: introduce postcopy's advise message

2018-10-12 Thread Maxime Coquelin
This patch opens a userfaultfd and sends it back to Qemu's VHOST_USER_POSTCOPY_ADVISE request. Signed-off-by: Dr. David Alan Gilbert Signed-off-by: Maxime Coquelin --- lib/librte_vhost/vhost.h | 2 ++ lib/librte_vhost/vhost_user.c | 50 +++ lib/librte_vhost

[dpdk-dev] [PATCH v7 15/19] vhost: send userfault range addresses back to qemu

2018-10-12 Thread Maxime Coquelin
Signed-off-by: Dr. David Alan Gilbert Signed-off-by: Maxime Coquelin --- lib/librte_vhost/vhost_user.c | 47 --- 1 file changed, 44 insertions(+), 3 deletions(-) diff --git a/lib/librte_vhost/vhost_user.c b/lib/librte_vhost/vhost_user.c index d17c3b0ec..8890abbe8

[dpdk-dev] [PATCH v7 10/19] vhost: add config flag for postcopy feature

2018-10-12 Thread Maxime Coquelin
Postcopy live-migration features relies on userfaultfd, which was only introduced in kernel v4.3. This patch introduces a new define to allow building vhost library on kernels not supporting userfaultfd. With legacy build system, user has to explicitly set CONFIG_RTE_LIBRTE_VHOST_POSTCOPY to 'y'.

[dpdk-dev] [PATCH v7 12/19] vhost: add support for postcopy's listen message

2018-10-12 Thread Maxime Coquelin
Signed-off-by: Dr. David Alan Gilbert Signed-off-by: Maxime Coquelin --- lib/librte_vhost/vhost.h | 1 + lib/librte_vhost/vhost_user.c | 21 + lib/librte_vhost/vhost_user.h | 3 ++- 3 files changed, 24 insertions(+), 1 deletion(-) diff --git a/lib/librte_vhost/vhost.h

[dpdk-dev] [PATCH v7 09/19] vhost: enable fds passing when sending vhost-user messages

2018-10-12 Thread Maxime Coquelin
Passing userfault fds to Qemu will be required for postcopy live-migration feature. Signed-off-by: Dr. David Alan Gilbert Signed-off-by: Maxime Coquelin --- lib/librte_vhost/vhost_crypto.c | 1 + lib/librte_vhost/vhost_user.c | 27 +++ 2 files changed, 16 insertions(+

[dpdk-dev] [PATCH v7 08/19] vhost: pass socket fd to message handling callbacks

2018-10-12 Thread Maxime Coquelin
This is not used for now, but will be needed for the special handling of VHOST_USER_SET_MEM_TABLE message once postcopy will be supported. Signed-off-by: Maxime Coquelin --- lib/librte_vhost/vhost_user.c | 71 +++ 1 file changed, 47 insertions(+), 24 deletions(-)

[dpdk-dev] [PATCH v7 07/19] vhost: add number of fds to vhost-user messages and use it

2018-10-12 Thread Maxime Coquelin
As soon as some ancillary data (fds) are received, it is copied without checking its length. This patch adds the number of fds received to the message, which is set in read_vhost_message(). This is preliminary work to support sending fds to Qemu. Signed-off-by: Dr. David Alan Gilbert Signed-off

[dpdk-dev] [PATCH v7 06/19] vhost: define postcopy protocol flag

2018-10-12 Thread Maxime Coquelin
Signed-off-by: Dr. David Alan Gilbert Signed-off-by: Maxime Coquelin Acked-by: Ilya Maximets Reviewed-by: Tiwei Bie --- lib/librte_vhost/rte_vhost.h | 4 1 file changed, 4 insertions(+) diff --git a/lib/librte_vhost/rte_vhost.h b/lib/librte_vhost/rte_vhost.h index b02673d4a..9292c89c5 10

[dpdk-dev] [PATCH v7 03/19] vhost: clarify reply-ack in case a reply was already sent

2018-10-12 Thread Maxime Coquelin
For messages that require a reply, a second ack should not be sent when reply-ack protocol feature is negotiated, even if the corresponding flag is set in the message. The code is compliant with the spec but it isn't clear it is, so this patch adds a comment to make it explicit. Suggested-by: Ily

[dpdk-dev] [PATCH v7 04/19] vhost: fix payload size of reply

2018-10-12 Thread Maxime Coquelin
QEMU doesn't expect any payload for the reply of VHOST_USER_SET_LOG_BASE request, so don't send any. Note that the Vhost-user specification isn't clear about it and would need to be fixed. Fixes: 54f9e32305d4 ("vhost: handle dirty pages logging request") Cc: sta...@dpdk.org Reported-by: Ilya Maxi

[dpdk-dev] [PATCH v7 05/19] vhost: fix error handling when mem table gets updated

2018-10-12 Thread Maxime Coquelin
When the memory table gets updated, the rings addresses need to be translated again. If it fails, we need to exit cleanly by unmapping memory regions. Fixes: d5022533c20a ("vhost: retranslate vring addr when memory table changes") Cc: sta...@dpdk.org Signed-off-by: Maxime Coquelin Acked-by: Ilya

[dpdk-dev] [PATCH v7 02/19] vhost: fix return code of messages requiring replies

2018-10-12 Thread Maxime Coquelin
VHOST_USER_GET_PROTOCOL_FEATURES, VHOST_USER_GET_VRING_BASE and VHOST_USER_SET_LOG_BASE require replies, so their handlers should return VH_RESULT_REPLY, not VH_RESULT_OK. Fixes: 0bff510b5ea6 ("vhost: unify message handling function signature") Signed-off-by: Maxime Coquelin Acked-by: Ilya Maxim

[dpdk-dev] [PATCH v7 01/19] vhost: fix messages results handling

2018-10-12 Thread Maxime Coquelin
Return of message handling has now changed to an enum that can take non-negative value that is not zero in case a reply is needed. But the code checking the variable afterwards has not been updated, leading to success messages handling being treated as errors. External post and pre callbacks retur

[dpdk-dev] [PATCH v7 00/19] vhost: add postcopy live-migration support

2018-10-12 Thread Maxime Coquelin
In this v7: - Move vh_result enum declaration to vhost.h (Ilya) - Remove check in read_fd_message() for more fds received than requested as already checked with MSG_CTRUNC (Ilya) - Don't return an error in vhost-crypto post message handler if not a crypto message as all messages go through it.

[dpdk-dev] [PATCH] net/softnic: add support for vxlan encap

2018-10-12 Thread Cristian Dumitrescu
Add CLI support for VXLAN encap. Signed-off-by: Cristian Dumitrescu --- drivers/net/softnic/rte_eth_softnic_cli.c | 179 +- 1 file changed, 176 insertions(+), 3 deletions(-) diff --git a/drivers/net/softnic/rte_eth_softnic_cli.c b/drivers/net/softnic/rte_eth_softnic

  1   2   >