[PATCH v2 0/6] update autotest with new algorithms

2022-10-21 Thread Tejasree Kondoj
This series updates autotest with DES, 3DES, MD5 and custom UDP ports support. v2: * Squashed a change in 5th patch with 2nd one. Tejasree Kondoj (2): test/crypto: check antireply capability only for ingress test/crypto: add unit test for custom UDP ports Vidya Sagar Velumuri (4): test/sec

[PATCH v2 2/6] test/security: add unit tests for auth algo MD5

2022-10-21 Thread Tejasree Kondoj
From: Vidya Sagar Velumuri Add unit test cases for MD5 auth algo. Add the test vectors for MD5 auth algo. Signed-off-by: Vidya Sagar Velumuri --- app/test/test_cryptodev_security_ipsec.h | 6 + ...st_cryptodev_security_ipsec_test_vectors.h | 107 ++ app/test/test_securit

[PATCH v2 1/6] test/security: add unit tests for DES and 3DES

2022-10-21 Thread Tejasree Kondoj
From: Vidya Sagar Velumuri Add unit test cases and test vectors for DES-CBC and 3DES-CBC. Signed-off-by: Vidya Sagar Velumuri --- app/test/test_cryptodev_security_ipsec.h | 12 + ...st_cryptodev_security_ipsec_test_vectors.h | 876 ++ app/test/test_security_inline_proto.c

[PATCH v2 4/6] test/crypto: check antireply capability only for ingress

2022-10-21 Thread Tejasree Kondoj
From: Vidya Sagar Velumuri Antireplay is supported only for ingress. Check this capability only for ingress. Signed-off-by: Tejasree Kondoj Signed-off-by: Vidya Sagar Velumuri --- app/test/test_cryptodev_security_ipsec.c | 12 +++- 1 file changed, 7 insertions(+), 5 deletions(-) diff

[PATCH v2 3/6] test/security: update antireplay unit test for event mode

2022-10-21 Thread Tejasree Kondoj
From: Vidya Sagar Velumuri With event mode is enabled, send and receive packets via event dev Signed-off-by: Vidya Sagar Velumuri --- app/test/test_security_inline_proto.c | 20 ++-- 1 file changed, 14 insertions(+), 6 deletions(-) diff --git a/app/test/test_security_inline_pr

[PATCH v2 5/6] test/crypto: add unit tests for DES and MD5

2022-10-21 Thread Tejasree Kondoj
From: Vidya Sagar Velumuri Add unit test cases for auth algo MD5. Add unit test cases for cipher DES-CBC. Signed-off-by: Vidya Sagar Velumuri --- app/test/test_cryptodev.c | 50 +++ 1 file changed, 50 insertions(+) diff --git a/app/test/test_cryptodev.c b/a

[PATCH v2 6/6] test/crypto: add unit test for custom UDP ports

2022-10-21 Thread Tejasree Kondoj
From: Vidya Sagar Velumuri Add unit test for custom UDP ports with UDP encapsulation. Verify UDP header in egress path for all unit tests. Signed-off-by: Tejasree Kondoj Signed-off-by: Vidya Sagar Velumuri --- app/test/test_cryptodev.c| 21 +++ app/test/test_cryptodev_secu

RE: [PATCH] app/test: fix LACP handshake overtime

2022-10-21 Thread Zhang, Ke1X
Hi humin: Maybe in other occasions, 60 * delay is also not enough. === Yes, maybe it is not enough for other occasions, so what value is set in you opinion? BTW, how about config "conf.update_timeout_ms" for the test? ==

Re: [PATCH v9 02/14] net/idpf: add support for device initialization

2022-10-21 Thread Andrew Rybchenko
On 10/21/22 08:18, Junfeng Guo wrote: Support device init and add the following dev ops skeleton: - dev_configure - dev_start - dev_stop - dev_close Signed-off-by: Beilei Xing Signed-off-by: Xiaoyun Li Signed-off-by: Xiao Wang Signed-off-by: Junfeng Guo --- MAINTAINERS

Re: [PATCH v9 03/14] net/idpf: add queue setup and release in single queue model

2022-10-21 Thread Andrew Rybchenko
Just top level review for the rest of patches starting from this one. On 10/21/22 08:18, Junfeng Guo wrote: Add support for queue operations in single queue model: - rx_queue_setup - rx_queue_release - tx_queue_setup - tx_queue_release In the single queue model, the same descriptor queu

Re: [EXT] [PATCH v4 0/6] crypto/uadk: introduce uadk crypto driver

2022-10-21 Thread Zhangfei Gao
On Fri, 21 Oct 2022 at 01:12, Akhil Goyal wrote: > > > On Thu, 20 Oct 2022 at 22:46, Akhil Goyal wrote: > > > > > > > Introduce a new crypto PMD for hardware accelerators based on UADK [1]. > > > > > > > > UADK is a framework for user applications to access hardware > > > > accelerators. > > > >

Re: [PATCH v9 02/14] net/idpf: add support for device initialization

2022-10-21 Thread Andrew Rybchenko
On 10/21/22 10:39, Andrew Rybchenko wrote: On 10/21/22 08:18, Junfeng Guo wrote: Support device init and add the following dev ops skeleton:   - dev_configure   - dev_start One more question: are you sure that you can start without queues setup?   - dev_stop   - dev_close Signed-off-by: Bei

Re: [PATCH v9 05/14] net/idpf: add support for queue start and stop

2022-10-21 Thread Andrew Rybchenko
On 10/21/22 08:18, Junfeng Guo wrote: Add support for queue operations: - rx_queue_start - rx_queue_stop - tx_queue_start - tx_queue_stop Qeueues start/stop are required for deferred start. So, before the patch device start must simply start all setup queues which should reject deferred

Re: [PATCH v9 06/14] net/idpf: add support for device information get

2022-10-21 Thread Andrew Rybchenko
On 10/21/22 08:18, Junfeng Guo wrote: Add dev ops dev_infos_get. You can't test neither queues setup nor configure nor start before the patch since ethdev layer uses rte_eth_dev_info_get() and fails if it is not supported. So, previous patches are not actually tested since patches order is wro

Re: [PATCH v9 07/14] net/idpf: add support for packet type get

2022-10-21 Thread Andrew Rybchenko
On 10/21/22 08:18, Junfeng Guo wrote: Add dev ops dev_supported_ptypes_get. It is nice, but I don't see code on datapath which actually provides the packet type information. Basically just after the patch you can't pretend that it is actually supported since there is no datapath yet. Also it do

[PATCH v6 00/27] add the basic rte_flow offload support of nfp PMD

2022-10-21 Thread Chaoyong He
This is the second patch series to add the support of rte_flow offload for nfp PMD, includes: Implement the rte_flow related API Implement the offload framework of nfp card Add the offload support of common rte_flow pattern items Add the offload support of common rte_flow actions * Changes since v

[PATCH v6 01/27] net/nfp: fix CPP bridge service requirement

2022-10-21 Thread Chaoyong He
The CPP(Command Pull Push) bridge service is needed for some debug tools, and should be optional, so remove the mandatory requirement of service lcore parameter. Fixes: b18804219537 ("net/nfp: add initial flower firmware support") Signed-off-by: Chaoyong He --- drivers/net/nfp/nfp_ethdev.c | 14

[PATCH v6 02/27] net/nfp: fix the promiscuous mode control functions

2022-10-21 Thread Chaoyong He
The original functions of promiscuous mode can't process the representor port rightly, revise the logic to do that. Fixes: e1124c4f8a45 ("net/nfp: add flower representor framework") Signed-off-by: Chaoyong He --- drivers/net/nfp/flower/nfp_flower_representor.c | 26 +++-- 1

[PATCH v6 03/27] net/nfp: fix the service stuck the app end

2022-10-21 Thread Chaoyong He
The services don't have a method to break the infinite loop, and this will cause the DPDK app can't end normally. Fixes: a36634e87e16 ("net/nfp: add flower ctrl VNIC Rx/Tx") Signed-off-by: Chaoyong He --- drivers/net/nfp/flower/nfp_flower.c | 1 + drivers/net/nfp/flower/nfp_flower.h

[PATCH v6 04/27] net/nfp: add the structures and functions for flow offload

2022-10-21 Thread Chaoyong He
Add the structures and functions to process mask table, flow table, and flow stats id, which are used in the rte_flow offload logics. Signed-off-by: Chaoyong He Reviewed-by: Niklas Söderlund --- drivers/net/nfp/flower/nfp_flower.c | 11 +- drivers/net/nfp/flower/nfp_flower.h | 2 + drivers/n

[PATCH v6 05/27] net/nfp: add the stats process logic in ctrl VNIC service

2022-10-21 Thread Chaoyong He
Add the flow stats process logic in the ctrl VNIC service. The flower firmware pass the flow stats to nfp driver through control message, we store them in the flow_priv structure. Signed-off-by: Chaoyong He Reviewed-by: Niklas Söderlund --- drivers/net/nfp/flower/nfp_flower_cmsg.h | 25

[PATCH v6 06/27] net/nfp: add the flow APIs of nfp PMD

2022-10-21 Thread Chaoyong He
Add the flow validate/create/query/destroy/flush API of nfp PMD. The flow create API construct a control cmsg and send it to firmware, then add this flow to the hash table. The flow query API get flow stats from the flow_priv structure. Note there exist an rte_spin_lock to prevent the update and

[PATCH v6 07/27] net/nfp: support basic flow items

2022-10-21 Thread Chaoyong He
Add the offload support of very basic items: ethernet and port id. Signed-off-by: Chaoyong He Reviewed-by: Niklas Söderlund --- doc/guides/nics/features/nfp.ini | 4 + doc/guides/rel_notes/release_22_11.rst | 2 + drivers/net/nfp/flower/nfp_flower_cmsg.h | 20 +++ drivers/net/nfp

[PATCH v6 08/27] net/nfp: support basic flow actions

2022-10-21 Thread Chaoyong He
Add the offload support of very basic actions: count, drop and output. Signed-off-by: Chaoyong He Reviewed-by: Niklas Söderlund --- doc/guides/nics/features/nfp.ini | 5 ++ drivers/net/nfp/flower/nfp_flower_cmsg.h | 11 drivers/net/nfp/nfp_flow.c | 100

[PATCH v6 10/27] net/nfp: support IPv4 flow item

2022-10-21 Thread Chaoyong He
Add the corresponding data structure and logics, to support the offload of IPv4 item. Signed-off-by: Chaoyong He Reviewed-by: Niklas Söderlund --- doc/guides/nics/features/nfp.ini | 1 + drivers/net/nfp/flower/nfp_flower_cmsg.h | 38 ++ drivers/net/nfp/nfp_flow.c

[PATCH v6 09/27] net/nfp: support VLAN flow item

2022-10-21 Thread Chaoyong He
Add the corresponding data structure and logics, to support the offload of VLAN item. Signed-off-by: Chaoyong He Reviewed-by: Niklas Söderlund --- doc/guides/nics/features/nfp.ini | 1 + drivers/net/nfp/nfp_flow.c | 46 drivers/net/nfp/nfp_flow.h

[PATCH v6 11/27] net/nfp: support IPv6 flow item

2022-10-21 Thread Chaoyong He
Add the corresponding data structure and logics, to support the offload of IPv6 item. Signed-off-by: Chaoyong He Reviewed-by: Niklas Söderlund --- doc/guides/nics/features/nfp.ini | 1 + drivers/net/nfp/flower/nfp_flower_cmsg.h | 33 +++ drivers/net/nfp/nfp_flow.c

[PATCH v6 12/27] net/nfp: support TCP flow item

2022-10-21 Thread Chaoyong He
Add the corresponding data structure and logics, to support the offload of TCP item. Signed-off-by: Chaoyong He Reviewed-by: Niklas Söderlund --- doc/guides/nics/features/nfp.ini | 1 + drivers/net/nfp/nfp_flow.c | 91 drivers/net/nfp/nfp_flow.h

[PATCH v6 13/27] net/nfp: support UDP flow item

2022-10-21 Thread Chaoyong He
Add the corresponding logics to support the offload of UDP item. Signed-off-by: Chaoyong He Reviewed-by: Niklas Söderlund --- doc/guides/nics/features/nfp.ini | 1 + drivers/net/nfp/nfp_flow.c | 63 ++-- 2 files changed, 62 insertions(+), 2 deletions(-

[PATCH v6 14/27] net/nfp: support SCTP flow item

2022-10-21 Thread Chaoyong He
Add the corresponding logics to support the offload of SCTP item. Signed-off-by: Chaoyong He Reviewed-by: Niklas Söderlund --- doc/guides/nics/features/nfp.ini | 1 + drivers/net/nfp/nfp_flow.c | 63 ++-- 2 files changed, 62 insertions(+), 2 deletions(

[PATCH v6 15/27] net/nfp: support SRC MAC flow action

2022-10-21 Thread Chaoyong He
Add the corresponding data structure and logics, to support the offload of set source MAC action. Signed-off-by: Chaoyong He Reviewed-by: Niklas Söderlund --- doc/guides/nics/features/nfp.ini | 1 + drivers/net/nfp/flower/nfp_flower_cmsg.h | 27 ++ drivers/net/nfp/nfp_f

[PATCH v6 16/27] net/nfp: support DST MAC flow action

2022-10-21 Thread Chaoyong He
Add the corresponding logics to support the offload of set dest MAC action. Signed-off-by: Chaoyong He Reviewed-by: Niklas Söderlund --- doc/guides/nics/features/nfp.ini | 1 + drivers/net/nfp/nfp_flow.c | 15 +++ 2 files changed, 16 insertions(+) diff --git a/doc/guides/nic

[PATCH v6 17/27] net/nfp: support pop VLAN flow action

2022-10-21 Thread Chaoyong He
Add the corresponding data structure and logics, to support the offload of pop_vlan action. Signed-off-by: Chaoyong He Reviewed-by: Niklas Söderlund --- doc/guides/nics/features/nfp.ini | 1 + drivers/net/nfp/flower/nfp_flower_cmsg.h | 5 + drivers/net/nfp/nfp_flow.c

[PATCH v6 18/27] net/nfp: support push VLAN flow action

2022-10-21 Thread Chaoyong He
Add the corresponding data structure and logics, to support the offload of push_vlan action. Signed-off-by: Chaoyong He Reviewed-by: Niklas Söderlund --- doc/guides/nics/features/nfp.ini | 3 ++ drivers/net/nfp/flower/nfp_flower_cmsg.h | 7 drivers/net/nfp/nfp_flow.c

[PATCH v6 19/27] net/nfp: support SRC IPv4 flow action

2022-10-21 Thread Chaoyong He
Add the corresponding data structure and logics, to support the offload of set source IPv4 address action. Signed-off-by: Chaoyong He Reviewed-by: Niklas Söderlund --- doc/guides/nics/features/nfp.ini | 1 + drivers/net/nfp/flower/nfp_flower_cmsg.h | 25 ++ drivers/net/

[PATCH v6 20/27] net/nfp: support DST IPv4 flow action

2022-10-21 Thread Chaoyong He
Add the corresponding logics to support the offload of set dest IPv4 address action. Signed-off-by: Chaoyong He Reviewed-by: Niklas Söderlund --- doc/guides/nics/features/nfp.ini | 1 + drivers/net/nfp/nfp_flow.c | 16 2 files changed, 17 insertions(+) diff --git a/doc/

[PATCH v6 21/27] net/nfp: support SRC IPv6 flow action

2022-10-21 Thread Chaoyong He
Add the corresponding data structure and logics, to support the offload of set source IPv6 address action. Signed-off-by: Chaoyong He Reviewed-by: Niklas Söderlund --- doc/guides/nics/features/nfp.ini | 1 + drivers/net/nfp/flower/nfp_flower_cmsg.h | 33 ++

[PATCH v6 22/27] net/nfp: support DST IPv6 flow action

2022-10-21 Thread Chaoyong He
Add the corresponding logics to support the offload of set dest IPv6 address action. Signed-off-by: Chaoyong He Reviewed-by: Niklas Söderlund --- doc/guides/nics/features/nfp.ini | 1 + drivers/net/nfp/nfp_flow.c | 9 + 2 files changed, 10 insertions(+) diff --git a/doc/guides/ni

[PATCH v6 23/27] net/nfp: support TP SRC flow action

2022-10-21 Thread Chaoyong He
Add the corresponding data structure and logics, to support the offload of set TP source port action. Signed-off-by: Chaoyong He Reviewed-by: Niklas Söderlund --- doc/guides/nics/features/nfp.ini | 1 + drivers/net/nfp/flower/nfp_flower_cmsg.h | 21 +++ drivers/net/nfp/nfp_

[PATCH v6 24/27] net/nfp: support TP DST flow action

2022-10-21 Thread Chaoyong He
Add the corresponding logics to support the offload of set TP dest port action. Signed-off-by: Chaoyong He Reviewed-by: Niklas Söderlund --- doc/guides/nics/features/nfp.ini | 1 + drivers/net/nfp/nfp_flow.c | 15 +++ 2 files changed, 16 insertions(+) diff --git a/doc/guides

[PATCH v6 25/27] net/nfp: support TTL flow action

2022-10-21 Thread Chaoyong He
Add the corresponding data structure and logics, to support the offload of set TTL action. Signed-off-by: Chaoyong He Reviewed-by: Niklas Söderlund --- doc/guides/nics/features/nfp.ini | 1 + drivers/net/nfp/flower/nfp_flower_cmsg.h | 44 + drivers/net/nfp/nfp_flow.c

[PATCH v6 26/27] net/nfp: support IPv4 DSCP flow action

2022-10-21 Thread Chaoyong He
Add the corresponding logics to support the offload of set IPv4 DSCP action. Signed-off-by: Chaoyong He Reviewed-by: Niklas Söderlund --- doc/guides/nics/features/nfp.ini | 1 + drivers/net/nfp/nfp_flow.c | 39 +++ 2 files changed, 40 insertions(+) di

[PATCH v6 27/27] net/nfp: support IPv6 DSCP flow action

2022-10-21 Thread Chaoyong He
Add the corresponding logics to support the offload of set IPv6 DSCP action. Signed-off-by: Chaoyong He Reviewed-by: Niklas Söderlund --- doc/guides/nics/features/nfp.ini | 1 + drivers/net/nfp/nfp_flow.c | 39 +++ 2 files changed, 40 insertions(+) di

Re: [PATCH v3] event/dlb2: fix port COS range allocation

2022-10-21 Thread Jerin Jacob
On Thu, Oct 20, 2022 at 11:01 PM Abdullah Sevincer wrote: > > This commit fixes allocation of port COS > when application requested port COS exceeds > (e.g. beyond 0-15) the number of LDB ports for > the domain. > > We limit application specified ports from a > COS to the max ports allocated for t

Re: [PATCH v3 18/30] baseband/acc100: enable input validation by default

2022-10-21 Thread Maxime Coquelin
Hi Nicolas, On 10/20/22 00:12, Chautru, Nicolas wrote: Hi Maxime, From: Maxime Coquelin On 10/12/22 04:53, Hernan Vargas wrote: Enable validation functions by default and provide a new flag RTE_LIBRTE_SKIP_VALIDATE if the user wants to run without validating input to save cycles. I would p

Re: [PATCH v7 1/2] vhost: introduce DMA vchannel unconfiguration

2022-10-21 Thread Maxime Coquelin
On 10/20/22 11:11, xuan.d...@intel.com wrote: From: Xuan Ding Add a new API rte_vhost_async_dma_unconfigure() to unconfigure DMA vchannels in vhost async data path. Lock protection are also added to protect DMA vchannels configuration and unconfiguration from concurrent calls. Signed-off-by

Re: [PATCH v7 2/2] examples/vhost: unconfigure DMA vchannel

2022-10-21 Thread Maxime Coquelin
On 10/20/22 11:11, xuan.d...@intel.com wrote: From: Xuan Ding This patch applies rte_vhost_async_dma_unconfigure() to manually free DMA vchannels. Before unconfiguration, make sure the specified DMA device is no longer used by any vhost ports. Signed-off-by: Xuan Ding --- examples/vhost/

Re: [PATCH v2 1/2] vhost: fix descs count in async vhost packed ring

2022-10-21 Thread Maxime Coquelin
On 10/11/22 05:08, Cheng Jiang wrote: When vhost receive packets from the front-end using packed virtqueue, it receives might use multiple descriptors for one packet, so we need calculate and to calculate record the descriptor number for each packet to update available descriptor count

Re: [PATCH v2 2/2] vhost: fix slot index calculation in async vhost

2022-10-21 Thread Maxime Coquelin
On 10/11/22 05:08, Cheng Jiang wrote: When the packet receiving failure and the DMA ring full occur simultaneously in the asynchronous vhost, the slot_idx needs to be decreased by 1. For packed virtqueue, the slot index should be ring_size - 1, if the slot_idx is currently 0, since the ring si

[PATCH] eventdev: fix event vector documentation typo

2022-10-21 Thread Mattias Rönnblom
The Eventdev guide had got the type of the rte_event_vector struct's u64s union field wrong. Fixes: 1cc44d409271 ("eventdev: introduce event vector capability") Cc: pbhagavat...@marvell.com Cc: sta...@dpdk.org Signed-off-by: Mattias Rönnblom --- doc/guides/prog_guide/eventdev.rst | 2 +- 1 file

RE: [PATCH v7 1/2] vhost: introduce DMA vchannel unconfiguration

2022-10-21 Thread Ding, Xuan
Hi Maxime, > -Original Message- > From: Maxime Coquelin > Sent: Friday, October 21, 2022 4:10 PM > To: Ding, Xuan ; Xia, Chenbo > Cc: dev@dpdk.org; Hu, Jiayu ; He, Xingguang > ; Yang, YvonneX ; > Jiang, Cheng1 ; Wang, YuanX > ; Ma, WenwuX > Subject: Re: [PATCH v7 1/2] vhost: introduce D

RE: [PATCH v2 1/3] crypto/qat: fix uncleared cookies in asym

2022-10-21 Thread Power, Ciara
> -Original Message- > From: Arek Kusztal > Sent: Tuesday 18 October 2022 14:54 > To: dev@dpdk.org > Cc: gak...@marvell.com; Ji, Kai ; Kusztal, ArkadiuszX > > Subject: [PATCH v2 1/3] crypto/qat: fix uncleared cookies in asym > > Fixed incorrectly placed clean function in asym response

RE: [PATCH v2 2/3] crypto/qat: fix unnecessary session check

2022-10-21 Thread Power, Ciara
> -Original Message- > From: Arek Kusztal > Sent: Tuesday 18 October 2022 14:54 > To: dev@dpdk.org > Cc: gak...@marvell.com; Ji, Kai ; Kusztal, ArkadiuszX > > Subject: [PATCH v2 2/3] crypto/qat: fix unnecessary session check > > Removed unncessary session check which could lead to seg

Re: [PATCH v9 09/14] net/idpf: add support for Rx/Tx offloading

2022-10-21 Thread Andrew Rybchenko
On 10/21/22 08:18, Junfeng Guo wrote: Add Rx/Tx offloading support, including TSO and CHKSUM. Typically code path for Rx and Tx offload are absolutely different. So, I'm wondering why both are implemented in one patch. If they are really independent, please, split it into Rx and Tx patches to m

RE: [PATCH v2 3/3] crypto/qat: fix not set rsa lengths

2022-10-21 Thread Power, Ciara
> -Original Message- > From: Arek Kusztal > Sent: Tuesday 18 October 2022 14:54 > To: dev@dpdk.org > Cc: gak...@marvell.com; Ji, Kai ; Kusztal, ArkadiuszX > > Subject: [PATCH v2 3/3] crypto/qat: fix not set rsa lengths > > Fixed not set output length in asym pmd > when doing RSA. > >

Re: [PATCH v9 10/14] net/idpf: add support for RSS

2022-10-21 Thread Andrew Rybchenko
On 10/21/22 08:18, Junfeng Guo wrote: Add RSS support. Signed-off-by: Beilei Xing Signed-off-by: Junfeng Guo --- drivers/net/idpf/idpf_ethdev.c | 123 - drivers/net/idpf/idpf_ethdev.h | 26 +++ drivers/net/idpf/idpf_rxtx.c | 27 drivers/net

[PATCH v5 0/6] crypto/uadk: introduce uadk crypto driver

2022-10-21 Thread Zhangfei Gao
Introduce a new crypto PMD for hardware accelerators based on UADK [1]. UADK is a framework for user applications to access hardware accelerators. UADK relies on IOMMU SVA (Shared Virtual Address) feature, which share the same page table between IOMMU and MMU. Thereby user application can directly

[PATCH v5 1/6] crypto/uadk: introduce uadk crypto driver

2022-10-21 Thread Zhangfei Gao
Introduce a new crypto PMD for hardware accelerators based on UADK [1]. UADK is a framework for user applications to access hardware accelerators. UADK relies on IOMMU SVA (Shared Virtual Address) feature, which share the same page table between IOMMU and MMU. Thereby user application can directly

[PATCH v5 2/6] crypto/uadk: support basic operations

2022-10-21 Thread Zhangfei Gao
Support the basic dev control operations: configure, close, start, stop and get info, as well as queue pairs operations. Signed-off-by: Zhangfei Gao --- drivers/crypto/uadk/uadk_crypto_pmd.c | 213 -- 1 file changed, 204 insertions(+), 9 deletions(-) diff --git a/drivers

[PATCH v5 3/6] crypto/uadk: support enqueue/dequeue operations

2022-10-21 Thread Zhangfei Gao
This commit adds the enqueue and dequeue operations. Signed-off-by: Zhangfei Gao --- drivers/crypto/uadk/uadk_crypto_pmd.c | 53 ++- 1 file changed, 51 insertions(+), 2 deletions(-) diff --git a/drivers/crypto/uadk/uadk_crypto_pmd.c b/drivers/crypto/uadk/uadk_crypto_pmd

[PATCH v5 4/6] crypto/uadk: support cipher algorithms

2022-10-21 Thread Zhangfei Gao
Cipher algorithms: * ``RTE_CRYPTO_CIPHER_AES_ECB`` * ``RTE_CRYPTO_CIPHER_AES_CBC`` * ``RTE_CRYPTO_CIPHER_AES_XTS`` * ``RTE_CRYPTO_CIPHER_DES_CBC`` Signed-off-by: Zhangfei Gao --- doc/guides/cryptodevs/features/uadk.ini | 10 + doc/guides/cryptodevs/uadk.rst | 6 + drivers/crypto/uad

[PATCH v5 5/6] crypto/uadk: support auth algorithms

2022-10-21 Thread Zhangfei Gao
Hash algorithms: * ``RTE_CRYPTO_AUTH_MD5`` * ``RTE_CRYPTO_AUTH_MD5_HMAC`` * ``RTE_CRYPTO_AUTH_SHA1`` * ``RTE_CRYPTO_AUTH_SHA1_HMAC`` * ``RTE_CRYPTO_AUTH_SHA224`` * ``RTE_CRYPTO_AUTH_SHA224_HMAC`` * ``RTE_CRYPTO_AUTH_SHA256`` * ``RTE_CRYPTO_AUTH_SHA256_HMAC`` * ``RTE_CRYPTO_AUTH_SHA384`` * ``RTE_CR

[PATCH v5 6/6] test/crypto: add cryptodev_uadk_autotest

2022-10-21 Thread Zhangfei Gao
Example: sudo dpdk-test --vdev=crypto_uadk --log-level=6 RTE>>cryptodev_uadk_autotest RTE>>quit Signed-off-by: Zhangfei Gao --- app/test/test_cryptodev.c | 7 +++ app/test/test_cryptodev.h | 1 + 2 files changed, 8 insertions(+) diff --git a/app/test/test_cryptodev.c b/app/test/test_cryptod

Re: [PATCH v5 01/29] baseband/acc100: fix ring availability calculation

2022-10-21 Thread Maxime Coquelin
On 10/21/22 07:20, Hernan Vargas wrote: Refactor of the queue availability computation to prevent the application to dequeue more than what may have been enqueued. Fixes: 5ad5060f8f7 ("baseband/acc100: add LDPC processing functions") Cc: sta...@dpdk.org Signed-off-by: Hernan Vargas --- dr

Re: [PATCH v5 02/29] baseband/acc100: add function to check AQ availability

2022-10-21 Thread Maxime Coquelin
On 10/21/22 07:20, Hernan Vargas wrote: It is possible for some corner case to run more batch enqueue than supported. A protection is required to avoid that corner case. Enhance all ACC100 enqueue operations with check to see if there is room in the atomic queue for enqueueing batches into the

Re: [PATCH v5 07/29] baseband/acc100: enforce additional check on FCW

2022-10-21 Thread Maxime Coquelin
On 10/21/22 07:20, Hernan Vargas wrote: Enforce additional check on Frame Control Word validity and add stronger alignment for decompression mode. Fixes: 5ad5060f8f7 ("baseband/acc100: add LDPC processing functions") Cc: sta...@dpdk.org Signed-off-by: Hernan Vargas --- drivers/baseband/ac

RE: [PATCH v2] net/ice: support vxlan gpe tunnel offload

2022-10-21 Thread Xu, Ke1
> -Original Message- > From: Mingjin Ye > Sent: Friday, October 21, 2022 9:00 PM > To: dev@dpdk.org > Cc: sta...@dpdk.org; Zhou, YidingX ; Ye, MingjinX > ; Yang, Qiming ; Zhang, Qi > Z ; Somnath Kotur ; > Matz, Olivier ; Ajit Khaparde > ; Andrew Rybchenko > > Subject: [PATCH v2] net/ic

Re: [PATCH v5 08/29] baseband/acc100: allocate ring/queue mem when NULL

2022-10-21 Thread Maxime Coquelin
On 10/21/22 07:20, Hernan Vargas wrote: Allocate info ring, tail pointers and HARQ layout memory for a device only if it hasn't already been allocated. Fixes: 06531464151 ("baseband/acc100: support interrupt") Cc: sta...@dpdk.org Signed-off-by: Hernan Vargas --- drivers/baseband/acc/rte_a

[PATCH v7 0/8] introduce GVE PMD

2022-10-21 Thread Junfeng Guo
Introduce a new PMD for Google Virtual Ethernet (GVE). gve (or gVNIC) is the standard virtual ethernet interface on Google Cloud Platform (GCP), which is one of the multiple virtual interfaces from those leading CSP customers in the world. Having a well maintained/optimized gve PMD on DPDK commun

[PATCH v7 1/8] net/gve/base: introduce base code

2022-10-21 Thread Junfeng Guo
The following base code is based on Google Virtual Ethernet (gve) driver v1.3.0 under MIT license. - gve_adminq.c - gve_adminq.h - gve_desc.h - gve_desc_dqo.h - gve_register.h - gve.h The original code is in: https://github.com/GoogleCloudPlatform/compute-virtual-ethernet-linux/\ tree/v1.3.0/googl

[PATCH v7 2/8] net/gve/base: add OS specific implementation

2022-10-21 Thread Junfeng Guo
Add some MACRO definitions and memory operations which are specific for DPDK. Signed-off-by: Haiyue Wang Signed-off-by: Xiaoyun Li Signed-off-by: Junfeng Guo --- drivers/net/gve/base/gve_adminq.h | 2 + drivers/net/gve/base/gve_desc.h | 2 + drivers/net/gve/base/gve_desc_dqo.h | 2

[PATCH v7 3/8] net/gve: add support for device initialization

2022-10-21 Thread Junfeng Guo
Support device init and add following devops skeleton: - dev_configure - dev_start - dev_stop - dev_close Note that build system (including doc) is also added in this patch. Signed-off-by: Haiyue Wang Signed-off-by: Xiaoyun Li Signed-off-by: Junfeng Guo --- MAINTAINERS

[PATCH v7 4/8] net/gve: add support for link update

2022-10-21 Thread Junfeng Guo
Support dev_ops link_update. Signed-off-by: Xiaoyun Li Signed-off-by: Junfeng Guo --- doc/guides/nics/features/gve.ini | 1 + doc/guides/nics/gve.rst | 3 +++ drivers/net/gve/gve_ethdev.c | 30 ++ 3 files changed, 34 insertions(+) diff --git a/doc/gui

[PATCH v7 5/8] net/gve: add support for MTU setting

2022-10-21 Thread Junfeng Guo
Support dev_ops mtu_set. Signed-off-by: Xiaoyun Li Signed-off-by: Junfeng Guo --- doc/guides/nics/features/gve.ini | 1 + drivers/net/gve/gve_ethdev.c | 28 2 files changed, 29 insertions(+) diff --git a/doc/guides/nics/features/gve.ini b/doc/guides/nics/featu

[PATCH v7 6/8] net/gve: add support for dev info get and dev configure

2022-10-21 Thread Junfeng Guo
Add dev_ops dev_infos_get. Complete dev_configure with RX offloads force enabling. Signed-off-by: Xiaoyun Li Signed-off-by: Junfeng Guo --- doc/guides/nics/features/gve.ini | 2 ++ doc/guides/nics/gve.rst | 1 + drivers/net/gve/gve_ethdev.c | 59 +++-

[PATCH v7 7/8] net/gve: add support for queue operations

2022-10-21 Thread Junfeng Guo
Add support for queue operations: - setup rx/tx queue - release rx/tx queue - start rx/tx queues - stop rx/tx queues Signed-off-by: Xiaoyun Li Signed-off-by: Junfeng Guo --- drivers/net/gve/gve_ethdev.c | 204 + drivers/net/gve/gve_ethdev.h | 52 + drive

[PATCH v7 8/8] net/gve: add support for Rx/Tx

2022-10-21 Thread Junfeng Guo
Add Rx/Tx of GQI_QPL queue format and GQI_RDA queue format. Signed-off-by: Xiaoyun Li Signed-off-by: Junfeng Guo --- doc/guides/nics/features/gve.ini | 2 + doc/guides/nics/gve.rst | 4 + drivers/net/gve/gve_ethdev.c | 15 +- drivers/net/gve/gve_ethdev.h | 18 ++ drivers/

Re: [PATCH v5 20/29] baseband/acc100: update validate LDPC enc/dec

2022-10-21 Thread Maxime Coquelin
On 10/21/22 07:20, Hernan Vargas wrote: Update validate functions to check for valid LDPC parameters to avoid any HW issues. Adding protection for null corner case and for HARQ inbound size out of range. HARQ input size from application may be invalid and causing HW issue. Add checks to ensure

Re: [PATCH v5 27/29] baseband/acc100: add ring companion address

2022-10-21 Thread Maxime Coquelin
On 10/21/22 07:21, Hernan Vargas wrote: Store the virtual address of companion ring as part of queue information. Use this address to calculate the op address. Signed-off-by: Hernan Vargas --- drivers/baseband/acc/rte_acc100_pmd.c | 179 +- 1 file changed, 116 inse

DPDK Release Status Meeting 2022-10-20

2022-10-21 Thread Mcnamara, John
Release status meeting minutes 2022-10-20 = Agenda: * Release Dates * Subtrees * Roadmaps * LTS * Defects * Opens Participants: * ARM [No] * Canonical [No] * Debian/Microsoft * Intel * Marvell * Nvidia * Red Hat * Xilinx/AMD Release Dates - T

Re: [PATCH v2] eventdev/eth_tx: fix queue delete logic

2022-10-21 Thread Jerin Jacob
On Fri, Oct 21, 2022 at 12:16 PM Naga Harish K S V wrote: > > To delete all the queues of a ethernet device associated with > adapter instance the queue_id can be passed as -1 to the queue > delete API. > > When a subset of queues of a ethernet device are associated, > the queue delete logic is ex

Re: [PATCH v5 28/29] baseband/acc100: add workaround for deRM corner cases

2022-10-21 Thread Maxime Coquelin
On 10/21/22 07:21, Hernan Vargas wrote: Add function to support de-ratematch pre-processing for SW corner cases. Some specific 5GUL FEC corner cases may cause unintended back pressure and in some cases potential stability issue on the ACC100. To be able to avoid completly such potential issue,

Re: [PATCH] eventdev: fix event vector documentation typo

2022-10-21 Thread Jerin Jacob
On Fri, Oct 21, 2022 at 1:48 PM Mattias Rönnblom wrote: > > The Eventdev guide had got the type of the rte_event_vector struct's > u64s union field wrong. > > Fixes: 1cc44d409271 ("eventdev: introduce event vector capability") > Cc: pbhagavat...@marvell.com > Cc: sta...@dpdk.org > > Signed-off-by:

Re: [PATCH v7 1/8] net/gve/base: introduce base code

2022-10-21 Thread Ferruh Yigit
On 10/21/2022 10:19 AM, Junfeng Guo wrote: The following base code is based on Google Virtual Ethernet (gve) driver v1.3.0 under MIT license. - gve_adminq.c - gve_adminq.h - gve_desc.h - gve_desc_dqo.h - gve_register.h - gve.h The original code is in: https://github.com/GoogleCloudPlatform/compu

Re: [PATCH v7 3/8] net/gve: add support for device initialization

2022-10-21 Thread Ferruh Yigit
On 10/21/2022 10:19 AM, Junfeng Guo wrote: Support device init and add following devops skeleton: - dev_configure - dev_start - dev_stop - dev_close Note that build system (including doc) is also added in this patch. Signed-off-by: Haiyue Wang Signed-off-by: Xiaoyun Li Signed-off-by

Re: [PATCH v7 5/8] net/gve: add support for MTU setting

2022-10-21 Thread Ferruh Yigit
On 10/21/2022 10:19 AM, Junfeng Guo wrote: Support dev_ops mtu_set. Signed-off-by: Xiaoyun Li Signed-off-by: Junfeng Guo <...> +static int +gve_dev_mtu_set(struct rte_eth_dev *dev, uint16_t mtu) +{ + struct gve_priv *priv = dev->data->dev_private; + int err; + + if (mtu

Re: [PATCH v7 6/8] net/gve: add support for dev info get and dev configure

2022-10-21 Thread Ferruh Yigit
On 10/21/2022 10:19 AM, Junfeng Guo wrote: Add dev_ops dev_infos_get. Complete dev_configure with RX offloads force enabling. Signed-off-by: Xiaoyun Li Signed-off-by: Junfeng Guo <...> --- a/doc/guides/nics/gve.rst +++ b/doc/guides/nics/gve.rst @@ -62,6 +62,7 @@ In this release, the GVE

Re: [PATCH v7 8/8] net/gve: add support for Rx/Tx

2022-10-21 Thread Ferruh Yigit
On 10/21/2022 10:19 AM, Junfeng Guo wrote: Add Rx/Tx of GQI_QPL queue format and GQI_RDA queue format. Signed-off-by: Xiaoyun Li Signed-off-by: Junfeng Guo <...> + +static inline void +gve_tx_clean_swr_qpl(struct gve_tx_queue *txq) +{ + uint32_t start = txq->sw_ntc; + uint32_

Re: [PATCH v2] net/nfp: ensure the MTU can work

2022-10-21 Thread Ferruh Yigit
On 10/21/2022 7:27 AM, Chaoyong He wrote: From: Peng Zhang When MTU is bigger than hw->flbufsz, it can't work. hw->flbufsz is set in the nfp_net_rx_queue_setup(). At first, in the nfp_net_configure(), the hw->flbufsz isn't set the value, it just judge the initialized value and MTU, it is unrea

[PATCH v3 1/2] app/testpmd: fix vlan offload of rxq

2022-10-21 Thread Mingjin Ye
After setting vlan offload in testpmd, the result is not updated to rxq. Therefore, the queue needs to be reconfigured after executing the "vlan offload" related commands. Fixes: a47aa8b97afe ("app/testpmd: add vlan offload support") Cc: sta...@dpdk.org Signed-off-by: Mingjin Ye --- app/test-pm

[PATCH v3 2/2] net/ice: fix vlan offload

2022-10-21 Thread Mingjin Ye
The vlan tag and flag in Rx descriptor are not processed on vector path, then the upper application cann't fetch the tci from mbuf. This commit add handling of vlan RX offloading. Fixes: c68a52b8b38c ("net/ice: support vector SSE in Rx") Fixes: ece1f8a8f1c8 ("net/ice: switch to flexible descripto

[PATCH] maintainers: change maintainer for event ethdev Rx/Tx adapters

2022-10-21 Thread Jay Jayatheerthan
Signed-off-by: Jay Jayatheerthan --- MAINTAINERS | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/MAINTAINERS b/MAINTAINERS index 2bd4a55f1b..86d9e62667 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -498,14 +498,14 @@ F: app/test/test_eventdev.c F: examples/l3fwd/l3fwd_eve

[PATCH] maintainers: change maintainer for event ethdev Rx/Tx adapters

2022-10-21 Thread Jay Jayatheerthan
Harish is the new maintainer of Rx/Tx adapters due to role change of Jay Signed-off-by: Jay Jayatheerthan --- MAINTAINERS | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/MAINTAINERS b/MAINTAINERS index 2bd4a55f1b..86d9e62667 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -

RE: [PATCH] service: fix early move to inactive status

2022-10-21 Thread Van Haaren, Harry
> -Original Message- > From: Carrillo, Erik G > Sent: Thursday, October 20, 2022 8:01 PM > To: Van Haaren, Harry > Cc: Naga Harish K, S V ; dev@dpdk.org; > sta...@dpdk.org > Subject: [PATCH] service: fix early move to inactive status > > Assume thread T2 is a service lcore that is in the

RE: [PATCH v9 01/14] common/idpf: introduce common library

2022-10-21 Thread Xing, Beilei
> -Original Message- > From: Andrew Rybchenko > Sent: Friday, October 21, 2022 2:40 PM > To: Guo, Junfeng ; Zhang, Qi Z > ; Wu, Jingjing ; Xing, Beilei > > Cc: dev@dpdk.org; Wang, Xiao W > Subject: Re: [PATCH v9 01/14] common/idpf: introduce common library > > On 10/21/22 08:18, Junfe

Re: [PATCH v9 01/14] common/idpf: introduce common library

2022-10-21 Thread Andrew Rybchenko
On 10/21/22 15:35, Xing, Beilei wrote: -Original Message- From: Andrew Rybchenko Sent: Friday, October 21, 2022 2:40 PM To: Guo, Junfeng ; Zhang, Qi Z ; Wu, Jingjing ; Xing, Beilei Cc: dev@dpdk.org; Wang, Xiao W Subject: Re: [PATCH v9 01/14] common/idpf: introduce common library On

RE: [PATCH v9 02/14] net/idpf: add support for device initialization

2022-10-21 Thread Zhang, Qi Z
Hi Andrew: > -Original Message- > From: Andrew Rybchenko > Sent: Friday, October 21, 2022 3:48 PM > To: Guo, Junfeng ; Zhang, Qi Z > ; Wu, Jingjing ; Xing, Beilei > > Cc: dev@dpdk.org; Li, Xiaoyun ; Wang, Xiao W > > Subject: Re: [PATCH v9 02/14] net/idpf: add support for device initiali

RE: [PATCH v9 01/14] common/idpf: introduce common library

2022-10-21 Thread Zhang, Qi Z
> -Original Message- > From: Xing, Beilei > Sent: Friday, October 21, 2022 8:35 PM > To: Andrew Rybchenko ; Guo, Junfeng > ; Zhang, Qi Z ; Wu, Jingjing > > Cc: dev@dpdk.org; Wang, Xiao W > Subject: RE: [PATCH v9 01/14] common/idpf: introduce common library > > > > > -Original Me

Re: [PATCH v4] dumpcap: fix select interface

2022-10-21 Thread David Marchand
On Mon, Oct 17, 2022 at 5:12 PM Stephen Hemminger wrote: > On Mon, 17 Oct 2022 05:07:52 -0700 > Arshdeep Kaur wrote: > > > The change to do argument process before EAL init broke > > the support of select-interface option. Fix by setting flag > > and doing select-interface later. > > > > Fixes: a

Re: [PATCH v6 02/27] net/nfp: fix the promiscuous mode control functions

2022-10-21 Thread Ferruh Yigit
On 10/21/2022 9:01 AM, Chaoyong He wrote: The original functions of promiscuous mode can't process the representor port rightly, revise the logic to do that. Fixes: e1124c4f8a45 ("net/nfp: add flower representor framework") Signed-off-by: Chaoyong He --- drivers/net/nfp/flower/nfp_flower_rep

  1   2   >