[PATCH v4 5/5] ethdev: format module EEPROM for SFF-8636

2022-04-24 Thread Robin Zhang
This patch implements format module EEPROM information for SFF-8636 Rev 2.7 Signed-off-by: Robin Zhang --- lib/ethdev/ethdev_sff_telemetry.c | 4 + lib/ethdev/meson.build| 1 + lib/ethdev/sff_8636.c | 775 ++ lib/ethdev/sff_8636.h

[PATCH v4 4/5] ethdev: format module EEPROM for SFF-8472

2022-04-24 Thread Robin Zhang
This patch implements format module EEPROM information for SFF-8472 Rev 12.0 Signed-off-by: Robin Zhang --- lib/ethdev/ethdev_sff_telemetry.c | 4 + lib/ethdev/meson.build| 1 + lib/ethdev/sff_8472.c | 287 ++ 3 files changed, 292 insertion

[PATCH v4 3/5] ethdev: format module EEPROM for SFF-8079

2022-04-24 Thread Robin Zhang
This patch implements format module EEPROM information for SFF-8079 Rev 1.7 Signed-off-by: Robin Zhang --- lib/ethdev/ethdev_sff_telemetry.c | 3 + lib/ethdev/meson.build| 1 + lib/ethdev/sff_8079.c | 407 ++ 3 files changed, 411 insertions

[PATCH v4 2/5] ethdev: common utilities for different SFF specs

2022-04-24 Thread Robin Zhang
This patch implements SFF-8024 Rev 4.0 of pluggable I/O configuration and some common utilities for SFF-8436/8636 and SFF-8472/8079. Signed-off-by: Robin Zhang --- lib/ethdev/meson.build | 1 + lib/ethdev/sff_common.c | 326 lib/ethdev/sff_common.h | 1

[PATCH 5/5] crypto/cnxk: use set ctx operation for session destroy

2022-04-24 Thread Anoob Joseph
Usage of flush and invalidate would involve delays to account for flush delay. Use set_ctx operation instead. When set_ctx fails, fall back to flush + invalidate scheme. Signed-off-by: Anoob Joseph --- drivers/crypto/cnxk/cn10k_ipsec.c | 44 --- 1 file changed

[PATCH v4 1/5] ethdev: add telemetry command for module EEPROM

2022-04-24 Thread Robin Zhang
Add a new telemetry command /ethdev/module_eeprom to dump the module EEPROM of each port. The format of module EEPROM information follows the SFF(Small Form Factor) Committee specifications. Current the format support SFP(Small Formfactor Pluggable)/SFP+/ QSFP+(Quad Small Formfactor Pluggable)/QSF

[PATCH 4/5] common/cnxk: add timeout for ctx write operation

2022-04-24 Thread Anoob Joseph
Add busy wait and polling for ctx write operation rather than waiting with 1 ms delay. Signed-off-by: Anoob Joseph --- drivers/common/cnxk/roc_cpt.c | 31 +-- drivers/common/cnxk/roc_platform.h | 7 --- 2 files changed, 25 insertions(+), 13 deletions(-) dif

[PATCH v4 0/5] add telemetry command for show module EEPROM

2022-04-24 Thread Robin Zhang
Introduce a new telemetry command /ethdev/module_eeprom to show module EEPROM for each port. The format of module EEPROM information follows the SFF(Small Form Factor) Committee specifications. Current the format support SFP(Small Formfactor Pluggable)/SFP+/ QSFP+(Quad Small Formfactor Pluggable)/

[PATCH 3/5] crypto/cnxk: remove redundant return

2022-04-24 Thread Anoob Joseph
The function doesn't return error. Remove return. Signed-off-by: Anoob Joseph --- drivers/crypto/cnxk/cnxk_se.h | 13 - 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/drivers/crypto/cnxk/cnxk_se.h b/drivers/crypto/cnxk/cnxk_se.h index e988d57..ce7ca2e 100644 --- a/driv

[PATCH 2/5] crypto/cnxk: support AES-GMAC

2022-04-24 Thread Anoob Joseph
From: Archana Muniganti Added lookaside IPsec AES-GMAC support in CNXK PMD. Signed-off-by: Archana Muniganti Acked-by: Anoob Joseph --- doc/guides/cryptodevs/cnxk.rst| 2 ++ doc/guides/rel_notes/release_22_07.rst| 1 + drivers/common/cnxk/cnxk_security.c

[PATCH 1/5] crypto/cnxk: support AH mode

2022-04-24 Thread Anoob Joseph
From: Archana Muniganti Added IPsec AH mode support in CN9K and CN10K PMD Signed-off-by: Archana Muniganti Acked-by: Anoob Joseph --- doc/guides/cryptodevs/cnxk.rst| 2 + doc/guides/rel_notes/release_22_07.rst| 4 ++ drivers/common/cnxk/cnxk_security.c

[PATCH 0/5] Fixes and improvements to cnxk crypto PMDs

2022-04-24 Thread Anoob Joseph
Add AES-GMAC and AH mode support in CN9K and CN10K crypto PMDs. Also use a timeout for SA CTX write operations. Anoob Joseph (3): crypto/cnxk: remove redundant return common/cnxk: add timeout for ctx write operation crypto/cnxk: use set ctx operation for session destroy Archana Muniganti (2

RE: [EXT] [PATCH 1/2] common/mlx5: extend crypto capabilities

2022-04-24 Thread Akhil Goyal
> +struct mlx5_ifc_crypto_caps_bits { > + u8 wrapped_crypto_operational[0x1]; > + u8 wrapped_crypto_going_to_commissioning[0x1]; > + u8 sw_wrapped_dek[0x1]; > + u8 synchronize_dek[0x1]; > + u8 int_kek_manual[0x1]; > + u8 int_kek_auto[0x1]; > + u8 reserved_at_6[0x12]; > +

Re: [dpdk-dev] [PATCH 1/2] common/cnxk: fix ROC naming convention issues

2022-04-24 Thread Jerin Jacob
On Thu, Mar 17, 2022 at 9:21 AM wrote: > > From: Satheesh Paul > > Fixed some names to follow ROC naming convention in ROC NPC code. > > Fixes: 4edf1246a40 ("common/cnxk: support matching VLAN existence in RTE > Flow") > Cc: sta...@dpdk.org > > Signed-off-by: Satheesh Paul Series Acked-by: Je

[PATCH 8/8] test/crypto: add short MAC-I test vector for zuc

2022-04-24 Thread Gagandeep Singh
Add a ZUC based short MAC-I test vector. Signed-off-by: Gagandeep Singh --- ...est_cryptodev_security_pdcp_test_vectors.h | 20 +-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git a/app/test/test_cryptodev_security_pdcp_test_vectors.h b/app/test/test_cryptodev_secur

[PATCH 7/8] test/crypto: add external buffer test case

2022-04-24 Thread Gagandeep Singh
Add a test case to verify crypto functionality with external buffer. Signed-off-by: Gagandeep Singh --- app/test/test_cryptodev.c | 163 ++ 1 file changed, 163 insertions(+) diff --git a/app/test/test_cryptodev.c b/app/test/test_cryptodev.c index 0b53ec0078..

[PATCH 6/8] test/crypto: support raw buffer APIs for PDCP

2022-04-24 Thread Gagandeep Singh
This patch supports raw buffer APIs testing for PDCP test cases. Signed-off-by: Gagandeep Singh --- app/test/test_cryptodev.c | 22 -- 1 file changed, 20 insertions(+), 2 deletions(-) diff --git a/app/test/test_cryptodev.c b/app/test/test_cryptodev.c index 5a60fc5c73..0b53ec

[PATCH 5/8] test/crypto: fix pmd name for dpaa raw buffer crypto driver

2022-04-24 Thread Gagandeep Singh
PMD name for DPAA raw buffer crypto driver test cases is updated with correct name. Fixes: cd8166c28cd1 ("test/crypto: add raw API test for dpaax") Cc: sta...@dpdk.org Signed-off-by: Gagandeep Singh --- app/test/test_cryptodev.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[PATCH 4/8] examples/l2fwd-crypto: add signal handler for exit

2022-04-24 Thread Gagandeep Singh
Handle SIGINT and SIGTERM signals. Signed-off-by: Gagandeep Singh --- examples/l2fwd-crypto/main.c | 16 1 file changed, 16 insertions(+) diff --git a/examples/l2fwd-crypto/main.c b/examples/l2fwd-crypto/main.c index bbdb263143..1764fc7abc 100644 --- a/examples/l2fwd-crypto/mai

[PATCH 3/8] examples/ipsec-secgw: support XCBC-MAC/DES-CBC

2022-04-24 Thread Gagandeep Singh
ipsec-secgw application is updated to support DES-CBC ciphering and XCBC-MAC authentication based IPsec functionality. Signed-off-by: Gagandeep Singh --- examples/ipsec-secgw/esp.c | 5 + examples/ipsec-secgw/sa.c | 8 2 files changed, 13 insertions(+) diff --git a/examples/ipsec-

[PATCH 2/8] app/test-crypto-perf: support SDAP for PDCP operations

2022-04-24 Thread Gagandeep Singh
Add a command line option "--enable-sdap" to enable Service Data Adaptation Protocol. example command: ./dpdk-test-crypto-perf -c 0xc --log-level=8 -- --devtype crypto_dpaa2_sec --optype pdcp --cipher-algo aes-ctr --cipher-op encrypt --auth-algo zuc-eia3 --auth-op generate --auth-key-sz 16 --ptes

[PATCH 1/8] app/test-crypto-perf: improve dequeue logic

2022-04-24 Thread Gagandeep Singh
Issue more dequeue commands if the gap between enqueued and dequeued packets is more than burst size *8 Signed-off-by: Gagandeep Singh --- app/test-crypto-perf/cperf_test_throughput.c | 42 +++- 1 file changed, 23 insertions(+), 19 deletions(-) diff --git a/app/test-crypto-perf/

[PATCH] event/cnxk: fix out of bounds access

2022-04-24 Thread Gowrishankar Muthukrishnan
Fix out of bounds array access reporrted in coverity scan. Coverity issue: 375817 Fixes: 2351506401e ("event/cnxk: add SSO selftest and dump") Signed-off-by: Gowrishankar Muthukrishnan --- drivers/event/cnxk/cnxk_eventdev_selftest.c | 12 1 file changed, 12 insertions(+) diff --gi

[PATCH] net/cnxk: fix out of bounds access in cmd array

2022-04-24 Thread Gowrishankar Muthukrishnan
Fix out of bounds access in cmd array which was reported in coverity scan. Coverity issue: 375245, 375246, 375260, 375263, 375264, 375271, 375278, 375279, 375273, 375274, 375275, 375276, 375280, 375281, 375283, 375286 Fixes: c5b97e98837 ("net/cnxk: add cn10k templat

[PATCH] net/cnxk: fix uninitialized scalar variable

2022-04-24 Thread Gowrishankar Muthukrishnan
Fix uninitialized scalar variable reported in coverity scan. Coverity issue: 371872, 371880 Fixes: 19f3af2371a ("net/cnxk: add Tx burst for CN10K") Signed-off-by: Gowrishankar Muthukrishnan --- drivers/net/cnxk/cn10k_tx.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/d

[PATCH] net/cnxk: fix uninitialized scalar variable

2022-04-24 Thread Gowrishankar Muthukrishnan
Fix uninitialized scalar variable reported in coverity scan. Coverity issue: 371876, 371877 Fixes: 39dc567c195 ("net/cnxk: add Tx burst for CN9K") Signed-off-by: Gowrishankar Muthukrishnan --- drivers/net/cnxk/cn9k_tx.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dri

[PATCH] common/cnxk: fix sizeof not portable

2022-04-24 Thread Gowrishankar Muthukrishnan
Fix size of not portable issue reported in coverity scan. Coverity issue: 376538 Fixes: 7e9a94909ee ("common/cnxk: realloc inline device XAQ AURA") Signed-off-by: Gowrishankar Muthukrishnan --- drivers/common/cnxk/roc_nix_inl_dev.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --g

[PATCH] common/cnxk: fix null pointer dereference

2022-04-24 Thread Gowrishankar Muthukrishnan
Fix null pointer dereference reported in coverity scan. Coverity issue: 372065 Fixes: 665b6a7400b ("common/cnxk: add NPC helper API") Signed-off-by: Gowrishankar Muthukrishnan --- drivers/common/cnxk/roc_npc_utils.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/common/cnxk/roc_

Re: kni: check abi version between kmod and lib

2022-04-24 Thread Stephen Coleman
execuse me, one of the Windows check is failing but I didn't find where's the build log, nor to determine whether it is related. > KNI ioctl functions copy data from userspace lib, and this interface > of kmod is not compatible indeed. If the user use incompatible rte_kni.ko > bad things happen: s

[PATCH v3] kni: check abi version between kmod and lib

2022-04-24 Thread youcai
KNI ioctl functions copy data from userspace lib, and this interface of kmod is not compatible indeed. If the user use incompatible rte_kni.ko bad things happen: sometimes various fields contain garbage value, sometimes it cause a kmod soft lockup. Some common distros ship their own rte_kni.ko, so

RE: [DPDK v4] net/ixgbe: promote MDIO API

2022-04-24 Thread Zeng, ZhichaoX
Hi, Ray, David: What is your opinion on this patch? Regards, Zhichao -Original Message- From: Zeng, ZhichaoX Sent: Tuesday, April 19, 2022 7:06 PM To: dev@dpdk.org Cc: Yang, Qiming ; Wang, Haiyue ; m...@ashroe.eu; Zeng, ZhichaoX Subject: [DPDK v4] net/ixgbe: promote MDIO API From: Z

[PATCH v2 3/3] net/iavf: improve performance of Rx timestamp offload

2022-04-24 Thread Simei Su
In this patch, We use CPU ticks instead of HW register to determine whether low 32 bits timestamp has turned over. It can avoid requesting register value frequently and improve receiving performance. Signed-off-by: Wenjun Wu --- drivers/net/iavf/iavf.h| 1 + drivers/net/iavf/iavf_ethdev

[PATCH v2 2/3] net/iavf: enable Rx timestamp on Flex Descriptor

2022-04-24 Thread Simei Su
Dump Rx timestamp value into dynamic mbuf field by flex descriptor. This feature is turned on by dev config "enable-rx-timestamp". Currently, it's only supported under scalar path. Signed-off-by: Simei Su --- doc/guides/nics/features/iavf.ini | 1 + doc/guides/rel_notes/release_22_07.rst

[PATCH v2 1/3] common/iavf: support Rx timestamp in virtual channel

2022-04-24 Thread Simei Su
Add new ops and structures to support VF to support Rx timestamp on flex descriptor. "VIRTCHNL_OP_1588_PTP_GET_CAPS" ops is sent by the VF to request PTP capabilities and responded by the PF with capabilities enabled for that VF. "VIRTCHNL_OP_1588_PTP_GET_TIME" ops is sent by the VF to request th

[PATCH v2 0/3] net/iavf: support Rx timestamp on flex descriptor

2022-04-24 Thread Simei Su
[PATCH v2 1/3] add related ops and structure for Rx timestamp in virtual channel. [PATCH v2 2/3] add support for Rx timestamp on flex descriptor in driver. [PATCH v2 3/3] improve performance with Rx timestamp enabled. v2: * Add release notes and doc update. Simei Su (3): common/iavf: support