Re: [dpdk-dev] [PATCH v3 00/22] add hns3 ethernet PMD driver

2019-09-26 Thread Wei Hu (Xavier)
Hi, Ferruh Yigit I sent out PATCH V3 to fix the conflict that occurs in doc/guides/rel_notes/release_19_11.rst when performing 'git am patch(PATCH V2 series)' operation based on the latest dpdk-next-net because of the recent change in the repository. The page in patches.dpdk.org indicates tha

Re: [dpdk-dev] |WARNING| pw59738 [PATCH v2 2/2] mbuf: add bulk free function

2019-09-26 Thread Morten Brørup
> -Original Message- > From: dev [mailto:dev-boun...@dpdk.org] On Behalf Of Stephen Hemminger > Sent: Thursday, September 26, 2019 1:37 AM > > On Wed, 25 Sep 2019 14:17:42 +0200 > Morten Brørup wrote: > > > Dear Thomas - listed as checkpatch maintainer, > > > > I think this warning is bo

[dpdk-dev] [PATCH v6 7/8] crypto/nitrox: add cipher auth crypto chain processing

2019-09-26 Thread Nagadheeraj Rottela
Add cipher auth crypto chain processing functionality in symmetric request manager. Updated the release notes. Signed-off-by: Nagadheeraj Rottela --- doc/guides/cryptodevs/features/nitrox.ini | 40 +++ doc/guides/cryptodevs/nitrox.rst | 21 ++ doc/guides/rel_notes/release_19_11.rst

[dpdk-dev] [PATCH v6 8/8] test/crypto: add tests for Nitrox PMD

2019-09-26 Thread Nagadheeraj Rottela
Add aes chain test cases for Nitrox in-pace and out-of-place operations. Signed-off-by: Nagadheeraj Rottela --- app/test/test_cryptodev.c | 52 ++ app/test/test_cryptodev.h | 1 + app/test/test_cryptodev_aes_test_vectors.h | 48 +

[dpdk-dev] [PATCH v6 6/8] crypto/nitrox: add burst enqueue and dequeue operations

2019-09-26 Thread Nagadheeraj Rottela
Add burst enqueue and dequeue operations along with interface for symmetric request manager. Signed-off-by: Nagadheeraj Rottela --- drivers/crypto/nitrox/nitrox_qp.h | 60 +++ drivers/crypto/nitrox/nitrox_sym.c| 126 +- drivers/crypto/nitrox/nitrox_sy

[dpdk-dev] [PATCH v6 2/8] crypto/nitrox: create Nitrox symmetric cryptodev

2019-09-26 Thread Nagadheeraj Rottela
Add Nitrox symmetric cryptodev with following operations, - dev_configure - dev_start - dev_stop - dev_close - dev_infos_get Signed-off-by: Nagadheeraj Rottela --- drivers/crypto/nitrox/Makefile| 1 + drivers/crypto/nitrox/meson.build | 1 + drivers/crypto/nitrox/nitrox_device.c

[dpdk-dev] [PATCH v6 4/8] crypto/nitrox: add hardware queue management functionality

2019-09-26 Thread Nagadheeraj Rottela
Add hardware queue management code corresponding to queue pair setup and release functions. Signed-off-by: Nagadheeraj Rottela --- drivers/crypto/nitrox/nitrox_csr.h | 12 +++ drivers/crypto/nitrox/nitrox_hal.c | 151 + drivers/crypto/nitrox/nitrox_hal.h | 12

[dpdk-dev] [PATCH v6 0/8] add Nitrox crypto device support

2019-09-26 Thread Nagadheeraj Rottela
Add the Nitrox PMD to support Nitrox crypto device. --- v6: * Updated Nitrox cryptodev html guide. * Updated release notes 19.11. v5: * Combined related changes together and merged into single patch. * Defined macros for PCI vendor and device ids. * Checking return value of nitrox_sym_pmd_destroy(

[dpdk-dev] [PATCH v6 1/8] crypto/nitrox: add Nitrox PMD library

2019-09-26 Thread Nagadheeraj Rottela
Add bare minimum Nitrox PMD library which handles pci probe, remove and hardware initialization. Add logs, documentation and update maintainers file. Signed-off-by: Nagadheeraj Rottela --- MAINTAINERS | 7 ++ config/common_base

[dpdk-dev] [PATCH v6 5/8] crypto/nitrox: add session management operations

2019-09-26 Thread Nagadheeraj Rottela
Add all the session management operations. Signed-off-by: Nagadheeraj Rottela --- drivers/crypto/nitrox/Makefile | 1 + drivers/crypto/nitrox/meson.build | 1 + drivers/crypto/nitrox/nitrox_sym.c | 334 +++- drivers/crypto/nitro

[dpdk-dev] [PATCH v6 3/8] crypto/nitrox: add software queue management functionality

2019-09-26 Thread Nagadheeraj Rottela
Add software queue management code corresponding to queue pair setup and release functions. Signed-off-by: Nagadheeraj Rottela --- drivers/crypto/nitrox/Makefile| 2 + drivers/crypto/nitrox/meson.build | 2 + drivers/crypto/nitrox/nitrox_qp.c | 74 +++

Re: [dpdk-dev] [PATCH 0/8] net/ice: base code update

2019-09-26 Thread Yang, Qiming
> -Original Message- > From: Zhang, Qi Z > Sent: Friday, September 27, 2019 12:17 PM > To: Lu, Wenzhuo ; Yang, Qiming > > Cc: dev@dpdk.org; Ye, Xiaolong ; Zhang, Qi Z > > Subject: [PATCH 0/8] net/ice: base code update > > Changes in summary > 1. add GTP TEID support for fdir > 2. improve

Re: [dpdk-dev] [PATCH 5/8] net/ice/base: improvements to Flow Director masking

2019-09-26 Thread Zhang, Qi Z
> -Original Message- > From: Yang, Qiming > Sent: Friday, September 27, 2019 1:28 PM > To: Zhang, Qi Z ; Lu, Wenzhuo > Cc: dev@dpdk.org; Ye, Xiaolong ; Nowlin, Dan > ; Stillwell Jr, Paul M > Subject: RE: [PATCH 5/8] net/ice/base: improvements to Flow Director > masking > > Hi, Qi > >

Re: [dpdk-dev] [PATCH 1/8] net/ice/base: fix for adding PPPoE switch rule

2019-09-26 Thread Zhang, Qi Z
> -Original Message- > From: Yang, Qiming > Sent: Friday, September 27, 2019 1:31 PM > To: Zhang, Qi Z ; Lu, Wenzhuo > Cc: dev@dpdk.org; Ye, Xiaolong ; Nowlin, Dan > ; Stillwell Jr, Paul M > Subject: RE: [PATCH 1/8] net/ice/base: fix for adding PPPoE switch rule > > Missing CC stable

Re: [dpdk-dev] [PATCH 1/8] net/ice/base: fix for adding PPPoE switch rule

2019-09-26 Thread Zhao1, Wei
Tested-by: Wei Zhao > -Original Message- > From: dev [mailto:dev-boun...@dpdk.org] On Behalf Of Qi Zhang > Sent: Friday, September 27, 2019 12:17 PM > To: Lu, Wenzhuo ; Yang, Qiming > > Cc: dev@dpdk.org; Ye, Xiaolong ; Zhang, Qi Z > ; Nowlin, Dan ; Stillwell Jr, > Paul M > Subject: [dpd

Re: [dpdk-dev] [PATCH 2/8] net/ice/base: fix for NVGRE switch rule programming

2019-09-26 Thread Zhao1, Wei
Tested-by: Wei Zhao > -Original Message- > From: dev [mailto:dev-boun...@dpdk.org] On Behalf Of Qi Zhang > Sent: Friday, September 27, 2019 12:17 PM > To: Lu, Wenzhuo ; Yang, Qiming > > Cc: dev@dpdk.org; Ye, Xiaolong ; Zhang, Qi Z > ; Nowlin, Dan ; Stillwell Jr, > Paul M > Subject: [dpd

Re: [dpdk-dev] [PATCH v2 1/5] event/dpaa2: fix def queue conf

2019-09-26 Thread Hemant Agrawal
I will send the RC2 today.

Re: [dpdk-dev] [PATCH v3 1/2] ethdev: extend RSS offload types

2019-09-26 Thread Zhang, Qi Z
From: Andrew Rybchenko [mailto:arybche...@solarflare.com] Sent: Thursday, September 26, 2019 5:16 PM To: Su, Simei ; Zhang, Qi Z ; Wu, Jingjing ; Ye, Xiaolong Cc: dev@dpdk.org Subject: Re: [dpdk-dev] [PATCH v3 1/2] ethdev: extend RSS offload types On 9/25/19 5:06 PM, Simei Su wrote: This patc

Re: [dpdk-dev] [PATCH v6 0/7] use WFE for aarch64

2019-09-26 Thread Gavin Hu (Arm Technology China)
> > There is checkpatch failure. > ### eal: add the APIs to wait until equal > > WARNING:LONG_LINE_COMMENT: line over 80 characters > #123: FILE: lib/librte_eal/common/include/generic/rte_pause.h:29: > + * Wait for *addr to be updated with a 16-bit expected value, with a > relaxed memory > > Wit

[dpdk-dev] [PATCH v7 6/7] net/thunderx: use new API to save cycles on aarch64

2019-09-26 Thread Gavin Hu
Use the new API to wait in low power state instead of continuous polling to save CPU cycles and power. Signed-off-by: Gavin Hu Reviewed-by: Ruifeng Wang Acked-by: Jerin Jacob --- drivers/net/thunderx/nicvf_rxtx.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/net

[dpdk-dev] [PATCH v7 7/7] event/opdl: use new API to save cycles on aarch64

2019-09-26 Thread Gavin Hu
Use the new API to wait in low power state instead of continuous polling to save CPU cycles and power. Signed-off-by: Gavin Hu Reviewed-by: Ruifeng Wang Reviewed-by: Jerin Jacob --- drivers/event/opdl/opdl_ring.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/

[dpdk-dev] [PATCH v7 4/7] ticketlock: use new API to reduce contention on aarch64

2019-09-26 Thread Gavin Hu
While using ticket lock, cores repeatedly poll the lock variable. This is replaced by rte_wait_until_equal API. Running ticketlock_autotest on ThunderX2, Ampere eMAG80, and Arm N1SDP[1], there were variances between runs, but no notable performance gain or degradation were seen with and without th

[dpdk-dev] [PATCH v7 1/7] bus/fslmc: fix the conflicting dmb function

2019-09-26 Thread Gavin Hu
There are two definitions conflicting each other, for more details, refer to [1]. include/rte_atomic_64.h:19: error: "dmb" redefined [-Werror] drivers/bus/fslmc/mc/fsl_mc_sys.h:36: note: this is the location of the previous definition #define dmb() {__asm__ __volatile__("" : : : "memory"); } The

[dpdk-dev] [PATCH v7 5/7] ring: use wfe to wait for ring tail update on aarch64

2019-09-26 Thread Gavin Hu
Instead of polling for tail to be updated, use wfe instruction. Signed-off-by: Gavin Hu Reviewed-by: Ruifeng Wang Reviewed-by: Steve Capper Reviewed-by: Ola Liljedahl Reviewed-by: Honnappa Nagarahalli --- lib/librte_ring/rte_ring_c11_mem.h | 4 ++-- lib/librte_ring/rte_ring_generic.h | 3 +--

[dpdk-dev] [PATCH v7 0/7] use WFE for aarch64

2019-09-26 Thread Gavin Hu
V7: - fix the checkpatch LONG_LINE_COMMENT issue V6: - squash the RTE_ARM_USE_WFE configuration entry patch into the new API patch - move the new configuration to the end of EAL - add doxygen comments to reflect the relaxed and acquire semantics - correct the meson configuration V5: - add doxygen

[dpdk-dev] [PATCH v7 2/7] eal: add the APIs to wait until equal

2019-09-26 Thread Gavin Hu
The rte_wait_until_equal_xx APIs abstract the functionality of 'polling for a memory location to become equal to a given value'. Add the RTE_ARM_USE_WFE configuration entry for aarch64, disabled by default. When it is enabled, the above APIs will call WFE instruction to save CPU cycles and power.

[dpdk-dev] [PATCH v7 3/7] spinlock: use wfe to reduce contention on aarch64

2019-09-26 Thread Gavin Hu
In acquiring a spinlock, cores repeatedly poll the lock variable. This is replaced by rte_wait_until_equal API. Running the micro benchmarking and the testpmd and l3fwd traffic tests on ThunderX2, Ampere eMAG80 and Arm N1SDP, everything went well and no notable performance gain nor degradation was

Re: [dpdk-dev] [PATCH] net/ena: change license clause to SPDX tags

2019-09-26 Thread Hemant Agrawal
> -Original Message- > From: dev On Behalf Of Ferruh Yigit > Sent: Thursday, September 26, 2019 11:17 PM > To: Maciej Bielski ; dev@dpdk.org > Cc: Marcin Wojtas ; Michal Krawczyk > ; Guy Tzalik ; Evgeny Schemeilin > > Subject: Re: [dpdk-dev] [PATCH] net/ena: change license clause to SPDX

Re: [dpdk-dev] [PATCH 1/8] net/ice/base: fix for adding PPPoE switch rule

2019-09-26 Thread Yang, Qiming
Missing CC stable for the fix patches. Qiming > -Original Message- > From: Zhang, Qi Z > Sent: Friday, September 27, 2019 12:17 PM > To: Lu, Wenzhuo ; Yang, Qiming > > Cc: dev@dpdk.org; Ye, Xiaolong ; Zhang, Qi Z > ; Nowlin, Dan ; Stillwell Jr, > Paul M > Subject: [PATCH 1/8] net/ice/ba

Re: [dpdk-dev] [PATCH 5/8] net/ice/base: improvements to Flow Director masking

2019-09-26 Thread Yang, Qiming
Hi, Qi > -Original Message- > From: Zhang, Qi Z > Sent: Friday, September 27, 2019 12:17 PM > To: Lu, Wenzhuo ; Yang, Qiming > > Cc: dev@dpdk.org; Ye, Xiaolong ; Zhang, Qi Z > ; Nowlin, Dan ; Stillwell Jr, > Paul M > Subject: [PATCH 5/8] net/ice/base: improvements to Flow Director maskin

[dpdk-dev] [PATCH 6/8] net/ice/base: remove dead error condition

2019-09-26 Thread Qi Zhang
The pointer cmd is set to an address of a structure, which can never be NULL. Remove the check-for-NULL lines since it's dead code anyway. Signed-off-by: Jeb Cramer Signed-off-by: Paul M Stillwell Jr Signed-off-by: Qi Zhang --- drivers/net/ice/base/ice_common.c | 3 --- 1 file changed, 3 dele

[dpdk-dev] [PATCH 5/8] net/ice/base: improvements to Flow Director masking

2019-09-26 Thread Qi Zhang
Currently, 3-tuple FD matching is implemented using masking. However, this is using up twenty-four of the thirty-two FD masks available. This patch uses the swap register more efficiently to implement the 3-tuple matches, which saves all FD masks for other uses. Added IPV6 versions of DSCP, TTL an

[dpdk-dev] [PATCH 4/8] net/ice/base: add GTPU TEID support for FD

2019-09-26 Thread Qi Zhang
Added the training packet for GTPU TEID field to the Flow director to allow matching against this field. Signed-off-by: Junfeng Guo Signed-off-by: Paul M Stillwell Jr Signed-off-by: Qi Zhang --- drivers/net/ice/base/ice_fdir.c | 2 ++ drivers/net/ice/base/ice_fdir.h | 1 + 2 files changed, 3 i

[dpdk-dev] [PATCH 7/8] net/ice/base: zero initialize structures

2019-09-26 Thread Qi Zhang
Some functions create ice_pkg_enum structure, but it seems it's possible some of the members are used un-initialized. So we'll initialize all instantiations of this structure within ice_flex_pipe.c The patch also fix header comment mismatch issue for ice_init_prof_result_bm Signed-off-by: Jeb Cr

[dpdk-dev] [PATCH 8/8] net/ice/base: fix unexpected switch rule overwrite

2019-09-26 Thread Qi Zhang
A switch rule with "drop" action will be overwritten by a rule with same pattern match but with a "to queue" action. While in an inversed flow creation sequence, the "to queue" can't be overwritten by the "drop" rule. The inconsistent behavior is not expected, the patch fix the issue by preventing

[dpdk-dev] [PATCH 0/8] net/ice: base code update

2019-09-26 Thread Qi Zhang
Changes in summary 1. add GTP TEID support for fdir 2. improve fdir mask support. 3. couple fixes. Qi Zhang (8): net/ice/base: fix for adding PPPoE switch rule net/ice/base: fix for NVGRE switch rule programming net/ice/base: update flow ptype bitmaps net/ice/base: add GTPU TEID support fo

[dpdk-dev] [PATCH 3/8] net/ice/base: update flow ptype bitmaps

2019-09-26 Thread Qi Zhang
In the flow api, the outer first ptype bitmaps contained many references to inner ptypes. Because of PTG assignments, these were causing issues when programming rules on the inner ptypes. For example, in RSS when programming the outer IPV6 hash fields, it also programmed several inner IPV4 PTGs wit

[dpdk-dev] [PATCH 1/8] net/ice/base: fix for adding PPPoE switch rule

2019-09-26 Thread Qi Zhang
Update VLAN protocol ID to correct value for single VXLAN scenario. Correct the PPPOE training packet. Fixes: d341bdc30290 ("net/ice/base: add support for GTP and PPPoE protocols") Signed-off-by: Dan Nowlin Signed-off-by: Paul M Stillwell Jr Signed-off-by: Qi Zhang --- drivers/net/ice/base/ic

[dpdk-dev] [PATCH 2/8] net/ice/base: fix for NVGRE switch rule programming

2019-09-26 Thread Qi Zhang
Correct for GRE/NVGRE training packets to include the correct protocol IDs for TCP and UDP respectively. Fixes: b83a0c290322 ("net/ice/base: fix inner TCP and UDP support for GRE") Signed-off-by: Dan Nowlin Signed-off-by: Paul M Stillwell Jr Signed-off-by: Qi Zhang --- drivers/net/ice/base/ic

Re: [dpdk-dev] SR-IOV with vfio-pci

2019-09-26 Thread Deepak Gowda
Here it is. OS : Debian 9.4 Card info: driver: ixgbe version: 4.4.0-k firmware-version: 0x8838 expansion-rom-version: bus-info: :04:00.0 supports-statistics: yes supports-test: yes supports-eeprom-access: yes supports-register-dump: yes supports-priv-flags: no -DG On Thu, 26 Sep 2019 at

[dpdk-dev] [PATCH v3 5/5] net/ice: rework switch filter

2019-09-26 Thread Ying Wang
From: wei zhao The patch reworks packet process engine's binary classifier (switch) for the new framework. It also adds support for new packet type like PPPoE for switch filter. Signed-off-by: Wei Zhao --- doc/guides/rel_notes/release_19_11.rst |1 + drivers/net/ice/ice_switch_filter.c

[dpdk-dev] [PATCH v3 3/5] net/ice: rework for generic flow enabling

2019-09-26 Thread Ying Wang
The patch reworks the generic flow API (rte_flow) implementation. It introduces an abstract layer which provides a unified interface for low-level filter engine (switch, fdir, hash) to register supported patterns and actions and implement flow validate/create/destroy/flush/ query activities. The p

[dpdk-dev] [PATCH v3 4/5] net/ice: add pattern manifest

2019-09-26 Thread Ying Wang
The patch adds a manifest for all patterns which can be selected by low level filter engine to compose their supported list. Signed-off-by: Ying Wang --- drivers/net/ice/ice_generic_flow.c | 1287 drivers/net/ice/ice_generic_flow.h | 201 ++ 2 files chan

[dpdk-dev] [PATCH v3 2/5] net/ice: add devargs to control pipeline mode

2019-09-26 Thread Ying Wang
From: Qiming Yang Added a devarg to control the mode in generic flow API. We use none-pipeline mode by default. Signed-off-by: Qiming Yang --- doc/guides/nics/ice.rst| 19 +++ doc/guides/rel_notes/release_19_11.rst | 2 ++ drivers/net/ice/ice_ethdev.c

[dpdk-dev] [PATCH v3 0/5] rework for ice generic flow framework and switch filter

2019-09-26 Thread Ying Wang
patch 1/5 minor code clean patch 2/5 adds devargs to control pipeline mode patch 3/5 rework for ice generic flow framework patch 4/5 add rte_flow pattern list patch 5/5 rework switch filter on new framework The patchset depend on the following patches in patchwork: (1) http://patches.dpdk.org/patc

[dpdk-dev] [PATCH v3 1/5] net/ice: minor code clean

2019-09-26 Thread Ying Wang
The patch removes redundant code and cleans up some wrong indentations. Signed-off-by: Ying Wang --- drivers/net/ice/ice_generic_flow.c | 39 +++--- 1 file changed, 19 insertions(+), 20 deletions(-) diff --git a/drivers/net/ice/ice_generic_flow.c b/drivers/net/i

[dpdk-dev] [PATCH v8 07/10] vhost: add APIs for user getting inflight ring

2019-09-26 Thread Jin Yu
This patch introduces two APIs. one is for getting inflgiht ring and the other is for getting base. Signed-off-by: Lin Li Signed-off-by: Xun Ni Signed-off-by: Yu Zhang Signed-off-by: Jin Yu --- lib/librte_vhost/rte_vhost.h | 40 + lib/librte_vhost/rte_vhost_version.m

[dpdk-dev] [PATCH v8 06/10] vhost: add the APIs to operate inflight ring

2019-09-26 Thread Jin Yu
This patch introduces three APIs to operate the inflight ring. Three APIs are set, set last and clear. It includes split and packed ring. Signed-off-by: Lin Li Signed-off-by: Xun Ni Signed-off-by: Yu Zhang Signed-off-by: Jin Yu --- lib/librte_vhost/rte_vhost.h | 116 +++ lib

[dpdk-dev] [PATCH v8 08/10] vhost: add vring functions packed ring support

2019-09-26 Thread Jin Yu
This patch add packed ring support in two APIs so user can get the packed ring`. Signed-off-by: Lin Li Signed-off-by: Xun Ni Signed-off-by: Yu Zhang Signed-off-by: Jin Yu --- lib/librte_vhost/vhost.c | 68 +--- 1 file changed, 49 insertions(+), 19 deletions

[dpdk-dev] [PATCH v8 10/10] vhost: add vhost-user-blk example which support inflight

2019-09-26 Thread Jin Yu
A vhost-user-blk example that support inflight feature. It uses the new APIs that introduced in the first patch, so it can show how these APIs work to support inflight feature. Signed-off-by: Jin Yu --- V1 - add the case. V2 - add the rte_vhost prefix. V3 - add packed ring support --- examples/v

[dpdk-dev] [PATCH v8 05/10] vhost: checkout the resubmit inflight information

2019-09-26 Thread Jin Yu
This patch shows how to checkout the inflight ring and construct the resubmit information also include destroying resubmit info. Signed-off-by: Lin Li Signed-off-by: Xun Ni Signed-off-by: Yu Zhang Signed-off-by: Jin Yu --- lib/librte_vhost/rte_vhost.h | 19 +++ lib/librte_vhost/vhost.c

[dpdk-dev] [PATCH v8 09/10] vhost: add an API for judging vq format

2019-09-26 Thread Jin Yu
This patch introduces an API for getting virtqueue format. Signed-off-by: Lin Li Signed-off-by: Xun Ni Signed-off-by: Yu Zhang Signed-off-by: Jin Yu --- lib/librte_vhost/rte_vhost.h | 13 + lib/librte_vhost/rte_vhost_version.map | 1 + lib/librte_vhost/vhost.c

[dpdk-dev] [PATCH v8 02/10] vhost: add packed ring

2019-09-26 Thread Jin Yu
This patch add the packed ring in the rte_vhost_vring. Signed-off-by: Lin Li Signed-off-by: Xun Ni Signed-off-by: Yu Zhang Signed-off-by: Jin Yu Reviewed-by: Maxime Coquelin --- lib/librte_vhost/rte_vhost.h | 15 --- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/

[dpdk-dev] [PATCH v8 04/10] vhost: add two new messages to support a shared buffer

2019-09-26 Thread Jin Yu
This patch introduces two new messages VHOST_USER_GET_INFLIGHT_FD and VHOST_USER_SET_INFLIGHT_FD to support transferring a shared buffer between qemu and backend. Signed-off-by: Lin Li Signed-off-by: Xun Ni Signed-off-by: Yu Zhang Signed-off-by: Jin Yu --- lib/librte_vhost/vhost.h | 7

[dpdk-dev] [PATCH v8 00/10] vhost: support inflight share memory protocol feature

2019-09-26 Thread Jin Yu
This patches introduces two new messages VHOST_USER_GET_INFLIGHT_FD and VHOST_USER_SET_INFLIGHT_FD to support transferring a shared buffer between qemu and backend. Now It can both support split and packed ring. The example code show how these API work. The test has passed. How to test the example

[dpdk-dev] [PATCH v8 03/10] vhost: add the inflight structure

2019-09-26 Thread Jin Yu
This patch adds the inflight queue region structure include the split and packed. Signed-off-by: Lin Li Signed-off-by: Xun Ni Signed-off-by: Yu Zhang Signed-off-by: Jin Yu --- lib/librte_vhost/rte_vhost.h | 43 1 file changed, 43 insertions(+) diff --git

[dpdk-dev] [PATCH v8 01/10] vhost: add the inflight description

2019-09-26 Thread Jin Yu
This patch add the inflight message description and the inflight share fd protocol feature flag. Signed-off-by: Lin Li Signed-off-by: Xun Ni Signed-off-by: Yu Zhang Signed-off-by: Jin Yu Reviewed-by: Maxime Coquelin --- v1 - specify the APIs are split-ring only v2 - fix APIs and judge split o

Re: [dpdk-dev] [PATCH v6 0/5] drivers/net: release port upon close

2019-09-26 Thread Yang, Qiming
> -Original Message- > From: Di, ChenxuX > Sent: Thursday, September 26, 2019 6:00 PM > To: dev@dpdk.org > Cc: Yang, Qiming ; Di, ChenxuX > > Subject: [PATCH v6 0/5] drivers/net: release port upon close > > Set RTE_ETH_DEV_CLOSE_REMOVE upon probe so all the private resources > for the por

Re: [dpdk-dev] [PATCH v7 04/10] vhost: add two new messages to support a shared buffer

2019-09-26 Thread Tiwei Bie
On Thu, Sep 26, 2019 at 11:06:22PM +0800, Yu, Jin wrote: > > > > > > +static int > > > +mem_create(const char *name, unsigned int flags) { #ifdef > > > +MEMFD_SUPPORTED > > > + return memfd_create(name, flags); > > > +#else > > > + RTE_LOG(ERR, VHOST_CONFIG, > > > + "doesn't support memfd--

Re: [dpdk-dev] [PATCH v2 17/17] net/hinic: optimize tx&rx performance

2019-09-26 Thread Gavin Hu (Arm Technology China)
Hi Xiaoyun, > -Original Message- > From: dev On Behalf Of Xiaoyun wang > Sent: Wednesday, September 25, 2019 10:31 PM > To: ferruh.yi...@intel.com > Cc: dev@dpdk.org; xuanziya...@huawei.com; shahar.bel...@huawei.com; > luoxian...@huawei.com; tanya.brokh...@huawei.com; > zhouguoy...@huawei

Re: [dpdk-dev] [PATCH v1 0/4] get Rx/Tx packet burst mode information

2019-09-26 Thread Wang, Haiyue
> -Original Message- > From: Stephen Hemminger [mailto:step...@networkplumber.org] > Sent: Friday, September 27, 2019 01:15 > To: Wang, Haiyue > Cc: dev@dpdk.org; Yigit, Ferruh ; Ye, Xiaolong > ; > Kinsella, Ray ; Iremonger, Bernard > ; Sun, Chenmin > > Subject: Re: [dpdk-dev] [PATCH v1

Re: [dpdk-dev] [PATCH v2 6/9] eal: getopt implementation for windows

2019-09-26 Thread Pallavi Kadam
Hi Stephen, On 9/26/2019 2:27 PM, Stephen Hemminger wrote: On Thu, 26 Sep 2019 13:29:21 -0700 Pallavi Kadam wrote: Adding getopt_long.c and getopt.c files to support parsing option on Windows. The original contribution is under MIT license. Signed-off-by: Antara Ganesh Kolar Signed-off-by:

Re: [dpdk-dev] [PATCH 08/10] ipsec: add rte_security cpu_crypto action support

2019-09-26 Thread Ananyev, Konstantin
Hi Fan, ... > diff --git a/lib/librte_ipsec/esp_outb.c b/lib/librte_ipsec/esp_outb.c > index 55799a867..097cb663f 100644 > --- a/lib/librte_ipsec/esp_outb.c > +++ b/lib/librte_ipsec/esp_outb.c > @@ -403,6 +403,292 @@ esp_outb_trs_prepare(const struct rte_ipsec_session > *ss, struct rte_mbuf *mb[]

Re: [dpdk-dev] [PATCH v2 6/9] eal: getopt implementation for windows

2019-09-26 Thread Stephen Hemminger
On Thu, 26 Sep 2019 13:29:21 -0700 Pallavi Kadam wrote: > Adding getopt_long.c and getopt.c files to support parsing > option on Windows. > The original contribution is under MIT license. > > Signed-off-by: Antara Ganesh Kolar > Signed-off-by: Pallavi Kadam > Reviewed-by: Ranjit Menon > Revie

[dpdk-dev] [PATCH v2 8/9] build: add additional common files support

2019-09-26 Thread Pallavi Kadam
Support for additional common files in meson build to expand Windows EAL and to support the lcore parsing feature on Windows. Signed-off-by: Pallavi Kadam Signed-off-by: Antara Ganesh Kolar Reviewed-by: Ranjit Menon Reviewed-by: Keith Wiles --- lib/librte_eal/windows/eal/meson.build | 8 +

[dpdk-dev] [PATCH v2 9/9] eal: add minimum viable code to support parsing

2019-09-26 Thread Pallavi Kadam
Adding specific logic for eal.c to support parsing on Windows. Signed-off-by: Pallavi Kadam Signed-off-by: Antara Ganesh Kolar Reviewed-by: Ranjit Menon Reviewed-by: Keith Wiles --- lib/librte_eal/windows/eal/eal.c | 119 +-- 1 file changed, 112 insertions(+), 7 de

[dpdk-dev] [PATCH v2 4/9] eal: dirent.h implementation for windows

2019-09-26 Thread Pallavi Kadam
Adding dirent.h on Windows to support common code. The original contribution is under MIT license. Signed-off-by: Antara Ganesh Kolar Signed-off-by: Pallavi Kadam Reviewed-by: Ranjit Menon Reviewed-by: Keith Wiles --- lib/librte_eal/windows/eal/include/dirent.h | 666 1 f

[dpdk-dev] [PATCH v2 7/9] eal: add function to detect process type

2019-09-26 Thread Pallavi Kadam
Adding a function to detect process type and include header files to contain suitable function declarations. Signed-off-by: Pallavi Kadam Signed-off-by: Antara Ganesh Kolar Reviewed-by: Ranjit Menon Reviewed-by: Keith Wiles --- lib/librte_eal/windows/eal/eal.c| 51

[dpdk-dev] [PATCH v2 1/9] eal: eal stub to support parsing feature on windows

2019-09-26 Thread Pallavi Kadam
Adding initial stub to support command line parsing for lcore mask option on Windows. Signed-off-by: Pallavi Kadam Signed-off-by: Antara Ganesh Kolar Reviewed-by: Ranjit Menon Reviewed-by: Keith Wiles --- lib/librte_eal/windows/eal/eal.c| 29 ++--- lib/librte_eal/w

[dpdk-dev] [PATCH v2 2/9] eal: syslog implementation for windows

2019-09-26 Thread Pallavi Kadam
Adding syslog.h on Windows for supporting common code. This implementation has BSD-3-Clause licensing. Signed-off-by: Antara Ganesh Kolar Signed-off-by: Pallavi Kadam Reviewed-by: Ranjit Menon Reviewed-by: Keith Wiles --- lib/librte_eal/windows/eal/include/syslog.h | 189

[dpdk-dev] [PATCH v2 6/9] eal: getopt implementation for windows

2019-09-26 Thread Pallavi Kadam
Adding getopt_long.c and getopt.c files to support parsing option on Windows. The original contribution is under MIT license. Signed-off-by: Antara Ganesh Kolar Signed-off-by: Pallavi Kadam Reviewed-by: Ranjit Menon Reviewed-by: Keith Wiles --- lib/librte_eal/windows/eal/getopt.c | 132 +

[dpdk-dev] [PATCH v2 5/9] eal: add additional function overrides in windows header files

2019-09-26 Thread Pallavi Kadam
Adding additional function definitions for pthread, cpuset implementation, asprintf implementation, in order to support common code. Signed-off-by: Pallavi Kadam Signed-off-by: Antara Ganesh Kolar Reviewed-by: Ranjit Menon Reviewed-by: Keith Wiles --- lib/librte_eal/common/include/rte_lcore.h

[dpdk-dev] [PATCH v2 0/9] Windows patchset with additional EAL functionalities

2019-09-26 Thread Pallavi Kadam
This patchset includes additional functionalities for Windows EAL to support command-line parsing feature and EAL common code on Windows. v2 Changes: syslog.h: Replaced the BSD license boilerplate to SPDX tag. Pallavi Kadam (9): eal: eal stub to support parsing feature on windows eal: syslog

[dpdk-dev] [PATCH v2 3/9] eal: add windows compatible header files

2019-09-26 Thread Pallavi Kadam
Adding dlfcn.h on Windows to support common code. Adding eal_filesystem.h to support functions and path defines for files and directories on Windows. Adding getopt.h to support parsing options on Windows. Adding rte_vect.h as Windows fails to compile: \common\include\arch\x86\rte_vect.h. Signed

Re: [dpdk-dev] [PATCH v2 2/2] mbuf: add bulk free function

2019-09-26 Thread Mattias Rönnblom
On 2019-09-26 10:30, Bruce Richardson wrote: On Wed, Sep 25, 2019 at 09:02:28PM +0200, Mattias Rönnblom wrote: On 2019-09-25 14:03, Morten Brørup wrote: Add function for freeing a bulk of mbufs. Signed-off-by: Morten Brørup --- lib/librte_mbuf/rte_mbuf.c | 35 ++

Re: [dpdk-dev] [PATCH v2 00/17] Add advanced features for Huawei hinic pmd

2019-09-26 Thread Ferruh Yigit
On 9/25/2019 3:30 PM, Xiaoyun wang wrote: > This patch set adds advanced features for Huawei hinic pmd, > such as VLAN filter and VLAN offload, SR-IOV, FW version get, > set link down and up, Flow director for LACP, VRRP, BGP and so on. > > Xiaoyun wang (17): > net/hinic/base: add mbox command c

Re: [dpdk-dev] [PATCH v2 15/17] net/hinic: add hinic PMD doc files

2019-09-26 Thread Ferruh Yigit
On 9/25/2019 3:30 PM, Xiaoyun wang wrote: > Add doc files about new features and modification. > > Signed-off-by: Xiaoyun wang > --- > doc/guides/nics/features/hinic.ini | 12 - > doc/guides/nics/hinic.rst | 6 + > doc/guides/rel_notes/release_19_11.rst | 45 >

Re: [dpdk-dev] [PATCH v2 05/17] net/hinic: add allmulticast mode and MTU set

2019-09-26 Thread Ferruh Yigit
On 9/25/2019 3:30 PM, Xiaoyun wang wrote: > When enable allmulticast mode, all multicast packets > can be received. This patch also adds support for mtu set, > the range of MTU is from 256 to 9600. > > Signed-off-by: Xiaoyun wang <...> > +static int hinic_dev_set_mtu(struct rte_eth_dev *dev, ui

Re: [dpdk-dev] [PATCH v2 07/17] net/hinic: add fdir config interface

2019-09-26 Thread Ferruh Yigit
On 9/25/2019 3:30 PM, Xiaoyun wang wrote: > This patch adds fdir config operation, including set fdir filter, > normal filter, set and clear fdir tcam. > > Signed-off-by: Xiaoyun wang > --- > drivers/net/hinic/base/hinic_pmd_cmd.h| 2 + > drivers/net/hinic/base/hinic_pmd_niccfg.c | 205 >

Re: [dpdk-dev] [PATCH v2 12/17] net/hinic: set link down and up

2019-09-26 Thread Ferruh Yigit
On 9/25/2019 3:30 PM, Xiaoyun wang wrote: > This patch supports setting link down and up, > Also adds support for geting firmware version. > > Signed-off-by: Xiaoyun wang <...> > @@ -2751,9 +2832,12 @@ static void hinic_dev_close(struct rte_eth_dev *dev) > static const struct eth_dev_ops hinic

Re: [dpdk-dev] [EXT] [PATCH 04/10] crypto/octeontx: fix global variable multiple definitions

2019-09-26 Thread Ferruh Yigit
On 9/26/2019 12:20 PM, Anoob Joseph wrote: > Hi Ferruh, > > This patch could be problematic as our new PMD(crypto_octeontx2) also makes > use of some of these. I will propose a new patch with the required changes so > that you wouldn't see the mentioned issue. Does that sound ok? Sure, no probl

Re: [dpdk-dev] [PATCH v2 03/13] doc: add guide for ppfe net PMD

2019-09-26 Thread Ferruh Yigit
On 8/28/2019 12:08 PM, Gagandeep Singh wrote: > This patch add documentation for ppfe network > poll mode driver. > > PPFE is a hardware programmable packet > forwarding engine to provide high performance > ethernet interfaces. > > Signed-off-by: Gagandeep Singh > Acked-by: Nipun Gupta > Acked-

Re: [dpdk-dev] [PATCH 2/2] event/dpaa: support event crypto adapter

2019-09-26 Thread Jerin Jacob
On Fri, Sep 6, 2019 at 6:57 PM Akhil Goyal wrote: > > event dpaa device support both ethernet as well as > crypto queues to be attached to it. eth_rx_adapter > provide infrastructure to attach ethernet queues and > crypto_adapter provide support for crypto queues. > > This patch add support for dp

Re: [dpdk-dev] [PATCH v2 1/5] event/dpaa2: fix def queue conf

2019-09-26 Thread Jerin Jacob
On Fri, Sep 13, 2019 at 11:54 AM Jerin Jacob wrote: > > On Sat, Sep 7, 2019 at 12:14 PM Hemant Agrawal wrote: > > > > Test vector expect only one type of scheduling as default. > > The old code is provide support scheduling types instead of default. > > > > Fixes: 13370a3877a5 ("eventdev: fix inc

Re: [dpdk-dev] [PATCH] net/ena: change license clause to SPDX tags

2019-09-26 Thread Ferruh Yigit
On 9/26/2019 1:31 PM, Maciej Bielski wrote: > Signed-off-by: Maciej Bielski > Acked-by: Michal Krawczyk <...> > diff --git a/drivers/net/ena/meson.build b/drivers/net/ena/meson.build > index 091ca6e3f..c7e71f494 100644 > --- a/drivers/net/ena/meson.build > +++ b/drivers/net/ena/meson.build > @@

Re: [dpdk-dev] [PATCH v4 10/10] doc: add application usage guide for l2fwd-event

2019-09-26 Thread Jerin Jacob
On Tue, Sep 24, 2019 at 3:13 PM wrote: > > From: Sunil Kumar Kori > > Add documentation for l2fwd-event example. > Update MAINTAINERS file claiming responsibility of l2fwd-event. > > Signed-off-by: Sunil Kumar Kori > --- > MAINTAINERS | 5 + > doc/guides/samp

Re: [dpdk-dev] [PATCH v1 0/4] get Rx/Tx packet burst mode information

2019-09-26 Thread Ferruh Yigit
On 9/26/2019 6:15 PM, Stephen Hemminger wrote: > On Thu, 26 Sep 2019 16:36:09 + > "Wang, Haiyue" wrote: > >> Hi Stephen, >> >>> -Original Message- >>> From: Stephen Hemminger [mailto:step...@networkplumber.org] >>> Sent: Thursday, September 26, 2019 23:57 >>> To: Wang, Haiyue >>> Cc:

Re: [dpdk-dev] [PATCH v4 02/10] examples/l2fwd-event: add infra for eventdev

2019-09-26 Thread Jerin Jacob
On Tue, Sep 24, 2019 at 3:12 PM wrote: > > From: Sunil Kumar Kori > > Add infra to select event device as a mode to process packets through > command line arguments. Also, allow the user to select the schedule type > to be either RTE_SCHED_TYPE_ORDERED or RTE_SCHED_TYPE_ATOMIC. > > Usage: > > `--

Re: [dpdk-dev] [PATCH v4 01/10] examples/l2fwd-event: add default poll mode routines

2019-09-26 Thread Jerin Jacob
On Tue, Sep 24, 2019 at 3:12 PM wrote: > > From: Sunil Kumar Kori > > Add the default l2fwd poll mode routines similar to examples/l2fwd. > > Signed-off-by: Sunil Kumar Kori > --- > +#ifndef __L2FWD_COMMON_H__ > +#define __L2FWD_COMMON_H__ > + > +#define MAX_PKT_BURST 32 > +#define MAX_RX_QUEUE

Re: [dpdk-dev] [PATCH v2 00/13] introduces ppfe network PMD

2019-09-26 Thread Ferruh Yigit
On 8/28/2019 12:08 PM, Gagandeep Singh wrote: > This series introduces ppfe (programmable packet > forwarding engine) network poll mode driver for > NXP SoC ls1012a. > > First patch of this series move OF library code from > dpaa bus to a common folder as PPFE also uses the > same library for gett

Re: [dpdk-dev] [PATCH 01/13] ethdev: support setup function for hairpin queue

2019-09-26 Thread Andrew Rybchenko
On 9/26/19 6:58 PM, Ori Kam wrote: Hi Andrew, Thanks for your comments PSB. -Original Message- From: Andrew Rybchenko On 9/26/19 9:28 AM, Ori Kam wrote: This commit introduce the RX/TX hairpin setup function. RX/TX should be Rx/Tx here and everywhere below. Hairpin is RX/TX queue t

Re: [dpdk-dev] [PATCH v1 0/4] get Rx/Tx packet burst mode information

2019-09-26 Thread Stephen Hemminger
On Thu, 26 Sep 2019 16:36:09 + "Wang, Haiyue" wrote: > Hi Stephen, > > > -Original Message- > > From: Stephen Hemminger [mailto:step...@networkplumber.org] > > Sent: Thursday, September 26, 2019 23:57 > > To: Wang, Haiyue > > Cc: dev@dpdk.org; Yigit, Ferruh ; Ye, Xiaolong > > ; > >

Re: [dpdk-dev] [PATCH v2 06/13] net/ppfe: add MAC and host interface initialisation

2019-09-26 Thread Ferruh Yigit
On 8/28/2019 12:08 PM, Gagandeep Singh wrote: > HIF or host interface is responsible for transmit > and receive packets between physical ethernet > interfaces and HIF library defined logical interfaces. > > This patch initialise that host interface and MAC. > > Signed-off-by: Gagandeep Singh > S

Re: [dpdk-dev] [PATCH v2 04/13] net/ppfe: support dynamic logging

2019-09-26 Thread Ferruh Yigit
On 8/28/2019 12:08 PM, Gagandeep Singh wrote: > This patch introduces logging for the ppfe PMD. > > Signed-off-by: Gagandeep Singh > Acked-by: Nipun Gupta > Acked-by: Akhil Goyal > --- > drivers/net/ppfe/pfe_logs.h| 30 > drivers/net/ppfe/ppfe_ethdev.c | 65 +++

Re: [dpdk-dev] [PATCH v2 03/13] doc: add guide for ppfe net PMD

2019-09-26 Thread Ferruh Yigit
On 8/28/2019 12:08 PM, Gagandeep Singh wrote: > This patch add documentation for ppfe network > poll mode driver. > > PPFE is a hardware programmable packet > forwarding engine to provide high performance > ethernet interfaces. > > Signed-off-by: Gagandeep Singh > Acked-by: Nipun Gupta > Acked-

Re: [dpdk-dev] [PATCH v2 01/13] common/dpaax: moving OF lib code from dpaa bus

2019-09-26 Thread Ferruh Yigit
On 8/28/2019 12:08 PM, Gagandeep Singh wrote: > From: Hemant Agrawal > > This code is being shared by more than 1 type of driver. > Common is most appropriate place for it. > > Signed-off-by: Hemant Agrawal <...> > @@ -32,6 +32,7 @@ > #include > #include > > +#include Is there any risk

Re: [dpdk-dev] [PATCH v2 02/13] net/ppfe: introduce ppfe net poll mode driver

2019-09-26 Thread Ferruh Yigit
On 8/28/2019 12:08 PM, Gagandeep Singh wrote: > ppfe (programmable packet forwarding engine) > is a network poll mode driver for NXP SoC > ls1012a. > > This patch introduces the framework of ppfe > driver with basic functions of initialisation > and teardown. > > Signed-off-by: Gagandeep Singh >

Re: [dpdk-dev] [PATCH v1 0/4] get Rx/Tx packet burst mode information

2019-09-26 Thread Wang, Haiyue
Hi Stephen, > -Original Message- > From: Stephen Hemminger [mailto:step...@networkplumber.org] > Sent: Thursday, September 26, 2019 23:57 > To: Wang, Haiyue > Cc: dev@dpdk.org; Yigit, Ferruh ; Ye, Xiaolong > ; > Kinsella, Ray ; Iremonger, Bernard > ; Sun, Chenmin > > Subject: Re: [dpdk

Re: [dpdk-dev] [PATCH 00/13] add hairpin feature

2019-09-26 Thread Ori Kam
Hi Andrew, > -Original Message- > From: Andrew Rybchenko > > Hi Ori, > > On 9/26/19 6:22 PM, Ori Kam wrote: > > Hi Andrew, > > Thanks for your comments please see blow. > > > >> -Original Message- > >> From: Andrew Rybchenko > >> > >> On 9/26/19 9:28 AM, Ori Kam wrote: > >>> T

Re: [dpdk-dev] [PATCH v5 1/2] ethdev: expose basic xstats for driver use

2019-09-26 Thread Stephen Hemminger
On Thu, 26 Sep 2019 15:46:52 +0300 Andrew Rybchenko wrote: > On 9/19/19 4:17 PM, Stephen Hemminger wrote: > > Avoid duplication by having generic basic xstats available > > for use by drivers. A later patch uses this for failsafe > > driver. > > > > Signed-off-by: Stephen Hemminger > > Acked-by:

  1   2   3   4   >