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

2019-09-19 Thread JinYu
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

Re: [dpdk-dev] [PATCH v2 0/3] examples/ipsec-secgw: add fallback session

2019-09-19 Thread Ananyev, Konstantin
Hi Anoob, > > > > > Sorry for the late response. But how do you plan to handle "inline > > protocol" > > > > processed packets? > > > > > > > > Right now that feature is supported for "inline crypto" only. > > > > > > [Anoob] The description says "inline processed" packets. Hence the > > > conf

[dpdk-dev] [PATCH v5 00/17] Add PCIe AER disable and IRQ support for ipn3ke

2019-09-19 Thread Andy Pei
s patch set adds PCIe AER disable and IRQ support for ipn3ke. Disable PCIe AER is very useful when FPGA reload. IRQ is used very widely in interrupt process. For ipn3ke is connect to CPU with PCIe switch, driver needs to scan all PCIe devices of ipn3ke, it also can get all i40e of card, so ipn3ke

[dpdk-dev] [PATCH v5 03/17] raw/ifpga/base: clear pending bit

2019-09-19 Thread Andy Pei
Every defined bit in FME_ERROR0 is RW1C. Other reserved bits are always 0 when readout and it will plan to be RW1C if needed in future. So it is safe just write the read back value to clear all the errors. Signed-off-by: Tianfei zhang Signed-off-by: Andy Pei --- drivers/raw/ifpga/base/ifpga_def

[dpdk-dev] [PATCH v5 01/17] net/i40e: i40e support ipn3ke FPGA port bonding

2019-09-19 Thread Andy Pei
In ipn3ke, each FPGA network side port bonding to an i40e pf, each i40e pf link status should get data from FPGA network, side port. This patch provide bonding relationship. Signed-off-by: Rosen Xu Signed-off-by: Andy Pei --- drivers/net/i40e/base/i40e_type.h | 3 +++ drivers/net/i40e/i40e_eth

[dpdk-dev] [PATCH v5 04/17] raw/ifpga/base: add SEU error support

2019-09-19 Thread Andy Pei
This patch exposes SEU error information to application then application could compare this information (128bit) with its own SMH file to know if this SEU is a fatal error or not. Signed-off-by: Tianfei zhang Signed-off-by: Andy Pei --- drivers/raw/ifpga/base/ifpga_defines.h | 5 +++- driv

[dpdk-dev] [PATCH v5 02/17] raw/ifpga/base: add irq support

2019-09-19 Thread Andy Pei
Add irq support for ifpga FME globle error, port error and uint unit. We implmented this feature by vfio interrupt mechanism. Signed-off-by: Tianfei zhang Signed-off-by: Andy Pei --- drivers/raw/ifpga/base/ifpga_feature_dev.c | 60 ++ drivers/raw/ifpga/base/ifpga_fme

[dpdk-dev] [PATCH v5 06/17] raw/ifpga/base: align the send buffer for SPI

2019-09-19 Thread Andy Pei
The length of send buffer of SPI bus should be 4bytes align. Signed-off-by: Tianfei Zhang Signed-off-by: Andy Pei --- drivers/raw/ifpga/base/opae_spi_transaction.c | 40 --- 1 file changed, 36 insertions(+), 4 deletions(-) diff --git a/drivers/raw/ifpga/base/opae_spi_tr

[dpdk-dev] [PATCH v5 05/17] raw/ifpga/base: add device tree support

2019-09-19 Thread Andy Pei
In PAC N3000 card, this is a BMC chip which using MAX10 FPGA to manage the board configuration, like sensors, flash controller, QSFP, powers. And this is a SPI bus connected between A10 FPGA and MAX10, we can access the MAX10 registers over this SPI bus. In BMC, there are about 19 sensors in MAX10

[dpdk-dev] [PATCH v5 07/17] raw/ifpga/base: add sensor support

2019-09-19 Thread Andy Pei
The sensor devices are connected in MAX10 FPGA. we used the device tree to describe those sensor devices. Parse the device tree to get the sensor devices and add them into a list. Signed-off-by: Tianfei zhang Signed-off-by: Andy Pei --- drivers/raw/ifpga/base/opae_intel_max10.c | 279 ++

[dpdk-dev] [PATCH v5 09/17] raw/ifpga/base: update SEU register definition

2019-09-19 Thread Andy Pei
Update the SEU registser definition. Signed-off-by: Tianfei zhang Signed-off-by: Andy Pei --- drivers/raw/ifpga/base/ifpga_defines.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/raw/ifpga/base/ifpga_defines.h b/drivers/raw/ifpga/base/ifpga_defines.h index b450

[dpdk-dev] [PATCH v5 08/17] raw/ifpga/base: introducing sensor APIs

2019-09-19 Thread Andy Pei
Introducing sensor APIs to PMD driver for PAC N3000 card. Those sensor APIs: 1. opae_mgr_for_each_sensor() 2. opae_mgr_get_sensor_by_name() 3. opae_mgr_get_sensor_by_id() 4. opae_mgr_get_sensor_value_by_name() 5. opae_mgr_get_sensor_value_by_id() 6. opae_mgr_get_sensor_value() Signed-off-by: Tian

[dpdk-dev] [PATCH v5 10/17] raw/ifpga: add SEU error handler

2019-09-19 Thread Andy Pei
Add SEU interrupt support for FPGA. Signed-off-by: Tianfei zhang Signed-off-by: Rosen Xu Signed-off-by: Andy Pei --- drivers/raw/ifpga/ifpga_rawdev.c | 245 +++ 1 file changed, 245 insertions(+) diff --git a/drivers/raw/ifpga/ifpga_rawdev.c b/drivers/raw/if

[dpdk-dev] [PATCH v5 13/17] raw/ifpga/base: add secure support

2019-09-19 Thread Andy Pei
From: Tianfei zhang Add secure max10 device support. Signed-off-by: Tianfei zhang Signed-off-by: Andy Pei --- drivers/raw/ifpga/base/ifpga_defines.h| 2 + drivers/raw/ifpga/base/ifpga_fme.c| 26 -- drivers/raw/ifpga/base/opae_intel_max10.c | 136 +---

[dpdk-dev] [PATCH v5 12/17] net/ipn3ke: remove configuration for i40e port bonding

2019-09-19 Thread Andy Pei
The ipn3ke board FPGA and i40e BDF scan has added in ifpga_rawdev, so it doesn't need to provide configuration for i40e port bonding. Signed-off-by: Rosen Xu Signed-off-by: Andy Pei --- drivers/net/ipn3ke/Makefile | 2 + drivers/net/ipn3ke/ipn3ke_ethdev.c | 289 --

[dpdk-dev] [PATCH v5 11/17] raw/ifpga: add PCIe BDF devices tree scan

2019-09-19 Thread Andy Pei
Add PCIe BDF devices tree scan for ipn3ke. Signed-off-by: Rosen Xu Signed-off-by: Andy Pei --- drivers/raw/ifpga/ifpga_rawdev.c | 546 ++- drivers/raw/ifpga/ifpga_rawdev.h | 16 ++ 2 files changed, 557 insertions(+), 5 deletions(-) diff --git a/drivers/raw/

[dpdk-dev] [PATCH v5 14/17] raw/ifpga/base: configure FEC mode

2019-09-19 Thread Andy Pei
From: Tianfei Zhang We can change the PKVL FEC mode when the A10 NIOS FW initialization. The end-user can use this feature the change the FEC mode, the default mode is RS FEC mode. Signed-off-by: Tianfei Zhang Signed-off-by: Andy Pei --- drivers/raw/ifpga/base/ifpga_fme.c | 42 +++

[dpdk-dev] [PATCH v5 16/17] raw/ifpga/base: add new API get board info

2019-09-19 Thread Andy Pei
From: Tianfei zhang Add new API to get the board info. opae_mgr_get_board_info() Signed-off-by: Tianfei zhang Signed-off-by: Andy Pei --- drivers/raw/ifpga/base/ifpga_api.c | 11 +++ drivers/raw/ifpga/base/ifpga_defines.h | 55 ++ drivers/raw/ifpga/base

[dpdk-dev] [PATCH v5 15/17] raw/ifpga/base: clean fme errors

2019-09-19 Thread Andy Pei
From: Tianfei Zhang Clean fme errors register when some fme errors occured. Signed-off-by: Tianfei Zhang Signed-off-by: Andy Pei --- drivers/raw/ifpga/base/ifpga_fme_error.c | 24 ++-- drivers/raw/ifpga/ifpga_rawdev.c | 22 ++ 2 files changed, 2

[dpdk-dev] [PATCH v5 17/17] raw/ifpga: add lightweight fpga image support

2019-09-19 Thread Andy Pei
if fpga image support lightweight feature, set afu uuid to all 0, ipn3ke representor will not be probed. Change-Id: Ib3a76fadd0eda8864243da2e73bf5c40d679a3e3 Signed-off-by: Andy Pei --- drivers/raw/ifpga/ifpga_rawdev.c | 44 +--- 1 file changed, 32 insertions(

[dpdk-dev] [PATCH v3] net/iavf: enable AVX2 for iavf

2019-09-19 Thread Leyi Rong
This patch enables AVX data path for iavf PMD. Signed-off-by: Leyi Rong --- v3: - Adds release note. v2: - fix build error on aarch64. --- doc/guides/rel_notes/release_19_11.rst | 3 + drivers/net/iavf/Makefile | 21 + drivers/net/iavf/iavf_rxtx.c| 99 +-- driver

[dpdk-dev] [PATCH v2 01/16] vhost: add single packet enqueue function

2019-09-19 Thread Marvin Liu
Add vhost enqueue function for single packet and meanwhile left space for flush used ring function. Signed-off-by: Marvin Liu diff --git a/lib/librte_vhost/virtio_net.c b/lib/librte_vhost/virtio_net.c index 5b85b832d..2b5c47145 100644 --- a/lib/librte_vhost/virtio_net.c +++ b/lib/librte_vhost/vi

[dpdk-dev] [PATCH v2 00/16] vhost packed ring performance optimization

2019-09-19 Thread Marvin Liu
Packed ring has more compact ring format and thus can significantly reduce the number of cache miss. It can lead to better performance. This has been approved in virtio user driver, on normal E5 Xeon cpu single core performance can raise 12%. http://mails.dpdk.org/archives/dev/2018-April/095470.ht

[dpdk-dev] [PATCH v2 02/16] vhost: unify unroll pragma parameter

2019-09-19 Thread Marvin Liu
Add macro for unifying Clang/ICC/GCC unroll pragma format. Burst functions were contained of several small loops which optimized by compiler’s loop unrolling pragma. Signed-off-by: Marvin Liu diff --git a/lib/librte_vhost/Makefile b/lib/librte_vhost/Makefile index 8623e91c0..30839a001 100644 ---

[dpdk-dev] [PATCH v2 04/16] vhost: add single packet dequeue function

2019-09-19 Thread Marvin Liu
Add vhost single packet dequeue function for packed ring and meanwhile left space for shadow used ring update function. Signed-off-by: Marvin Liu diff --git a/lib/librte_vhost/virtio_net.c b/lib/librte_vhost/virtio_net.c index c664b27c5..047fa7dc8 100644 --- a/lib/librte_vhost/virtio_net.c +++ b

[dpdk-dev] [PATCH v2 06/16] vhost: rename flush shadow used ring functions

2019-09-19 Thread Marvin Liu
Simplify flush shadow used ring function names as all shadow rings are reflect to used rings. No need to emphasize ring type. Signed-off-by: Marvin Liu diff --git a/lib/librte_vhost/virtio_net.c b/lib/librte_vhost/virtio_net.c index 23c0f4685..ebd6c175d 100644 --- a/lib/librte_vhost/virtio_net.c

[dpdk-dev] [PATCH v2 03/16] vhost: add burst enqueue function for packed ring

2019-09-19 Thread Marvin Liu
Burst enqueue function will first check whether descriptors are cache aligned. It will also check prerequisites in the beginning. Burst enqueue function not support chained mbufs, single packet enqueue function will handle it. Signed-off-by: Marvin Liu diff --git a/lib/librte_vhost/vhost.h b/lib

[dpdk-dev] [PATCH v2 05/16] vhost: add burst dequeue function

2019-09-19 Thread Marvin Liu
Add burst dequeue function like enqueue function for packed ring, burst dequeue function will not support chained descritpors, single packet dequeue function will handle it. Signed-off-by: Marvin Liu diff --git a/lib/librte_vhost/vhost.h b/lib/librte_vhost/vhost.h index 67889c80a..9fa3c8adf 1006

[dpdk-dev] [PATCH v2 09/16] vhost: buffer vhost dequeue shadow ring

2019-09-19 Thread Marvin Liu
Buffer used ring updates as many as possible in vhost dequeue function for coordinating with virtio driver. For supporting buffer, shadow used ring element should contain descriptor index and its wrap counter. First shadowed ring index is recorded for calculating buffered number. Signed-off-by: Ma

[dpdk-dev] [PATCH v2 07/16] vhost: flush vhost enqueue shadow ring by burst

2019-09-19 Thread Marvin Liu
Buffer vhost enqueue shadow ring update, flush shadow ring until buffered descriptors number exceed one burst. Thus virtio can receive packets at a faster frequency. Signed-off-by: Marvin Liu diff --git a/lib/librte_vhost/vhost.h b/lib/librte_vhost/vhost.h index 9fa3c8adf..000648dd4 100644 --- a

[dpdk-dev] [PATCH v2 08/16] vhost: add flush function for burst enqueue

2019-09-19 Thread Marvin Liu
Flush used flags when burst enqueue function is finished. Descriptor's flags are pre-calculated as them will be reset by vhost. Signed-off-by: Marvin Liu diff --git a/lib/librte_vhost/vhost.h b/lib/librte_vhost/vhost.h index 000648dd4..9c42c7db0 100644 --- a/lib/librte_vhost/vhost.h +++ b/lib/li

[dpdk-dev] [PATCH v2 10/16] vhost: split enqueue and dequeue flush functions

2019-09-19 Thread Marvin Liu
Vhost enqueue descriptors are updated by burst number, while vhost dequeue descriptors are buffered. Meanwhile in dequeue function only first descriptor is buffered. Due to these differences, split vhost enqueue and dequeue flush functions. Signed-off-by: Marvin Liu diff --git a/lib/librte_vhost

[dpdk-dev] [PATCH v2 13/16] vhost: optimize dequeue function of packed ring

2019-09-19 Thread Marvin Liu
Optimize vhost device Rx datapath by separate functions. No-chained and direct descriptors will be handled by burst and other will be handled one by one as before. Signed-off-by: Marvin Liu diff --git a/lib/librte_vhost/virtio_net.c b/lib/librte_vhost/virtio_net.c index a8df74f87..066514e43 1006

[dpdk-dev] [PATCH v2 11/16] vhost: optimize enqueue function of packed ring

2019-09-19 Thread Marvin Liu
Optimize vhost device Tx datapath by separate functions. Packets can be filled into one descriptor will be handled by burst and others will be handled one by one as before. Pre-fetch descriptors in next two cache lines as hardware will load two cache line data automatically. Signed-off-by: Marvin

[dpdk-dev] [PATCH v2 16/16] vhost: optimize packed ring dequeue when in-order

2019-09-19 Thread Marvin Liu
When VIRTIO_F_IN_ORDER feature is negotiated, vhost can optimize dequeue function by only update first used descriptor. Signed-off-by: Marvin Liu diff --git a/lib/librte_vhost/virtio_net.c b/lib/librte_vhost/virtio_net.c index 357517cdd..a7bb4ec79 100644 --- a/lib/librte_vhost/virtio_net.c +++ b

[dpdk-dev] [PATCH v2 14/16] vhost: cache address translation result

2019-09-19 Thread Marvin Liu
Cache address translation result and use it in next translation. Due to limited regions are supported, buffers are most likely in same region when doing data transmission. Signed-off-by: Marvin Liu diff --git a/lib/librte_vhost/rte_vhost.h b/lib/librte_vhost/rte_vhost.h index 7fb172912..d90235cd

[dpdk-dev] [PATCH v2 12/16] vhost: add burst and single zero dequeue functions

2019-09-19 Thread Marvin Liu
Optimize vhost zero copy dequeue path like normal dequeue path. Signed-off-by: Marvin Liu diff --git a/lib/librte_vhost/virtio_net.c b/lib/librte_vhost/virtio_net.c index 2418b4e45..a8df74f87 100644 --- a/lib/librte_vhost/virtio_net.c +++ b/lib/librte_vhost/virtio_net.c @@ -1909,6 +1909,144 @@ v

[dpdk-dev] [PATCH v2 15/16] vhost: check whether disable software pre-fetch

2019-09-19 Thread Marvin Liu
Disable software pre-fetch actions on Skylake and Cascadelake platforms. Hardware can fetch needed data for vhost, additional software pre-fetch will have impact on performance. Signed-off-by: Marvin Liu diff --git a/lib/librte_vhost/Makefile b/lib/librte_vhost/Makefile index 30839a001..5f3b42e5

Re: [dpdk-dev] [PATCH v3 1/1] app/testpmd: add console cmd to show port supported ptypes

2019-09-19 Thread Iremonger, Bernard
> -Original Message- > From: vattun...@marvell.com [mailto:vattun...@marvell.com] > Sent: Thursday, September 19, 2019 4:50 AM > To: dev@dpdk.org > Cc: Lu, Wenzhuo ; Wu, Jingjing > ; Iremonger, Bernard > ; tho...@monjalon.net; Vamsi Attunuru > > Subject: [dpdk-dev] [PATCH v3 1/1] app/testp

[dpdk-dev] [PATCH v6 01/17] net/i40e: i40e support ipn3ke FPGA port bonding

2019-09-19 Thread Andy Pei
In ipn3ke, each FPGA network side port bonding to an i40e pf, each i40e pf link status should get data from FPGA network, side port. This patch provide bonding relationship. Signed-off-by: Rosen Xu Signed-off-by: Andy Pei --- drivers/net/i40e/base/i40e_type.h | 3 +++ drivers/net/i40e/i40e_eth

[dpdk-dev] [PATCH v6 00/17] add PCIe AER disable and IRQ support for ipn3ke

2019-09-19 Thread Andy Pei
This patch set adds PCIe AER disable and IRQ support for ipn3ke. Disable PCIe AER is very useful when FPGA reload. IRQ is used very widely in interrupt process. For ipn3ke is connect to CPU with PCIe switch, driver needs to scan all PCIe devices of ipn3ke, it also can get all i40e of card, so ipn3

[dpdk-dev] [PATCH v6 02/17] raw/ifpga/base: add irq support

2019-09-19 Thread Andy Pei
From: Tianfei zhang Add irq support for ifpga FME globle error, port error and uint unit. We implmented this feature by vfio interrupt mechanism. Signed-off-by: Tianfei zhang Signed-off-by: Andy Pei --- drivers/raw/ifpga/base/ifpga_feature_dev.c | 60 ++ drivers/ra

[dpdk-dev] [PATCH v6 03/17] raw/ifpga/base: clear pending bit

2019-09-19 Thread Andy Pei
From: Tianfei zhang Every defined bit in FME_ERROR0 is RW1C. Other reserved bits are always 0 when readout and it will plan to be RW1C if needed in future. So it is safe just write the read back value to clear all the errors. Signed-off-by: Tianfei zhang Signed-off-by: Andy Pei --- drivers/ra

[dpdk-dev] [PATCH v6 06/17] raw/ifpga/base: align the send buffer for SPI

2019-09-19 Thread Andy Pei
From: Tianfei zhang The length of send buffer of SPI bus should be 4bytes align. Signed-off-by: Tianfei Zhang Signed-off-by: Andy Pei --- drivers/raw/ifpga/base/opae_spi_transaction.c | 40 --- 1 file changed, 36 insertions(+), 4 deletions(-) diff --git a/drivers/raw/

[dpdk-dev] [PATCH v6 05/17] raw/ifpga/base: add device tree support

2019-09-19 Thread Andy Pei
From: Tianfei zhang In PAC N3000 card, this is a BMC chip which using MAX10 FPGA to manage the board configuration, like sensors, flash controller, QSFP, powers. And this is a SPI bus connected between A10 FPGA and MAX10, we can access the MAX10 registers over this SPI bus. In BMC, there are abo

[dpdk-dev] [PATCH v6 04/17] raw/ifpga/base: add SEU error support

2019-09-19 Thread Andy Pei
From: Tianfei zhang This patch exposes SEU error information to application then application could compare this information (128bit) with its own SMH file to know if this SEU is a fatal error or not. Signed-off-by: Tianfei zhang Signed-off-by: Andy Pei --- drivers/raw/ifpga/base/ifpga_defines

[dpdk-dev] [PATCH v6 07/17] raw/ifpga/base: add sensor support

2019-09-19 Thread Andy Pei
From: Tianfei zhang The sensor devices are connected in MAX10 FPGA. we used the device tree to describe those sensor devices. Parse the device tree to get the sensor devices and add them into a list. Signed-off-by: Tianfei zhang Signed-off-by: Andy Pei --- drivers/raw/ifpga/base/opae_intel_ma

[dpdk-dev] [PATCH v6 08/17] raw/ifpga/base: introducing sensor APIs

2019-09-19 Thread Andy Pei
From: Tianfei zhang Introducing sensor APIs to PMD driver for PAC N3000 card. Those sensor APIs: 1. opae_mgr_for_each_sensor() 2. opae_mgr_get_sensor_by_name() 3. opae_mgr_get_sensor_by_id() 4. opae_mgr_get_sensor_value_by_name() 5. opae_mgr_get_sensor_value_by_id() 6. opae_mgr_get_sensor_value(

[dpdk-dev] [PATCH v6 10/17] raw/ifpga: add SEU error handler

2019-09-19 Thread Andy Pei
From: Rosen Xu Add SEU interrupt support for FPGA. Signed-off-by: Tianfei zhang Signed-off-by: Rosen Xu Signed-off-by: Andy Pei --- drivers/raw/ifpga/ifpga_rawdev.c | 245 +++ 1 file changed, 245 insertions(+) diff --git a/drivers/raw/ifpga/ifpga_rawdev.c

[dpdk-dev] [PATCH v6 09/17] raw/ifpga/base: update SEU register definition

2019-09-19 Thread Andy Pei
From: Tianfei zhang Update the SEU registser definition. Signed-off-by: Tianfei zhang Signed-off-by: Andy Pei --- drivers/raw/ifpga/base/ifpga_defines.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/raw/ifpga/base/ifpga_defines.h b/drivers/raw/ifpga/base/ifpg

[dpdk-dev] [PATCH v6 13/17] raw/ifpga/base: add secure support

2019-09-19 Thread Andy Pei
From: Tianfei zhang Add secure max10 device support. Signed-off-by: Tianfei zhang Signed-off-by: Andy Pei --- drivers/raw/ifpga/base/ifpga_defines.h| 2 + drivers/raw/ifpga/base/ifpga_fme.c| 26 -- drivers/raw/ifpga/base/opae_intel_max10.c | 136 +---

[dpdk-dev] [PATCH v6 11/17] raw/ifpga: add PCIe BDF devices tree scan

2019-09-19 Thread Andy Pei
From: Rosen Xu Add PCIe BDF devices tree scan for ipn3ke. Signed-off-by: Rosen Xu Signed-off-by: Andy Pei --- drivers/raw/ifpga/ifpga_rawdev.c | 546 ++- drivers/raw/ifpga/ifpga_rawdev.h | 16 ++ 2 files changed, 557 insertions(+), 5 deletions(-) diff --g

[dpdk-dev] [PATCH v6 12/17] net/ipn3ke: remove configuration for i40e port bonding

2019-09-19 Thread Andy Pei
From: Rosen Xu The ipn3ke board FPGA and i40e BDF scan has added in ifpga_rawdev, so it doesn't need to provide configuration for i40e port bonding. Signed-off-by: Rosen Xu Signed-off-by: Andy Pei --- drivers/net/ipn3ke/Makefile | 2 + drivers/net/ipn3ke/ipn3ke_ethdev.c | 2

[dpdk-dev] [PATCH v6 14/17] raw/ifpga/base: configure FEC mode

2019-09-19 Thread Andy Pei
From: Tianfei Zhang We can change the PKVL FEC mode when the A10 NIOS FW initialization. The end-user can use this feature the change the FEC mode, the default mode is RS FEC mode. Signed-off-by: Tianfei Zhang Signed-off-by: Andy Pei --- drivers/raw/ifpga/base/ifpga_fme.c | 42 +++

[dpdk-dev] [PATCH v6 15/17] raw/ifpga/base: clean fme errors

2019-09-19 Thread Andy Pei
From: Tianfei Zhang Clean fme errors register when some fme errors occurred. Signed-off-by: Tianfei Zhang Signed-off-by: Andy Pei --- drivers/raw/ifpga/base/ifpga_fme_error.c | 24 ++-- drivers/raw/ifpga/ifpga_rawdev.c | 22 ++ 2 files changed,

[dpdk-dev] [PATCH v6 17/17] raw/ifpga: add lightweight fpga image support

2019-09-19 Thread Andy Pei
if fpga image support lightweight feature, set afu uuid to all 0, ipn3ke representor will not be probed. Signed-off-by: Andy Pei --- drivers/raw/ifpga/ifpga_rawdev.c | 44 +--- 1 file changed, 32 insertions(+), 12 deletions(-) diff --git a/drivers/raw/ifpga/i

Re: [dpdk-dev] [PATCH v2 0/6] examples/ioat: sample app on ioat driver usage

2019-09-19 Thread Aaron Conole
"Baran, MarcinX" writes: > -Original Message- > From: Aaron Conole > Sent: Friday, September 13, 2019 8:45 PM > To: Baran, MarcinX > Cc: dev@dpdk.org; Richardson, Bruce > Subject: Re: [dpdk-dev] [PATCH v2 0/6] examples/ioat: sample app on ioat > driver usage > > Marcin Baran writes:

[dpdk-dev] [PATCH v6 16/17] raw/ifpga/base: add new API get board info

2019-09-19 Thread Andy Pei
From: Tianfei zhang Add new API to get the board info. opae_mgr_get_board_info() Signed-off-by: Tianfei zhang Signed-off-by: Andy Pei --- drivers/raw/ifpga/base/ifpga_api.c | 11 +++ drivers/raw/ifpga/base/ifpga_defines.h | 55 ++ drivers/raw/ifpga/base

[dpdk-dev] [PATCH v2 00/10] example/l2fwd-event: introduce l2fwd-event example

2019-09-19 Thread pbhagavatula
From: Pavan Nikhilesh This patchset adds a new application to demonstrate the usage of event mode. The poll mode is also available to help with the transition. The following new command line parameters are added: --mode: Dictates the mode of operation either poll or event. --eventq_sync: Dicta

[dpdk-dev] [PATCH v2 04/10] examples/l2fwd-event: add eth port setup for eventdev

2019-09-19 Thread pbhagavatula
From: Sunil Kumar Kori Add ethernet port Rx/Tx queue setup for event device which are later used for setting up event eth Rx/Tx adapters. Signed-off-by: Sunil Kumar Kori --- examples/l2fwd-event/l2fwd_eventdev.c | 114 ++ examples/l2fwd-event/l2fwd_eventdev.h | 1 + e

[dpdk-dev] [PATCH v2 03/10] examples/l2fwd-event: add infra to split eventdev framework

2019-09-19 Thread pbhagavatula
From: Pavan Nikhilesh Add infra to split eventdev framework based on event Tx adapter capability. If event Tx adapter has internal port capability then we use `rte_event_eth_tx_adapter_enqueue` to transmitting packets else we use a SINGLE_LINK event queue to enqueue packets to a service core whic

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

2019-09-19 Thread pbhagavatula
From: Sunil Kumar Kori Add the default l2fwd poll mode routines similar to examples/l2fwd. Signed-off-by: Sunil Kumar Kori --- examples/Makefile | 1 + examples/l2fwd-event/Makefile | 57 +++ examples/l2fwd-event/l2fwd_common.h | 26 + examples/l2fwd-event/main.c

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

2019-09-19 Thread pbhagavatula
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: `--mode="eventdev"` or `--mode="poll"` `--eventq-sync="order

[dpdk-dev] [PATCH v2 08/10] examples/l2fwd-event: add eventdev main loop

2019-09-19 Thread pbhagavatula
From: Pavan Nikhilesh Add event dev main loop based on enabled l2fwd options and eventdev capabilities. Signed-off-by: Pavan Nikhilesh --- examples/l2fwd-event/l2fwd_eventdev.c | 273 ++ examples/l2fwd-event/main.c | 10 +- 2 files changed, 280 insertions(+),

[dpdk-dev] [PATCH v2 06/10] examples/l2fwd-event: add event Rx/Tx adapter setup

2019-09-19 Thread pbhagavatula
From: Pavan Nikhilesh Add event eth Rx/Tx adapter setup for both generic and internal port event device pipelines. Signed-off-by: Sunil Kumar Kori Signed-off-by: Pavan Nikhilesh --- examples/l2fwd-event/l2fwd_eventdev.c | 3 + examples/l2fwd-event/l2fwd_eventdev.h | 17 +++

[dpdk-dev] [PATCH v2 09/10] examples/l2fwd-event: add graceful teardown

2019-09-19 Thread pbhagavatula
From: Pavan Nikhilesh Add graceful teardown that addresses both event mode and poll mode. Signed-off-by: Pavan Nikhilesh --- examples/l2fwd-event/main.c | 44 + 1 file changed, 35 insertions(+), 9 deletions(-) diff --git a/examples/l2fwd-event/main.c b/exam

[dpdk-dev] [PATCH v2 07/10] examples/l2fwd-event: add service core setup

2019-09-19 Thread pbhagavatula
From: Sunil Kumar Kori Add service core setup when eventdev and Rx/Tx adapter don't have internal port capability. Signed-off-by: Sunil Kumar Kori --- examples/l2fwd-event/l2fwd_eventdev_generic.c | 31 +++ .../l2fwd_eventdev_internal_port.c| 6 examples/l2fwd

[dpdk-dev] [PATCH v2 05/10] examples/l2fwd-event: add eventdev queue and port setup

2019-09-19 Thread pbhagavatula
From: Pavan Nikhilesh Add event device queue and port setup based on event eth Tx adapter capabilities. Signed-off-by: Sunil Kumar Kori Signed-off-by: Pavan Nikhilesh --- examples/l2fwd-event/l2fwd_eventdev.c | 10 + examples/l2fwd-event/l2fwd_eventdev.h | 18 ++ examples/l2

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

2019-09-19 Thread pbhagavatula
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/sample_app_ug/index.rst| 1 + doc/guides/sample_

[dpdk-dev] [PATCH v4 0/6] examples/ioat: sample app on ioat driver usage

2019-09-19 Thread Marcin Baran
A new sample app demonstrating use of driver for CBDMA. The app receives packets, performs software or hardware copy, changes packets' MAC addresses (if enabled) and forwards them. The patch includes sample application as well as it's guide. v4: - fix meson build support check v3: - add check f

[dpdk-dev] [PATCH v4 1/6] examples/ioat: create sample app on ioat driver usage

2019-09-19 Thread Marcin Baran
From: Pawel Modrak A new sample app demonstrating use of driver for CBDMA. The app receives packets, performs software or hardware copy, changes packets' MAC addresses (if enabled) and forwards them. The change covers ports initialization, closing connection and argument parsing. Signed-off-by:

[dpdk-dev] [PATCH v4 2/6] examples/ioat: add software copy support

2019-09-19 Thread Marcin Baran
Added support for copying packets using software copy mode and MAC address changing. The copies are processed using one lcore. Signed-off-by: Marcin Baran Signed-off-by: Pawel Modrak --- examples/ioat/ioatfwd.c | 211 +++- 1 file changed, 188 insertions(+), 2

[dpdk-dev] [PATCH v4 3/6] examples/ioat: add rawdev copy mode support

2019-09-19 Thread Marcin Baran
Added support for copying packets using rawdev device. Each port's Rx queue is assigned DMA channel for copy. Signed-off-by: Marcin Baran Signed-off-by: Pawel Modrak --- examples/ioat/ioatfwd.c | 236 1 file changed, 189 insertions(+), 47 deletions(-) d

[dpdk-dev] [PATCH v4 4/6] examples/ioat: add two threads configuration

2019-09-19 Thread Marcin Baran
From: Pawel Modrak Added possibility to use two lcores: first for packet receiving and copying, second for packets sending. Signed-off-by: Pawel Modrak Signed-off-by: Marcin Baran --- examples/ioat/ioatfwd.c | 92 ++--- 1 file changed, 67 insertions(+), 25

[dpdk-dev] [PATCH v4 5/6] examples/ioat: add stats printing for each port

2019-09-19 Thread Marcin Baran
Added printing stats of ports each second. The stats printing is done using master core. The information provided informs about packets received, dropped and send as well as statistics of rawdev devices. Signed-off-by: Marcin Baran Signed-off-by: Pawel Modrak --- examples/ioat/ioatfwd.c | 245 +

[dpdk-dev] [PATCH v4 6/6] doc/guides/: provide IOAT sample app guide

2019-09-19 Thread Marcin Baran
Added guide for IOAT sample app usage and code description. Signed-off-by: Marcin Baran --- doc/guides/sample_app_ug/index.rst | 1 + doc/guides/sample_app_ug/intro.rst | 4 + doc/guides/sample_app_ug/ioat.rst | 764 + 3 files changed, 769 insertions(+) create m

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

2019-09-19 Thread Sunil Kumar Kori
Regards Sunil Kumar Kori >-Original Message- >From: pbhagavat...@marvell.com >Sent: Thursday, September 19, 2019 2:56 PM >To: Jerin Jacob Kollanukkaran ; >bruce.richard...@intel.com; akhil.go...@nxp.com; Marko Kovacevic >; Ori Kam ; Radu >Nicolau ; Tomasz Kantecki >; Sunil Kumar Kori ;

[dpdk-dev] [PATCH v3 03/10] examples/l2fwd-event: add infra to split eventdev framework

2019-09-19 Thread pbhagavatula
From: Pavan Nikhilesh Add infra to split eventdev framework based on event Tx adapter capability. If event Tx adapter has internal port capability then we use `rte_event_eth_tx_adapter_enqueue` to transmitting packets else we use a SINGLE_LINK event queue to enqueue packets to a service core whic

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

2019-09-19 Thread pbhagavatula
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: `--mode="eventdev"` or `--mode="poll"` `--eventq-sync="order

[dpdk-dev] [PATCH v3 00/10] example/l2fwd-event: introduce l2fwd-event example

2019-09-19 Thread pbhagavatula
From: Pavan Nikhilesh This patchset adds a new application to demonstrate the usage of event mode. The poll mode is also available to help with the transition. The following new command line parameters are added: --mode: Dictates the mode of operation either poll or event. --eventq_sync: Dicta

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

2019-09-19 Thread pbhagavatula
From: Sunil Kumar Kori Add the default l2fwd poll mode routines similar to examples/l2fwd. Signed-off-by: Sunil Kumar Kori --- examples/Makefile | 1 + examples/l2fwd-event/Makefile | 57 +++ examples/l2fwd-event/l2fwd_common.h | 26 + examples/l2fwd-event/main.c

[dpdk-dev] [PATCH v3 06/10] examples/l2fwd-event: add event Rx/Tx adapter setup

2019-09-19 Thread pbhagavatula
From: Pavan Nikhilesh Add event eth Rx/Tx adapter setup for both generic and internal port event device pipelines. Signed-off-by: Sunil Kumar Kori Signed-off-by: Pavan Nikhilesh --- examples/l2fwd-event/l2fwd_eventdev.c | 3 + examples/l2fwd-event/l2fwd_eventdev.h | 17 +++

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

2019-09-19 Thread pbhagavatula
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/sample_app_ug/index.rst| 1 + doc/guides/sample_

[dpdk-dev] [PATCH v3 04/10] examples/l2fwd-event: add eth port setup for eventdev

2019-09-19 Thread pbhagavatula
From: Sunil Kumar Kori Add ethernet port Rx/Tx queue setup for event device which are later used for setting up event eth Rx/Tx adapters. Signed-off-by: Sunil Kumar Kori --- examples/l2fwd-event/l2fwd_eventdev.c | 114 ++ examples/l2fwd-event/l2fwd_eventdev.h | 1 + e

[dpdk-dev] [PATCH v3 05/10] examples/l2fwd-event: add eventdev queue and port setup

2019-09-19 Thread pbhagavatula
From: Pavan Nikhilesh Add event device queue and port setup based on event eth Tx adapter capabilities. Signed-off-by: Sunil Kumar Kori Signed-off-by: Pavan Nikhilesh --- examples/l2fwd-event/l2fwd_eventdev.c | 10 + examples/l2fwd-event/l2fwd_eventdev.h | 18 ++ examples/l2

[dpdk-dev] [PATCH v3 09/10] examples/l2fwd-event: add graceful teardown

2019-09-19 Thread pbhagavatula
From: Pavan Nikhilesh Add graceful teardown that addresses both event mode and poll mode. Signed-off-by: Pavan Nikhilesh --- examples/l2fwd-event/main.c | 44 + 1 file changed, 35 insertions(+), 9 deletions(-) diff --git a/examples/l2fwd-event/main.c b/exam

[dpdk-dev] [PATCH v3 07/10] examples/l2fwd-event: add service core setup

2019-09-19 Thread pbhagavatula
From: Sunil Kumar Kori Add service core setup when eventdev and Rx/Tx adapter don't have internal port capability. Signed-off-by: Sunil Kumar Kori --- examples/l2fwd-event/l2fwd_eventdev_generic.c | 31 +++ .../l2fwd_eventdev_internal_port.c| 6 examples/l2fwd

[dpdk-dev] [PATCH v3 08/10] examples/l2fwd-event: add eventdev main loop

2019-09-19 Thread pbhagavatula
From: Pavan Nikhilesh Add event dev main loop based on enabled l2fwd options and eventdev capabilities. Signed-off-by: Pavan Nikhilesh --- examples/l2fwd-event/l2fwd_eventdev.c | 273 ++ examples/l2fwd-event/main.c | 10 +- 2 files changed, 280 insertions(+),

Re: [dpdk-dev] 18.11.3 (LTS) patches review and test

2019-09-19 Thread Yu, PingX
Hi all, Update Intel test result here. # Basic Intel(R) NIC testing * PF(i40e): Pass * PF(ixgbe): Pass * VF: Pass * Build or compile: 3 bugs are found. 1. [dpdk-stable 18.11.3] compile error on freebsd12 2. [dpdk-stable 18.11.3] meson build error on ub1604-i86 3. [dpdk-stable 18.11.3] confi

Re: [dpdk-dev] [PATCH v3 05/10] examples/l2fwd-event: add eventdev queue and port setup

2019-09-19 Thread Sunil Kumar Kori
>+static void >+event_port_setup_generic(void) >+{ >+ struct eventdev_resources *eventdev_rsrc = get_eventdev_rsrc(); >+ uint8_t event_d_id = eventdev_rsrc->event_d_id; >+ struct rte_event_port_conf event_p_conf = { >+ .dequeue_depth = 32, >+ .enqueue_depth

Re: [dpdk-dev] [PATCH v2 0/3] examples/ipsec-secgw: add fallback session

2019-09-19 Thread Anoob Joseph
Hi Konstantin, Please see inline. Thanks, Anoob > -Original Message- > From: Ananyev, Konstantin > Sent: Thursday, September 19, 2019 1:04 PM > To: Anoob Joseph ; Smoczynski, MarcinX > ; akhil.go...@nxp.com > Cc: dev@dpdk.org; Narayana Prasad Raju Athreya ; > Jerin Jacob Kollanukkaran ;

[dpdk-dev] [PATCH] net/axgbe: fix double unlock coverity issue

2019-09-19 Thread Pallantla Poornima
One issue caught by Coverity 340835 *unlock: axgbe_phy_set_mode unlocks pdata->phy_mutex *double_unlock: axgbe_phy_sfp_detect unlocks pdata->phy_mutex while it is unlocked. In axgbe_phy_sfp_detect()/axgbe_phy_set_redrv_mode(), axgbe_phy_get_comm_ownership() and axgbe_phy_put_comm_ownership() are i

[dpdk-dev] [PATCH] kni: add ability to set min/max MTU

2019-09-19 Thread Igor Ryzhov
Starting with kernel version 4.10, there are new min/max MTU values in net_device structure, which are set to ETH_MIN_MTU and ETH_DATA_LEN by default. We should be able to change these values to allow MTU more than 1500 to be set on KNI. Signed-off-by: Igor Ryzhov --- examples/kni/main.c

[dpdk-dev] [PATCH 1/8] examples/fips_validation: separation between HMAC-SHA and SHA

2019-09-19 Thread michaelsh
From: Michael Shamis Fix: SHA initialization will not be called in case of HAMC-SHA Signed-off-by: Michael Shamis --- examples/fips_validation/fips_validation.c | 12 +++- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/examples/fips_validation/fips_validation.c b/exampl

[dpdk-dev] [PATCH 2/8] examples/fips_validation: fix structs used for AES-GCM

2019-09-19 Thread michaelsh
From: Michael Shamis Signed-off-by: Michael Shamis --- examples/fips_validation/fips_validation_gcm.c | 16 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/examples/fips_validation/fips_validation_gcm.c b/examples/fips_validation/fips_validation_gcm.c index 0509b

[dpdk-dev] [PATCH 0/8] Fips validation fixes

2019-09-19 Thread michaelsh
From: Michael Shamis Include fixes related to SHA, TDES and GCM. Michael Shamis (8): examples/fips_validation: separation between HMAC-SHA and SHA examples/fips_validation: fix structs used for AES-GCM examples/fips_validation: initialize IV for AES-GCM examples/fips_validation: move dig

[dpdk-dev] [PATCH 3/8] examples/fips_validation: initialize IV for AES-GCM

2019-09-19 Thread michaelsh
From: Michael Shamis Configurated AES-GCM IV may include only salt value which length is 12B. In this case driver should set second part of IV to initial value = 0x1. Signed-off-by: Michael Shamis --- examples/fips_validation/main.c | 11 +-- 1 file changed, 9 insertions(+), 2 deletion

[dpdk-dev] [PATCH 5/8] examples/fips_validation: fix AES-GCM decryption vector

2019-09-19 Thread michaelsh
From: Michael Shamis AES-GCM CAVS vectors for decryption set PTlen (plain text length) but provide crypto text and application expected CTlen to be not null. Now we assign PTlen to CTlen in decryption scenario and it allows to application to handle AES-GCM decryption vectors. Signed-off-by: Mich

[dpdk-dev] [PATCH 4/8] examples/fips_validation: move digest after cipher text

2019-09-19 Thread michaelsh
From: Michael Shamis Fix of GCM FIPS bug: ICV was not copied after the crypto text in decryption operation so driver failed to check authentication in GCM mode. Signed-off-by: Michael Shamis --- examples/fips_validation/main.c | 4 1 file changed, 4 insertions(+) diff --git a/examples/fi

[dpdk-dev] [PATCH 8/8] examples/fips_validation: fix plain text overwrite

2019-09-19 Thread michaelsh
From: Michael Shamis fix erroneous overwrite of PLAINTEXT-line after [DECRYPT] tag Signed-off-by: Michael Shamis --- examples/fips_validation/fips_validation.c | 11 +++ 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/examples/fips_validation/fips_validation.c b/examples

  1   2   >