[dpdk-dev] [PATCH v3 0/4] support async dequeue for split ring

2021-09-28 Thread Wenwu Ma
This patch implements asynchronous dequeue data path for split ring. A new asynchronous dequeue function is introduced. With this function, the application can try to receive packets from the guest with offloading copies to the DMA engine, thus saving precious CPU cycles. v3: - Update release note

[dpdk-dev] [PATCH v3 1/4] vhost: support async dequeue for split ring

2021-09-28 Thread Wenwu Ma
From: Yuan Wang This patch implements asynchronous dequeue data path for split ring. A new asynchronous dequeue function is introduced. With this function, the application can try to receive packets from the guest with offloading copies to the async channel, thus saving precious CPU cycles. Sign

[dpdk-dev] [PATCH v3 2/4] examples/vhost: refactor vhost enqueue and dequeue datapaths

2021-09-28 Thread Wenwu Ma
Previously, by judging the flag, we call different enqueue/dequeue functions in data path. Now, we use an ops that was initialized when Vhost was created, so that we can call ops directly in Vhost data path without any more flag judgment. Signed-off-by: Wenwu Ma Reviewed-by: Maxime Coquelin Tes

[dpdk-dev] [PATCH v3 3/4] examples/vhost: use a new API to query remaining ring space

2021-09-28 Thread Wenwu Ma
A new API for querying the remaining descriptor ring capacity is available, so we use the new one instead of the old one. Signed-off-by: Wenwu Ma Reviewed-by: Maxime Coquelin Reviewed-by: Chenbo Xia Tested-by: Yvonne Yang --- examples/vhost/ioat.c | 6 +- 1 file changed, 1 insertion(+), 5

[dpdk-dev] [PATCH v3 4/4] examples/vhost: support vhost async dequeue data path

2021-09-28 Thread Wenwu Ma
This patch is to add vhost async dequeue data-path in vhost sample. vswitch can leverage IOAT to accelerate vhost async dequeue data-path. Signed-off-by: Wenwu Ma Reviewed-by: Maxime Coquelin Tested-by: Yvonne Yang --- doc/guides/sample_app_ug/vhost.rst | 9 +- examples/vhost/ioat.c

Re: [dpdk-dev] [PATCH v2 02/15] crypto: add total raw buffer length

2021-09-28 Thread Akhil Goyal
> Hi Akhil, > > > > > On 9/21/2021 12:58 AM, Akhil Goyal wrote: > > > > >>> From: Gagandeep Singh > > > > >>> > > > > >>> The current crypto raw data vectors is extended to support > > > > >>> rte_security usecases, where we need total data length to know > > > > >>> how much additional memory sp

Re: [dpdk-dev] [EXT] [PATCH v4 02/10] security: add UDP params for IPsec NAT-T

2021-09-28 Thread Akhil Goyal
RFC states about NAT-T, that it should be 4500 but for UDP encapsulation it does not specify. Hence it should be generic here. From: Nicolau, Radu Sent: Monday, September 27, 2021 2:47 PM To: hemant.agra...@nxp.com; Akhil Goyal ; Declan Doherty Cc: dev@dpdk.org; m...@ashroe.eu; konstantin.anan

Re: [dpdk-dev] [RFC V2] ethdev: fix issue that dev close in PMD calls twice

2021-09-28 Thread Singh, Aman Deep
On 9/22/2021 9:01 AM, Huisong Li wrote: 在 2021/9/20 22:07, Ferruh Yigit 写道: On 8/25/2021 10:53 AM, Huisong Li wrote: 在 2021/8/24 22:42, Ferruh Yigit 写道: On 8/19/2021 4:45 AM, Huisong Li wrote: 在 2021/8/18 19:24, Ferruh Yigit 写道: On 8/13/2021 9:16 AM, Huisong Li wrote: 在 2021/8/13 14:12,

Re: [dpdk-dev] [PATCH] net/ixgbe: fix RxQ/TxQ release

2021-09-28 Thread Julien Meunier
Hello, On 28/09/2021 05:21, Wang, Haiyue wrote: -Original Message- From: Wang, Haiyue Sent: Tuesday, September 28, 2021 11:06 To: 'Julien Meunier' ; dev@dpdk.org Cc: sta...@dpdk.org; Richardson, Bruce Subject: RE: [PATCH] net/ixgbe: fix RxQ/TxQ release -Original Message- From:

Re: [dpdk-dev] [PATCH v5 0/5] Add lookaside IPsec tests

2021-09-28 Thread Akhil Goyal
> Add lookaside IPsec functional tests. Known vector tests and > combined mode framework is added. > > Known vectors are outbound vectors based on > https://datatracker.ietf.org/doc/html/draft-mcgrew-gcm-test-01 > > The vectors are updated to have sequence number as 1 & L4 checksum > computed cor

[dpdk-dev] [PATCH] net/mlx5: fix flow tables double release

2021-09-28 Thread Bing Zhao
In the function mlx5_alloc_shared_dr(), there are various reasons to result in a failure and error clean up process. While in the caller of mlx5_dev_spawn(), once there is a error occurring after the mlx5_alloc_shared_dr(), the mlx5_os_free_shared_dr() is called to release all the resources. To pr

[dpdk-dev] [Bug 816] KNI deadlocks while processing mac address set request with linux kernel version >= v5.12

2021-09-28 Thread bugzilla
https://bugs.dpdk.org/show_bug.cgi?id=816 Bug ID: 816 Summary: KNI deadlocks while processing mac address set request with linux kernel version >= v5.12 Product: DPDK Version: 21.08 Hardware: x86 OS: Linux

[dpdk-dev] [PATCH v2] net/ixgbe: fix RxQ/TxQ release

2021-09-28 Thread Julien Meunier
On the vector implementation, during the tear-down, the mbufs not drained in the RxQ and TxQ are freed based on an algorithm which supposed that the number of descriptors is a power of 2 (max_desc). Based on this hypothesis, this algorithm uses a bitmask in order to detect an index overflow during

Re: [dpdk-dev] [PATCH v2 02/15] crypto: add total raw buffer length

2021-09-28 Thread Hemant Agrawal
HI Akhil/Konstantin > > Hi Akhil, > > > > > > > On 9/21/2021 12:58 AM, Akhil Goyal wrote: > > > > > >>> From: Gagandeep Singh > > > > > >>> > > > > > >>> The current crypto raw data vectors is extended to support > > > > > >>> rte_security usecases, where we need total data length to > > > > > >>>

Re: [dpdk-dev] [EXT] Re: [PATCH v6 2/3] security: add option for faster udata or mdata access

2021-09-28 Thread Akhil Goyal
> > --- a/doc/guides/rel_notes/release_21_08.rst > > +++ b/doc/guides/rel_notes/release_21_08.rst > > @@ -223,6 +223,12 @@ ABI Changes > > > > * No ABI change that would break compatibility with 20.11. > > > > +* security: ``rte_security_set_pkt_metadata`` and > ``rte_security_get_userdata`` > > +

Re: [dpdk-dev] [dpdk-stable] [PATCH v4] mbuf: fix reset on mbuf free

2021-09-28 Thread Thomas Monjalon
Follow-up again: We have added a note in 21.08, we should fix it in 21.11. If there are no counter proposal, I suggest applying this patch, no matter the performance regression. 30/07/2021 16:54, Thomas Monjalon: > 30/07/2021 16:35, Morten Brørup: > > > From: Olivier Matz [mailto:olivier.m...@6wi

[dpdk-dev] [PATCH v7 0/9] baseband: add NXP LA12xx driver

2021-09-28 Thread nipun . gupta
From: Nipun Gupta This series introduces the BBDEV LA12xx poll mode driver (PMD) to support an implementation for offloading High Phy processing functions like LDPC Encode / Decode 5GNR wireless acceleration function, using PCI based LA12xx Software defined radio. Please check the documentation

[dpdk-dev] [PATCH v7 1/9] bbdev: add big endian processing data processing info

2021-09-28 Thread nipun . gupta
From: Nipun Gupta This patch intoduces a new info pertaining to bbdev device to process the data in big endian order. Signed-off-by: Nipun Gupta --- lib/bbdev/rte_bbdev.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/bbdev/rte_bbdev.h b/lib/bbdev/rte_bbdev.h index 7017124414..3acc0

Re: [dpdk-dev] [PATCH v5 5/5] devargs: parse global device syntax

2021-09-28 Thread David Marchand
On Tue, Apr 13, 2021 at 5:15 AM Xueming Li wrote: > > When parsing a devargs, try to parse using the global device syntax > first. Fallback on legacy syntax on error. > > Example of new global device syntax: > -a bus=pci,addr=82:00.0/class=eth/driver=mlx5,dv_flow_en=1 > > Signed-off-by: Xueming L

[dpdk-dev] [PATCH v7 2/9] baseband: introduce NXP LA12xx driver

2021-09-28 Thread nipun . gupta
From: Hemant Agrawal This patch introduce the baseband device drivers for NXP's LA1200 series software defined baseband modem. Signed-off-by: Nipun Gupta Signed-off-by: Hemant Agrawal --- MAINTAINERS | 9 ++ drivers/baseband/la12xx/bbdev_la12xx.c| 1

[dpdk-dev] [PATCH v7 3/9] baseband/la12xx: add devargs for max queues

2021-09-28 Thread nipun . gupta
From: Hemant Agrawal This patch adds dev args to take max queues as input Signed-off-by: Nipun Gupta Signed-off-by: Hemant Agrawal --- drivers/baseband/la12xx/bbdev_la12xx.c | 73 +- 1 file changed, 71 insertions(+), 2 deletions(-) diff --git a/drivers/baseband/la12x

[dpdk-dev] [PATCH v7 4/9] baseband/la12xx: add support for multiple modems

2021-09-28 Thread nipun . gupta
From: Hemant Agrawal This patch add support for multiple modems by assigning a modem id as dev args in vdev creation. Signed-off-by: Hemant Agrawal --- drivers/baseband/la12xx/bbdev_la12xx.c | 64 +++--- drivers/baseband/la12xx/bbdev_la12xx.h | 56 +++ d

[dpdk-dev] [PATCH v7 7/9] app/bbdev: enable la12xx for bbdev

2021-09-28 Thread nipun . gupta
From: Hemant Agrawal this patch adds la12xx driver in test bbdev Signed-off-by: Hemant Agrawal --- app/test-bbdev/meson.build | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/test-bbdev/meson.build b/app/test-bbdev/meson.build index edb9deef84..a726a5b3fa 100644 --- a/app/test-bbdev/

[dpdk-dev] [PATCH v7 8/9] app/bbdev: handle endianness of test data

2021-09-28 Thread nipun . gupta
From: Nipun Gupta With data input, output and harq also supported in big endian format, this patch updates the testbbdev application to handle the endianness conversion as directed by the the driver being used. If the driver supports big endian data processing, conversion from little endian to b

[dpdk-dev] [PATCH v7 5/9] baseband/la12xx: add queue and modem config support

2021-09-28 Thread nipun . gupta
From: Hemant Agrawal This patch add support for connecting with modem and creating the ipc channel as queues with modem for the exchange of data. Signed-off-by: Nipun Gupta Signed-off-by: Hemant Agrawal --- MAINTAINERS| 1 + doc/guides/bbdevs/index.rst

[dpdk-dev] [PATCH v7 6/9] baseband/la12xx: add enqueue and dequeue support

2021-09-28 Thread nipun . gupta
From: Hemant Agrawal Add support for enqueue and dequeue the LDPC enc/dec from the modem device. Signed-off-by: Nipun Gupta Signed-off-by: Hemant Agrawal --- doc/guides/bbdevs/features/la12xx.ini | 13 + doc/guides/bbdevs/la12xx.rst | 47 ++- drivers/baseband/la12xx/bbdev

[dpdk-dev] [PATCH v7 9/9] app/bbdev: add test vectors for transport blocks

2021-09-28 Thread nipun . gupta
From: Nipun Gupta This patch adds two test vectors for transport block in network byte order: - LDPC encode for Transport Block - LDPC decode for Transport block Signed-off-by: Nipun Gupta --- app/test-bbdev/test_vectors/ldpc_dec_tb.data | 265 +++ app/test-bbdev/test_vectors/l

Re: [dpdk-dev] [PATCH v3 0/3] Add user specified IV with lookaside IPsec

2021-09-28 Thread Akhil Goyal
> Add support for using user provided IV with lookaside protocol (IPsec). Using > this option, application can provide IV to be used per operation. This > option can be used for knownn vector tests (which is otherwise impossible > due to random nature of IV) as well as if application wishes to use

[dpdk-dev] [PATCH v2] net/virtio: fix virtio-user init when using existing tap

2021-09-28 Thread David Marchand
When attaching to an existing mono queue tap, the virtio-user was not reporting that the virtio device was not properly initialised which prevented from starting the port later. $ ip tuntap add test mode tap $ dpdk-testpmd --vdev \ net_virtio_user0,iface=test,path=/dev/vhost-net,queues=2 -- -i

Re: [dpdk-dev] [PATCH] net/i40e: fix Rx packet statistics

2021-09-28 Thread Kevin Traynor
On 28/09/2021 03:12, Zhang, AlvinX wrote: -Original Message- From: Kevin Traynor Sent: Tuesday, September 28, 2021 12:00 AM To: Zhang, AlvinX ; Xing, Beilei ; Guo, Junfeng Cc: dev@dpdk.org; sta...@dpdk.org; Zhang, Qi Z ; Yigit, Ferruh Subject: Re: [dpdk-dev] [PATCH] net/i40e: fix Rx pa

[dpdk-dev] [PATCH] net/i40e: fix remove MAC/VLAN addresses error

2021-09-28 Thread Robin Zhang
Firmware will return I40E_AQ_RC_ENOENT when try to delete non-existent MAC/VLAN addresses from the HW filtering, this should not be considered as an Admin Queue error. But in i40e_asq_send_command, it will return I40E_ERR_ADMIN_QUEUE_ERROR if the return value of Admin Queue command processed by Fir

Re: [dpdk-dev] [PATCH v5 2/2] vhost: enable IOMMU for async vhost

2021-09-28 Thread Ding, Xuan
Hi Anatoly, > -Original Message- > From: Burakov, Anatoly > Sent: Monday, September 27, 2021 8:14 PM > To: Ding, Xuan ; dev@dpdk.org; > maxime.coque...@redhat.com; Xia, Chenbo > Cc: Hu, Jiayu ; Jiang, Cheng1 ; > Richardson, Bruce ; Pai G, Sunil > ; Wang, Yinan ; Yang, YvonneX > > Subjec

Re: [dpdk-dev] [PATCH v5 5/5] devargs: parse global device syntax

2021-09-28 Thread Thomas Monjalon
28/09/2021 10:29, David Marchand: > On Tue, Apr 13, 2021 at 5:15 AM Xueming Li wrote: > > > > When parsing a devargs, try to parse using the global device syntax > > first. Fallback on legacy syntax on error. > > > > Example of new global device syntax: > > -a bus=pci,addr=82:00.0/class=eth/drive

Re: [dpdk-dev] [PATCH v5 2/2] examples/vhost: use API to check inflight packets

2021-09-28 Thread Kevin Traynor
On 28/09/2021 07:24, Xuan Ding wrote: In async data path, call rte_vhost_async_get_inflight_thread_unsafe() API to directly return the number of inflight packets instead of maintaining a local variable. Signed-off-by: Xuan Ding --- examples/vhost/main.c | 25 +++-- exampl

Re: [dpdk-dev] [PATCH 6/6] raw/cnxk_bphy: use named value for queue count

2021-09-28 Thread Jerin Jacob
On Mon, Jul 26, 2021 at 7:29 PM Tomasz Duszynski wrote: > > From: Jakub Palider > > Queue counter is used in a few places so it was given some > reasonable name. > > Signed-off-by: Jakub Palider Series Acked-by: Jerin Jacob Series applied to dpdk-next-net-mrvl/for-next-net. Thanks. > --- >

Re: [dpdk-dev] [PATCH] net/ice: add ability to reduce the Rx latency

2021-09-28 Thread Kevin Traynor
On 22/09/2021 03:16, Zhang, AlvinX wrote: -Original Message- From: Kevin Traynor Sent: Tuesday, September 21, 2021 5:21 PM To: Zhang, AlvinX ; Zhang, Qi Z ; Guo, Junfeng Cc: dev@dpdk.org Subject: Re: [dpdk-dev] [PATCH] net/ice: add ability to reduce the Rx latency On 18/09/2021 02:33,

Re: [dpdk-dev] [dpdk-stable] [PATCH v4] mbuf: fix reset on mbuf free

2021-09-28 Thread Ananyev, Konstantin
> > Hi, > > I've re-read the entire thread. > If I understand correctly, the root problem was (in initial patch): > > > m1 = rte_pktmbuf_alloc(mp); > > rte_pktmbuf_append(m1, 500); > > m2 = rte_pktmbuf_alloc(mp); > > rte_pktmbuf_append(m2, 500); > > rte_pktmbuf_chain(m1, m2); > > m

[dpdk-dev] [PATCH] crypto/octeontx2: fix lookaside IPsec capabilities

2021-09-28 Thread Tejasree Kondoj
Adding cbc, sha1-hmac and sha256-hmac to lookaside IPsec capabilities. Fixes: 8f685ec2d545 ("crypto/octeontx2: support AES-CBC SHA1-HMAC") Fixes: 61baeec4682c ("crypto/octeontx2: support AES-CBC SHA256-128-HMAC") Signed-off-by: Tejasree Kondoj --- .../octeontx2/otx2_cryptodev_capabilities.c |

Re: [dpdk-dev] [PATCH v5 1/2] eventdev: add rx queue conf get api

2021-09-28 Thread Jayatheerthan, Jay
> -Original Message- > From: Kundapura, Ganapati > Sent: Thursday, September 16, 2021 6:21 PM > To: Jayatheerthan, Jay ; jerinjac...@gmail.com > Cc: dev@dpdk.org; Yigit, Ferruh > Subject: [PATCH v5 1/2] eventdev: add rx queue conf get api > > Added rte_event_eth_rx_adapter_queue_conf_get

Re: [dpdk-dev] [PATCH v5 2/2] test/event: Add rx queue conf get test in rx adapter autotest

2021-09-28 Thread Jayatheerthan, Jay
> -Original Message- > From: Kundapura, Ganapati > Sent: Thursday, September 16, 2021 6:21 PM > To: Jayatheerthan, Jay ; jerinjac...@gmail.com > Cc: dev@dpdk.org; Yigit, Ferruh > Subject: [PATCH v5 2/2] test/event: Add rx queue conf get test in rx adapter > autotest > > Add unit tests f

Re: [dpdk-dev] [PATCH v1] ethdev: introduce shared Rx queue

2021-09-28 Thread Jerin Jacob
On Sun, Sep 26, 2021 at 11:06 AM Xueming(Steven) Li wrote: > > On Wed, 2021-08-11 at 13:04 +0100, Ferruh Yigit wrote: > > On 8/11/2021 9:28 AM, Xueming(Steven) Li wrote: > > > > > > > > > > -Original Message- > > > > From: Jerin Jacob > > > > Sent: Wednesday, August 11, 2021 4:03 PM > > >

Re: [dpdk-dev] [RFC 0/7] hide eth dev related structures

2021-09-28 Thread Ananyev, Konstantin
> On Wed, Sep 22, 2021 at 8:38 PM Ananyev, Konstantin > wrote: > > > > > > > > Hi Jerin, > > > > > > > > > > NOTE: This is just an RFC to start further discussion and collect > > > > > > the feedback. > > > > > > Due to significant amount of work, changes required are applied > > > > > > only t

Re: [dpdk-dev] [dpdk-stable] [PATCH v4] mbuf: fix reset on mbuf free

2021-09-28 Thread Morten Brørup
> From: dev [mailto:dev-boun...@dpdk.org] On Behalf Of Slava Ovsiienko > Sent: Tuesday, 28 September 2021 11.01 > > Hi, > > I've re-read the entire thread. > If I understand correctly, the root problem was (in initial patch): > > > m1 = rte_pktmbuf_alloc(mp); > > rte_pktmbuf_append(m1, 500);

Re: [dpdk-dev] [RFC v2 3/5] ethdev: copy ethdev 'burst' API into separate structure

2021-09-28 Thread Ananyev, Konstantin
> > > > > > Copy public function pointers (rx_pkt_burst(), etc.) and related > > > pointers to internal data from rte_eth_dev structure into a separate flat > > > array. We can keep it public to still use inline functions for 'fast' > > > calls > > > (like rte_eth_rx_burst(), etc.) to avoid/minim

Re: [dpdk-dev] [PATCH v2 01/15] ethdev: introduce shared Rx queue

2021-09-28 Thread Xueming(Steven) Li
On Thu, 2021-09-16 at 09:46 +0530, Jerin Jacob wrote: > On Wed, Sep 15, 2021 at 8:15 PM Xueming(Steven) Li > wrote: > > > > Hi Jerin, > > > > On Mon, 2021-08-30 at 15:01 +0530, Jerin Jacob wrote: > > > On Sat, Aug 28, 2021 at 7:46 PM Xueming(Steven) Li > > > wrote: > > > > > > > > > > > >

Re: [dpdk-dev] [PATCH] net/i40e: fix remove MAC/VLAN addresses error

2021-09-28 Thread Kevin Traynor
On 28/09/2021 09:40, Robin Zhang wrote: Firmware will return I40E_AQ_RC_ENOENT when try to delete non-existent MAC/VLAN addresses from the HW filtering, this should not be considered as an Admin Queue error. But in i40e_asq_send_command, it will return I40E_ERR_ADMIN_QUEUE_ERROR if the return val

Re: [dpdk-dev] [RFC 01/15] eventdev: make driver interface as internal

2021-09-28 Thread Jerin Jacob
On Tue, Aug 24, 2021 at 1:10 AM wrote: > > From: Pavan Nikhilesh > > Mark all the driver specific functions as internal, remove > `rte` prefix from `struct rte_eventdev_ops`. > Remove experimental tag from internal functions. > Remove `eventdev_pmd.h` from non-internal header files. > > Signed-of

Re: [dpdk-dev] [PATCH] net/virtio: do not use PMD log type

2021-09-28 Thread Maxime Coquelin
On 9/16/21 15:25, David Marchand wrote: Fixes: 1982462eadea ("net/virtio: add Rx free threshold setting") Cc: sta...@dpdk.org Signed-off-by: David Marchand --- drivers/net/virtio/virtio_rxtx.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) Reviewed-by: Maxime Coquelin

Re: [dpdk-dev] [PATCH 1/2] common/cnxk: setup nix and lbk in loop mode in 98xx

2021-09-28 Thread Jerin Jacob
On Fri, Jul 30, 2021 at 9:40 PM Harman Kalra wrote: > > In case of 98xx, 2 NIX blocks and 4 LBK blocks are present. Moreover > AF VFs are alternatively attached to NIX0 and NIX1 to ensure load > balancing. To support loopback functionality between pairs NIX0/NIX1 > are attached to LBK1/LBK2 for tr

[dpdk-dev] [PATCH v3 0/6] Add SA lifetime in security

2021-09-28 Thread Anoob Joseph
Add SA lifetime configuration in security. SA lifetime tracking can be offloaded on supported PMDs. SA lifetime would cover soft & hard expiry in units of number of packets and bytes. When SA soft expiry happens, the packet is successfuly processed but with additional expiry notification. Crypto o

[dpdk-dev] [PATCH v3 1/6] security: add SA lifetime configuration

2021-09-28 Thread Anoob Joseph
Add SA lifetime configuration to register soft and hard expiry limits. Expiry can be in units of number of packets or bytes. Crypto op status is also updated to include new field, aux_flags, which can be used to indicate cases such as soft expiry in case of lookaside protocol operations. In case o

[dpdk-dev] [PATCH v3 2/6] common/cnxk: support lifetime configuration

2021-09-28 Thread Anoob Joseph
Add support for SA lifetime configuration. Expiry can be either in units of octets or packets. Also, updated cryptodev dequeue path to update crypto op result to indicate soft expiry. Signed-off-by: Anoob Joseph --- drivers/common/cnxk/cnxk_security.c | 70 +++

[dpdk-dev] [PATCH v3 3/6] crypto/octeontx2: add checks for life configuration

2021-09-28 Thread Anoob Joseph
Lifetime tracking is not supported by hardware and is not implemented in software either. Return failure when lifetime is configured. Signed-off-by: Anoob Joseph --- drivers/crypto/octeontx2/otx2_ipsec_po.h | 6 ++ 1 file changed, 6 insertions(+) diff --git a/drivers/crypto/octeontx2/otx2_

[dpdk-dev] [PATCH v3 4/6] test/crypto: add packets soft expiry tests

2021-09-28 Thread Anoob Joseph
Add tests to validate packets soft expiry handling. Signed-off-by: Anoob Joseph --- app/test/test_cryptodev.c| 21 +++-- app/test/test_cryptodev_security_ipsec.c | 18 -- app/test/test_cryptodev_security_ipsec.h | 4 +++- 3 files changed, 38 inse

[dpdk-dev] [PATCH v3 5/6] test/crypto: add packets hard expiry tests

2021-09-28 Thread Anoob Joseph
Add tests to validate packets hard expiry handling. Signed-off-by: Anoob Joseph --- app/test/test_cryptodev.c| 19 ++- app/test/test_cryptodev_security_ipsec.c | 22 +++--- app/test/test_cryptodev_security_ipsec.h | 1 + 3 files changed, 38 inser

[dpdk-dev] [PATCH v3 6/6] examples/ipsec-secgw: clear soft expiry configuration

2021-09-28 Thread Anoob Joseph
Soft expiry is not a mandatory IPsec feature. It is verified separately with IPsec unit tests. So configuration of the same is not required. Also, soft expiry tracking can cause perf degradation with some PMDs. Since a separate UT is available and the same setting in ipsec-secgw is not verifying th

Re: [dpdk-dev] [PATCH v2] net/virtio: fix virtio-user init when using existing tap

2021-09-28 Thread Maxime Coquelin
On 9/28/21 10:51, David Marchand wrote: When attaching to an existing mono queue tap, the virtio-user was not reporting that the virtio device was not properly initialised which prevented from starting the port later. $ ip tuntap add test mode tap $ dpdk-testpmd --vdev \ net_virtio_user0,i

Re: [dpdk-dev] [PATCH] net/i40e: fix remove MAC/VLAN addresses error

2021-09-28 Thread Zhang, RobinX
Hi, > -Original Message- > From: Kevin Traynor > Sent: Tuesday, September 28, 2021 5:54 PM > To: Zhang, RobinX ; dev@dpdk.org > Cc: Xing, Beilei ; Guo, Junfeng > ; Yang, SteveX > Subject: Re: [dpdk-dev] [PATCH] net/i40e: fix remove MAC/VLAN addresses > error > > On 28/09/2021 09:40, Rob

Re: [dpdk-dev] [PATCH v7 0/2] update gtp psc to use net hdr

2021-09-28 Thread Ferruh Yigit
On 8/23/2021 11:55 AM, Raslan Darawsheh wrote: > This series add header definition for gtp_psc in the net > library, and update the relevant rte_flow_item gtp_psc to > use this new header definition. > > Raslan Darawsheh (2): > net: add new ext hdr for gtp psc > ethdev: use ext hdr for gtp psc

Re: [dpdk-dev] [EXT] [PATCH] cryptodev: add telemetry callbacks

2021-09-28 Thread Akhil Goyal
> The cryptodev library now registers commands with telemetry, and > implements the corresponding callback functions. These commands > allow a list of cryptodevs and stats for a cryptodev to be > queried. > > An example usage can be seen below: > > Connecting to /var/run/dpdk/rte/dpdk_telemetry.v

Re: [dpdk-dev] [EXT] [PATCH] cryptodev: add telemetry callbacks

2021-09-28 Thread Akhil Goyal
> The cryptodev library now registers commands with telemetry, and > implements the corresponding callback functions. These commands > allow a list of cryptodevs and stats for a cryptodev to be > queried. > > An example usage can be seen below: > > Connecting to /var/run/dpdk/rte/dpdk_telemetry.v

[dpdk-dev] [PATCH v4 0/6] Add SA lifetime in security

2021-09-28 Thread Anoob Joseph
Add SA lifetime configuration in security. SA lifetime tracking can be offloaded on supported PMDs. SA lifetime would cover soft & hard expiry in units of number of packets and bytes. When SA soft expiry happens, the packet is successfuly processed but with additional expiry notification. Crypto o

[dpdk-dev] [PATCH v4 1/6] security: add SA lifetime configuration

2021-09-28 Thread Anoob Joseph
Add SA lifetime configuration to register soft and hard expiry limits. Expiry can be in units of number of packets or bytes. Crypto op status is also updated to include new field, aux_flags, which can be used to indicate cases such as soft expiry in case of lookaside protocol operations. In case o

[dpdk-dev] [PATCH v4 2/6] common/cnxk: support lifetime configuration

2021-09-28 Thread Anoob Joseph
Add support for SA lifetime configuration. Expiry can be either in units of octets or packets. Also, updated cryptodev dequeue path to update crypto op result to indicate soft expiry. Signed-off-by: Anoob Joseph --- drivers/common/cnxk/cnxk_security.c | 70 +++

[dpdk-dev] [PATCH v4 3/6] crypto/octeontx2: add checks for life configuration

2021-09-28 Thread Anoob Joseph
Lifetime tracking is not supported by hardware and is not implemented in software either. Return failure when lifetime is configured. Signed-off-by: Anoob Joseph --- drivers/crypto/octeontx2/otx2_ipsec_po.h | 6 ++ 1 file changed, 6 insertions(+) diff --git a/drivers/crypto/octeontx2/otx2_

[dpdk-dev] [PATCH v4 4/6] test/crypto: add packets soft expiry cases

2021-09-28 Thread Anoob Joseph
Add tests to validate packets soft expiry handling. Signed-off-by: Anoob Joseph --- app/test/test_cryptodev.c| 21 +++-- app/test/test_cryptodev_security_ipsec.c | 18 -- app/test/test_cryptodev_security_ipsec.h | 4 +++- 3 files changed, 38 inse

[dpdk-dev] [PATCH v4 5/6] test/crypto: add packets hard expiry cases

2021-09-28 Thread Anoob Joseph
Add tests to validate packets hard expiry handling. Signed-off-by: Anoob Joseph --- app/test/test_cryptodev.c| 19 ++- app/test/test_cryptodev_security_ipsec.c | 22 +++--- app/test/test_cryptodev_security_ipsec.h | 1 + 3 files changed, 38 inser

[dpdk-dev] [PATCH v4 6/6] examples/ipsec-secgw: clear soft expiry configuration

2021-09-28 Thread Anoob Joseph
Soft expiry is not a mandatory IPsec feature. It is verified separately with IPsec unit tests. So configuration of the same is not required. Also, soft expiry tracking can cause perf degradation with some PMDs. Since a separate UT is available and the same setting in ipsec-secgw is not verifying th

[dpdk-dev] [PATCH] app/testpmd: support unequal number of RXQ and TXQ

2021-09-28 Thread nipun . gupta
From: Jun Yang The existing forwarding mode configures the total number of queues as the minimum of rxq and txq, so eventually the number of txq are same as rxq. However in some scenarios, specially for flow control the number of rxq and txq can be different. This patch makes the txq and function

[dpdk-dev] [PATCH] app/testpmd: update raw flow to take hex input

2021-09-28 Thread nipun . gupta
From: Nipun Gupta This patch enables method to provide key and mask for raw rules to be provided as hexadecimal values. There is new parameter pattern_mask added to support this. Signed-off-by: Nipun Gupta --- app/test-pmd/cmdline_flow.c | 15 +++ doc/guides/testpmd

Re: [dpdk-dev] [PATCH] net/iavf: fix multi-process shared data

2021-09-28 Thread Zhang, Qi Z
> -Original Message- > From: dev On Behalf Of dapengx...@intel.com > Sent: Tuesday, September 28, 2021 11:38 AM > To: Richardson, Bruce ; Ananyev, Konstantin > ; Wu, Jingjing ; Xing, > Beilei > Cc: dev@dpdk.org; Yu, DapengX ; sta...@dpdk.org > Subject: [dpdk-dev] [PATCH] net/iavf: fix

[dpdk-dev] [PATCH v2 0/3] add option to configure tunnel header verification

2021-09-28 Thread Tejasree Kondoj
Add option to indicate whether outer header verification need to be done as part of inbound IPsec processing. CNXK PMD support and unit tests are also added for the same. Depends on https://patches.dpdk.org/project/dpdk/list/?series=18743 v2: * Removed deprecation notice Tejasree Kondoj (3): s

Re: [dpdk-dev] [PATCH v6] net/ice: support IEEE 1588 PTP

2021-09-28 Thread Zhang, Qi Z
> -Original Message- > From: Su, Simei > Sent: Tuesday, September 28, 2021 2:28 PM > To: Zhang, Qi Z > Cc: dev@dpdk.org; Wang, Haiyue ; Su, Simei > > Subject: [PATCH v6] net/ice: support IEEE 1588 PTP > > Add ice support for new ethdev APIs to enable/disable and read/write/adjust > I

[dpdk-dev] [PATCH v2 1/3] security: add option to configure tunnel header verification

2021-09-28 Thread Tejasree Kondoj
Add option to indicate whether outer header verification need to be done as part of inbound IPsec processing. With inline IPsec processing, SA lookup would be happening in the Rx path of rte_ethdev. When rte_flow is configured to support more than one SA, SPI would be used to lookup SA. In such ca

[dpdk-dev] [PATCH v2 2/3] common/cnxk: add support for tunnel header verification

2021-09-28 Thread Tejasree Kondoj
Adding support to verify tunnel header in IPsec inbound. Signed-off-by: Tejasree Kondoj --- drivers/common/cnxk/cnxk_security.c | 60 +++ drivers/common/cnxk/roc_ie_ot.h | 6 +- .../crypto/cnxk/cnxk_cryptodev_capabilities.c | 4 ++ 3 files changed, 69 in

[dpdk-dev] [PATCH v2 3/3] test/crypto: add tunnel header verification tests

2021-09-28 Thread Tejasree Kondoj
Add test cases to verify tunnel header in IPsec inbound. Signed-off-by: Tejasree Kondoj --- app/test/test_cryptodev.c | 45 ++- app/test/test_cryptodev_security_ipsec.c | 25 ++- app/test/test_cryptodev_security_ipsec.h | 1 + ...st_cryptode

Re: [dpdk-dev] [PATCH v2] net/i40e: fix Rx packet statistics

2021-09-28 Thread Zhang, Qi Z
> -Original Message- > From: dev On Behalf Of Alvin Zhang > Sent: Tuesday, September 28, 2021 11:23 AM > To: Xing, Beilei ; Guo, Junfeng > ; ktray...@redhat.com > Cc: dev@dpdk.org; Zhang, AlvinX ; sta...@dpdk.org > Subject: [dpdk-dev] [PATCH v2] net/i40e: fix Rx packet statistics > > S

[dpdk-dev] [PATCH 00/11] net/sfc: support per-queue stats on EF100

2021-09-28 Thread Andrew Rybchenko
Implement per-queue Rx and Tx statistics for EF100 in software. Packets and bytes stats are collected by the driver. Ivan Ilchenko (11): net/sfc: rename array of SW stats descriptions net/sfc: rename accumulative SW stats to total net/sfc: rename SW stats structures net/sfc: fix cleanup or

[dpdk-dev] [PATCH 01/11] net/sfc: rename array of SW stats descriptions

2021-09-28 Thread Andrew Rybchenko
From: Ivan Ilchenko Rename global array of SW stats descriptions declared as 'struct sfc_sw_xstat_descr sfc_sw_xstats[]' to 'sfc_sw_stats_descr[]' to avoid ambiguity since there is structure declared as 'struct sfc_sw_xstats'. Signed-off-by: Ivan Ilchenko Signed-off-by: Andrew Rybchenko --- d

[dpdk-dev] [PATCH 02/11] net/sfc: rename accumulative SW stats to total

2021-09-28 Thread Andrew Rybchenko
From: Ivan Ilchenko This is a better word used in RTE docs. Signed-off-by: Ivan Ilchenko Signed-off-by: Andrew Rybchenko --- drivers/net/sfc/sfc_sw_stats.c | 52 +- 1 file changed, 26 insertions(+), 26 deletions(-) diff --git a/drivers/net/sfc/sfc_sw_stats.c b

[dpdk-dev] [PATCH 03/11] net/sfc: rename SW stats structures

2021-09-28 Thread Andrew Rybchenko
From: Ivan Ilchenko Delete 'x' in: 1. per-adapter 'struct sfc_sw_xstats' with corresponding field 'sw_xstats'. 2. 'struct sfc_sw_xstat_descr' and callback prototype 'sfc_get_sw_xstat_val_t' with its implementations. The 'x' stands for 'extended' in RTE but from sfc point of

[dpdk-dev] [PATCH 04/11] net/sfc: fix cleanup order of SW stats

2021-09-28 Thread Andrew Rybchenko
From: Ivan Ilchenko Fix cleanup order of SW stats structures to be reversed to initialization order. Fixes: fdd7719eb3c ("net/sfc: add xstats for Rx/Tx doorbells") Cc: sta...@dpdk.org Signed-off-by: Ivan Ilchenko Signed-off-by: Andrew Rybchenko --- drivers/net/sfc/sfc_sw_stats.c | 3 +-- 1 f

[dpdk-dev] [PATCH 05/11] net/sfc: fix missing const of SW stats descriptions

2021-09-28 Thread Andrew Rybchenko
From: Ivan Ilchenko Description is a global variable shared by all adapters and must not be modified. Fixes: fdd7719eb3c ("net/sfc: add xstats for Rx/Tx doorbells") Cc: sta...@dpdk.org Signed-off-by: Ivan Ilchenko Signed-off-by: Andrew Rybchenko --- drivers/net/sfc/sfc_sw_stats.c | 7 ---

[dpdk-dev] [PATCH 06/11] net/sfc: optimize getting number of SW stats

2021-09-28 Thread Andrew Rybchenko
From: Ivan Ilchenko Optimize getting number of SW stats by caching the value during device configure since it's the only place it may change. Signed-off-by: Ivan Ilchenko Signed-off-by: Andrew Rybchenko --- drivers/net/sfc/sfc.h | 2 ++ drivers/net/sfc/sfc_sw_stats.c | 14 --

[dpdk-dev] [PATCH 07/11] net/sfc: prepare having no some SW stats on an adapter

2021-09-28 Thread Andrew Rybchenko
From: Ivan Ilchenko Global description structure of SW stats is used currently. Following patches introduce SW stats that may be unavailable for some adapters, so add per-adapter descriptions to safely work with multiple adapters. Signed-off-by: Ivan Ilchenko Signed-off-by: Andrew Rybchenko --

[dpdk-dev] [PATCH 08/11] net/sfc: add toggle to disable total stat

2021-09-28 Thread Andrew Rybchenko
From: Ivan Ilchenko Add toggle to disable total SW stat. This is useful for per-queue 'packets' and 'bytes' to not conflict with corresponding basic stats. These stats will be added in the following patches. Signed-off-by: Ivan Ilchenko Signed-off-by: Andrew Rybchenko --- drivers/net/sfc/sfc_

[dpdk-dev] [PATCH 09/11] net/sfc: add support for SW stats groups

2021-09-28 Thread Andrew Rybchenko
From: Ivan Ilchenko Add support for grouping SW stats together. When stats are grouped the corresponding stats values for each queue are obtained during calling one read callback. This is useful to group per-queue stats 'packets' and 'bytes' to keep stats consistent, i.e. a number of bytes corres

[dpdk-dev] [PATCH 10/11] net/sfc: collect per queue stats in EF100 Rx datapath

2021-09-28 Thread Andrew Rybchenko
From: Ivan Ilchenko If Rx datapath collects per queue statistics, use these stats to provide ipackets and ibytes in basic ethdev stats. Signed-off-by: Andrew Rybchenko Signed-off-by: Ivan Ilchenko --- drivers/net/sfc/sfc.h | 3 + drivers/net/sfc/sfc_dp.h | 2 + drivers/net/

[dpdk-dev] [PATCH 11/11] net/sfc: collect per queue stats in EF100 Tx datapath

2021-09-28 Thread Andrew Rybchenko
From: Ivan Ilchenko If Tx datapath collects per queue statistics, use these stats to provide opackets and obytes in basic ethdev stats. Signed-off-by: Andrew Rybchenko Signed-off-by: Ivan Ilchenko --- drivers/net/sfc/sfc.h | 2 ++ drivers/net/sfc/sfc_dp_tx.h| 1 + drivers/net/s

Re: [dpdk-dev] [PATCH v1] ethdev: introduce shared Rx queue

2021-09-28 Thread Xueming(Steven) Li
On Tue, 2021-09-28 at 15:05 +0530, Jerin Jacob wrote: > On Sun, Sep 26, 2021 at 11:06 AM Xueming(Steven) Li > wrote: > > > > On Wed, 2021-08-11 at 13:04 +0100, Ferruh Yigit wrote: > > > On 8/11/2021 9:28 AM, Xueming(Steven) Li wrote: > > > > > > > > > > > > > -Original Message- > > > >

Re: [dpdk-dev] [PATCH v1] ethdev: introduce shared Rx queue

2021-09-28 Thread Xueming(Steven) Li
On Tue, 2021-09-28 at 15:05 +0530, Jerin Jacob wrote: > On Sun, Sep 26, 2021 at 11:06 AM Xueming(Steven) Li > wrote: > > > > On Wed, 2021-08-11 at 13:04 +0100, Ferruh Yigit wrote: > > > On 8/11/2021 9:28 AM, Xueming(Steven) Li wrote: > > > > > > > > > > > > > -Original Message- > > > >

Re: [dpdk-dev] [PATCH v5 2/2] examples/vhost: use API to check inflight packets

2021-09-28 Thread Ding, Xuan
Hi Kevin, > -Original Message- > From: Kevin Traynor > Sent: Tuesday, September 28, 2021 5:18 PM > To: Ding, Xuan ; dev@dpdk.org; > maxime.coque...@redhat.com; Xia, Chenbo > Cc: Hu, Jiayu ; Jiang, Cheng1 ; > Richardson, Bruce ; Pai G, Sunil > ; Wang, Yinan ; Yang, YvonneX > > Subject: R

Re: [dpdk-dev] [PATCH] app/testpmd: update raw flow to take hex input

2021-09-28 Thread Nipun Gupta
Please ignore this patch for now. Regards, Nipun > -Original Message- > From: nipun.gu...@nxp.com > Sent: Tuesday, September 28, 2021 4:39 PM > To: dev@dpdk.org > Cc: xiaoyun...@intel.com; or...@nvidia.com; tho...@monjalon.net; > ferruh.yi...@intel.com; Hemant Agrawal ; Nipun > Gupta >

Re: [dpdk-dev] [PATCH v5 2/2] examples/vhost: use API to check inflight packets

2021-09-28 Thread Ding, Xuan
Hi, > -Original Message- > From: Ding, Xuan > Sent: Tuesday, September 28, 2021 7:51 PM > To: Kevin Traynor ; dev@dpdk.org; > maxime.coque...@redhat.com; Xia, Chenbo > Cc: Hu, Jiayu ; Jiang, Cheng1 ; > Richardson, Bruce ; Pai G, Sunil > ; Wang, Yinan ; Yang, > YvonneX > Subject: RE: [PAT

Re: [dpdk-dev] [PATCH v4 1/2] ethdev: fix docs of functions getting xstats by IDs

2021-09-28 Thread Andrew Rybchenko
Hi Olivier, I apologize for so long delay with reply. I simply lost it from my view. Many thanks for review notes. See below. On 7/26/21 1:13 PM, Olivier Matz wrote: > Hi Andrew, > > Some comments below. > > On Sat, Jul 24, 2021 at 03:33:13PM +0300, Andrew Rybchenko wrote: >> From: Ivan Ilchen

Re: [dpdk-dev] [PATCH v4 2/2] ethdev: fix docs of drivers callbacks getting xstats by IDs

2021-09-28 Thread Andrew Rybchenko
On 7/26/21 1:13 PM, Olivier Matz wrote: > On Sat, Jul 24, 2021 at 03:33:14PM +0300, Andrew Rybchenko wrote: >> From: Ivan Ilchenko >> >> Update xstats by IDs callbacks documentation in accordance with >> ethdev usage of these callbacks. Document valid combinations of >> input arguments to make dri

[dpdk-dev] [PATCH v5 1/2] ethdev: fix docs of functions getting xstats by IDs

2021-09-28 Thread Andrew Rybchenko
From: Ivan Ilchenko Document valid combinations of input arguments in accordance with current implementation in ethdev. Fixes: 79c913a42f0 ("ethdev: retrieve xstats by ID") Cc: sta...@dpdk.org Signed-off-by: Ivan Ilchenko Signed-off-by: Andrew Rybchenko Reviewed-by: Andy Moreton --- lib/eth

[dpdk-dev] [PATCH v5 2/2] ethdev: fix docs of drivers callbacks getting xstats by IDs

2021-09-28 Thread Andrew Rybchenko
From: Ivan Ilchenko Update xstats by IDs callbacks documentation in accordance with ethdev usage of these callbacks. Document valid combinations of input arguments to make driver implementation simpler. Fixes: 79c913a42f0 ("ethdev: retrieve xstats by ID") Cc: sta...@dpdk.org Signed-off-by: Ivan

Re: [dpdk-dev] [PATCH v2] net/ixgbe: fix RxQ/TxQ release

2021-09-28 Thread Wang, Haiyue
> -Original Message- > From: Julien Meunier > Sent: Tuesday, September 28, 2021 16:13 > To: dev@dpdk.org > Cc: sta...@dpdk.org; Richardson, Bruce ; Wang, > Haiyue > > Subject: [PATCH v2] net/ixgbe: fix RxQ/TxQ release > > On the vector implementation, during the tear-down, the mbufs not

Re: [dpdk-dev] [PATCH v3 00/20] ice/base: add parser module

2021-09-28 Thread Ferruh Yigit
On 9/21/2021 2:32 PM, Zhang, Qi Z wrote: > > >> -Original Message- >> From: Zhang, Qi Z >> Sent: Tuesday, September 21, 2021 9:20 PM >> To: Yang, Qiming >> Cc: Guo, Junfeng ; dev@dpdk.org; Zhang, Qi Z >> >> Subject: [PATCH v3 00/20] ice/base: add parser module >> >> Add the parser modu

  1   2   3   >