RE: [PATCH v1 0/6] app/crypto-perf: add asymmetric crypto tests

2024-06-16 Thread Anoob Joseph
> > This patch series adds below asymmetric tests in crypto-perf tool: > * MODEX group tests (RFC 3526) > * SM2 tests > * ECDSA P256R1 tests > > Akhil Goyal (1): > app/crypto-perf: support SM2 > > Gowrishankar Muthukrishnan (5): > app/crypto-perf: add modex groups test > app/crypto-p

RE: [PATCH] crypto/cnxk: fix ECDH pubkey verify

2024-06-16 Thread Anoob Joseph
> > Fix dequeue operation for ECDH pubkey verify. > > Fixes: baae0994fa96 ("crypto/cnxk: support ECDH") > Fixes: 5c9025583167 ("crypto/cnxk: fix CN9K ECDH public key verification") > Cc: sta...@dpdk.org > > Signed-off-by: Gowrishankar Muthukrishnan Acked-by: Anoob Joseph

[PATCH v3 11/11] doc: update nfp document

2024-06-16 Thread Chaoyong He
From: Xinying Yu Add the software assisted vDPA live migration feature into NFP document. Signed-off-by: Xinying Yu Reviewed-by: Chaoyong He Reviewed-by: Long Wu Reviewed-by: Peng Zhang --- doc/guides/vdpadevs/nfp.rst | 9 + 1 file changed, 9 insertions(+) diff --git a/doc/guides/v

[PATCH v3 10/11] vdpa/nfp: enable feature bits of live migration

2024-06-16 Thread Chaoyong He
From: Xinying Yu Add the 'VHOST_F_LOG_ALL' feature bits inorder to enable the live migration function. Signed-off-by: Xinying Yu Reviewed-by: Chaoyong He Reviewed-by: Long Wu Reviewed-by: Peng Zhang --- drivers/vdpa/nfp/nfp_vdpa_core.c | 1 + 1 file changed, 1 insertion(+) diff --git a/dri

[PATCH v3 09/11] vdpa/nfp: setup vring relay thread

2024-06-16 Thread Chaoyong He
From: Xinying Yu Setup the vring relay thread to monitor the interruption from device. And do the dirty page logging or notify device according to event data. Signed-off-by: Xinying Yu Reviewed-by: Chaoyong He Reviewed-by: Long Wu Reviewed-by: Peng Zhang --- drivers/vdpa/nfp/nfp_vdpa.c

[PATCH v3 08/11] vdpa/nfp: recover the ring index on new host

2024-06-16 Thread Chaoyong He
From: Xinying Yu After migrating to new host, the vring information is recovered by the value in offset 'NFP_NET_CFG_TX_USED_INDEX' and 'NFP_NET_CFG_RX_USED_INDEX'. Signed-off-by: Xinying Yu Reviewed-by: Chaoyong He Reviewed-by: Long Wu Reviewed-by: Peng Zhang --- drivers/common/nfp/nfp_com

[PATCH v3 07/11] vdpa/nfp: setup the VF configure

2024-06-16 Thread Chaoyong He
From: Xinying Yu Create the relay vring on host and then set the address of Rx used ring to the VF config bar. So the device can DMA the used ring information to host rather than directly to VM. Use 'NFP_NET_CFG_CTRL_LM_RELAY' notify the device side. And enable the MSIX interrupt on device. Tx

[PATCH v3 06/11] vdpa/nfp: add the interrupt logic of vring relay

2024-06-16 Thread Chaoyong He
From: Xinying Yu Add the interrupt setup logic of vring relay. The epoll fd is provided here so host can get the interrupt from device on Rx direction, all other operations on vring relay are based on this. Signed-off-by: Xinying Yu Reviewed-by: Chaoyong He Reviewed-by: Long Wu Reviewed-by:

[PATCH v3 05/11] vdpa/nfp: add the live migration logic

2024-06-16 Thread Chaoyong He
From: Xinying Yu Add the basic logic of software live migration. Unset the ring notify area to stop the direct IO datapath if the device support, then we can setup the vring relay to help the live migration. Signed-off-by: Xinying Yu Reviewed-by: Chaoyong He Reviewed-by: Long Wu Reviewed-by:

[PATCH v3 04/11] vdpa/nfp: refactor the logic of datapath update

2024-06-16 Thread Chaoyong He
From: Xinying Yu In order to add the new configuration logic of software live migration, split the datapath update logic into two parts, queue configuration and VF configuration. Signed-off-by: Xinying Yu Reviewed-by: Chaoyong He Reviewed-by: Long Wu Reviewed-by: Peng Zhang --- drivers/vdpa

[PATCH v3 03/11] vdpa/nfp: fix the logic of reconfiguration

2024-06-16 Thread Chaoyong He
From: Xinying Yu The ctrl words of vDPA is located on the extended word, so it should use the 'nfp_ext_reconfig()' rather than 'nfp_reconfig()'. Also replace the misuse of 'NFP_NET_CFG_CTRL_SCATTER' macro with 'NFP_NET_CFG_CTRL_VIRTIO'. Fixes: b47a0373903f ("vdpa/nfp: add datapath update") Cc:

[PATCH v3 02/11] vdpa/nfp: fix logic in hardware init

2024-06-16 Thread Chaoyong He
From: Xinying Yu Reconfigure the NIC will fail because lack of the initialization logic of queue configuration pointer. Fix this by adding the correct initialization logic. Fixes: d89f4990c14e ("vdpa/nfp: add hardware init") Cc: chaoyong...@corigine.com Cc: sta...@dpdk.org Signed-off-by: Xinyin

[PATCH v3 01/11] mailmap: add new contributor

2024-06-16 Thread Chaoyong He
From: Xinying Yu Add new contributor. Signed-off-by: Xinying Yu Reviewed-by: Chaoyong He Reviewed-by: Long Wu Reviewed-by: Peng Zhang --- .mailmap | 1 + 1 file changed, 1 insertion(+) diff --git a/.mailmap b/.mailmap index 6b396107d0..01c31b8c70 100644 --- a/.mailmap +++ b/.mailmap @@ -15

[PATCH v3 00/11] support software live migration

2024-06-16 Thread Chaoyong He
This patch series aims to add the support of software live migration feature for NFP vDPA device. --- v3: * Fix one compile error when using standard atomic. v2: * Adjust some spell in the commit message. * Split out a commit to enable this feature. --- Xinying Yu (11): mailmap: add new contrib

[PATCH 7/7] test/security: use single session in data walkthrough test

2024-06-16 Thread Aakash Sasidharan
Existing data walkthrough test creates a new session per each test packet size. Enhance the test to use single session instead. Signed-off-by: Aakash Sasidharan --- app/test/test_cryptodev.c | 49 +-- app/test/test_cryptodev_security_tls_record.h | 1 + 2 fil

[PATCH 6/7] test/security: add out of place sgl tests for TLS

2024-06-16 Thread Aakash Sasidharan
Add multi segmented test for TLS 1.3 and multi segmented out of place tests for DTLS 1.2 and TLS 1.3. Signed-off-by: Aakash Sasidharan --- app/test/test_cryptodev.c | 69 ++- 1 file changed, 39 insertions(+), 30 deletions(-) diff --git a/app/test/test_cryptod

[PATCH 5/7] test/crypto: verify padding corruption in DTLS-1.2

2024-06-16 Thread Aakash Sasidharan
From: Vidya Sagar Velumuri Add unit test to verify corrupted padding bytes in DTLS-1.2 record Signed-off-by: Vidya Sagar Velumuri --- app/test/test_cryptodev.c | 21 + 1 file changed, 21 insertions(+) diff --git a/app/test/test_cryptodev.c b/app/test/test_cryptodev.c index

[PATCH 4/7] test/crypto: verify padding corruption in TLS-1.2

2024-06-16 Thread Aakash Sasidharan
From: Vidya Sagar Velumuri Add unit test to verify corrupted padding bytes in TLS-1.2 record Signed-off-by: Vidya Sagar Velumuri --- app/test/test_cryptodev.c | 22 ++- app/test/test_cryptodev_security_tls_record.c | 7 ++ app/test/test_cryptodev_securi

[PATCH 2/7] test/crypto: add combined mode cases for TLS 1.3

2024-06-16 Thread Aakash Sasidharan
Add cases to try TLS 1.3 record write(encrypt) + read(decrypt) operations. This is used for testing TLS 1.3 record features with all algorithms supported by the security device. Signed-off-by: Aakash Sasidharan --- app/test/test_cryptodev.c | 17 + 1 file changed, 17 insertions(+

[PATCH 3/7] test/security: add TLS 1.3 data walkthrough tests

2024-06-16 Thread Aakash Sasidharan
Add combined mode data walkthrough test and multi-segmented packet data walkthrough test for TLS 1.3. Signed-off-by: Aakash Sasidharan --- app/test/test_cryptodev.c | 41 +++ 1 file changed, 41 insertions(+) diff --git a/app/test/test_cryptodev.c b/app/test/t

[PATCH 1/7] test/crypto: unit tests for padding for TLS-1.3

2024-06-16 Thread Aakash Sasidharan
From: Vidya Sagar Velumuri Add unit tests to verify the padding for TLS-1.3. Signed-off-by: Vidya Sagar Velumuri --- app/test/test_cryptodev.c | 31 +++ 1 file changed, 31 insertions(+) diff --git a/app/test/test_cryptodev.c b/app/test/test_cryptodev.c index 94438c

[PATCH 0/7] Improvements and new test cases

2024-06-16 Thread Aakash Sasidharan
Adding new test cases and improvements to test application. Aakash Sasidharan (4): test/crypto: add combined mode cases for TLS 1.3 test/security: add TLS 1.3 data walkthrough tests test/security: add out of place sgl tests for TLS test/security: use single session in data walkthrough test

[DPDK/vhost/virtio Bug 1462] [dpdk-24.07] virtio_smoke/test_virtio_loopback: Vhost or Virtio hang

2024-06-16 Thread bugzilla
https://bugs.dpdk.org/show_bug.cgi?id=1462 Bug ID: 1462 Summary: [dpdk-24.07] virtio_smoke/test_virtio_loopback: Vhost or Virtio hang Product: DPDK Version: 24.07 Hardware: All OS: All Status: UN

[PATCH 1/1] net/mlx5: show rx/tx descriptor ring limitations in rte_eth_dev_info

2024-06-16 Thread Igor Gutorov
Currently, rte_eth_dev_info.rx_desc_lim.nb_max shows 65535 as a limit, which results in a few problems: * It is an incorrect value * Allocating an RX queue and passing `rx_desc_lim.nb_max` results in an integer overflow and 0 ring size: ``` rte_eth_rx_queue_setup(0, 0, rx_desc_lim.nb_max, 0, NU

[PATCH 0/1] net/mlx5: show rx/tx descriptor ring limitations in rte_eth_dev_info

2024-06-16 Thread Igor Gutorov
Hello, This patch fixes an issue with my ConnectX5 NIC (15b3:1019) showing 65535 as the maximum number of RX descriptors. So, a disclaimer: I don't know whether other NICs (ConnectX6?) allow larger values. The value of 8192 was obtained experimentally with ethtool: ethtool -G *nic* rx 8192, as I