[PATCH] net/mlx5: fix raw encap validation

2024-10-26 Thread Gregory Etelson
In SWS, `mlx5_flow_dv_validate_action_raw_encap_decap` is called for flow action. The action validation checks for both size and data parameters. In HWS, `mlx5_flow_dv_validate_action_raw_encap_decap` is called for the action template and validates the action mask. The patch separates encap valid

[PATCH v4 00/13] replace strtok with reentrant version

2024-10-26 Thread Jie Hai
Multiple threads calling the same function may cause condition race issues, which often leads to abnormal behavior and can cause more serious vulnerabilities such as abnormal termination, denial of service, and compromised data integrity. This patchset replaces strtok with strtok_r in app, example

[PATCH v4 04/13] eventdev: replace strtok with reentrant version

2024-10-26 Thread Jie Hai
Multiple threads calling the same function may cause condition race issues, which often leads to abnormal behavior and can cause more serious vulnerabilities such as abnormal termination, denial of service, and compromised data integrity. The strtok() is non-reentrant, it is better to replace it w

[PATCH v4 02/13] eal: replace strtok with reentrant version

2024-10-26 Thread Jie Hai
Multiple threads calling the same function may cause condition race issues, which often leads to abnormal behavior and can cause more serious vulnerabilities such as abnormal termination, denial of service, and compromised data integrity. The strtok() is non-reentrant, it is better to replace it w

[PATCH v4 03/13] ethdev: replace strtok with reentrant version

2024-10-26 Thread Jie Hai
Multiple threads calling the same function may cause condition race issues, which often leads to abnormal behavior and can cause more serious vulnerabilities such as abnormal termination, denial of service, and compromised data integrity. The strtok() is non-reentrant, it is better to replace it w

[PATCH v4 01/13] dmadev: replace strtok with reentrant version

2024-10-26 Thread Jie Hai
Multiple threads calling the same function may cause condition race issues, which often leads to abnormal behavior and can cause more serious vulnerabilities such as abnormal termination, denial of service, and compromised data integrity. The strtok() is non-reentrant, it is better to replace it w

[PATCH v4 07/13] bus/fslmc: replace strtok with reentrant version

2024-10-26 Thread Jie Hai
Multiple threads calling the same function may cause condition race issues, which often leads to abnormal behavior and can cause more serious vulnerabilities such as abnormal termination, denial of service, and compromised data integrity. The strtok() is non-reentrant, it is better to replace it w

[PATCH v4 09/13] event/cnxk: replace strtok with reentrant version

2024-10-26 Thread Jie Hai
Multiple threads calling the same function may cause condition race issues, which often leads to abnormal behavior and can cause more serious vulnerabilities such as abnormal termination, denial of service, and compromised data integrity. The strtok() is non-reentrant, it is better to replace it w

[PATCH v4 08/13] common/cnxk: replace strtok with reentrant version

2024-10-26 Thread Jie Hai
Multiple threads calling the same function may cause condition race issues, which often leads to abnormal behavior and can cause more serious vulnerabilities such as abnormal termination, denial of service, and compromised data integrity. The strtok() is non-reentrant, it is better to replace it w

[PATCH v4 13/13] devtools: check for some reentrant function

2024-10-26 Thread Jie Hai
Multiple threads calling the same function may cause condition race issues, which often leads to abnormal behavior and can cause more serious vulnerabilities such as abnormal termination, denial of service, and compromised data integrity. This patch adds check in checkpatches.sh for strtok, which

[PATCH v4 06/13] telemetry: replace strtok with reentrant version

2024-10-26 Thread Jie Hai
Multiple threads calling the same function may cause condition race issues, which often leads to abnormal behavior and can cause more serious vulnerabilities such as abnormal termination, denial of service, and compromised data integrity. The strtok() is non-reentrant, it is better to replace it w

[PATCH v4 05/13] security: replace strtok with reentrant version

2024-10-26 Thread Jie Hai
Multiple threads calling the same function may cause condition race issues, which often leads to abnormal behavior and can cause more serious vulnerabilities such as abnormal termination, denial of service, and compromised data integrity. The strtok() is non-reentrant, it is better to replace it w

[PATCH v4 10/13] net/ark: replace strtok with reentrant version

2024-10-26 Thread Jie Hai
Multiple threads calling the same function may cause condition race issues, which often leads to abnormal behavior and can cause more serious vulnerabilities such as abnormal termination, denial of service, and compromised data integrity. The strtok() is non-reentrant, it is better to replace it w

[PATCH v4 11/13] raw/cnxk_gpio: replace strtok with reentrant version

2024-10-26 Thread Jie Hai
Multiple threads calling the same function may cause condition race issues, which often leads to abnormal behavior and can cause more serious vulnerabilities such as abnormal termination, denial of service, and compromised data integrity. The strtok() is non-reentrant, it is better to replace it w

[PATCH v4 12/13] net/cnxk: replace strtok with reentrant version

2024-10-26 Thread Jie Hai
Multiple threads calling the same function may cause condition race issues, which often leads to abnormal behavior and can cause more serious vulnerabilities such as abnormal termination, denial of service, and compromised data integrity. The strtok() is non-reentrant, it is better to replace it w

[PATCH] net/vmxnet3: Fix vmxnet3 NULL pointer deref after configuration failure

2024-10-26 Thread Roger B Melton
Problem: If vxmnet3_dev_configure() fails, applications may call vmxnet3_dev_close(). If the failure occurs before the vmxnet3 hw->shared structure is allocated the close will lead to a segv. Root Cause: This crash is due to incorrect adapter_stopped state in the vmxnet3 dev_private structure. W

[PATCH v16 01/14] config: add zsda device number

2024-10-26 Thread Hanxiao Li
Add the number of zsda devices. Signed-off-by: Hanxiao Li --- config/rte_config.h | 4 1 file changed, 4 insertions(+) diff --git a/config/rte_config.h b/config/rte_config.h index dd7bb0d35b..e1e85b3291 100644 --- a/config/rte_config.h +++ b/config/rte_config.h @@ -117,6 +117,10 @@ #defin

[PATCH v16 08/14] compress/zsda: add compression algo match

2024-10-26 Thread Hanxiao Li
ADD compression alog match. Signed-off-by: Hanxiao Li --- drivers/common/zsda/meson.build | 2 +- drivers/compress/zsda/zsda_comp.c | 34 +++ drivers/compress/zsda/zsda_comp.h | 23 + 3 files changed, 58 insertions(+), 1 deletion(-) create mode

[PATCH v16 06/14] common/zsda: configure the dequeue datapath

2024-10-26 Thread Hanxiao Li
Add dequeue datapath for zsda. Signed-off-by: Hanxiao Li --- drivers/common/zsda/zsda_qp.c | 56 +++ drivers/common/zsda/zsda_qp.h | 1 + 2 files changed, 57 insertions(+) diff --git a/drivers/common/zsda/zsda_qp.c b/drivers/common/zsda/zsda_qp.c index b884352ea

[PATCH v16 12/14] crypto/zsda: add crypto algo match

2024-10-26 Thread Hanxiao Li
Add crypto algo match. Signed-off-by: Hanxiao Li --- drivers/common/zsda/meson.build | 2 +- drivers/crypto/zsda/zsda_sym.c | 52 + drivers/crypto/zsda/zsda_sym.h | 17 +++ 3 files changed, 70 insertions(+), 1 deletion(-) create mode 100644 drivers/cry

[PATCH v17 14/14] app/test: add cryptodev test for zsda

2024-10-26 Thread Hanxiao Li
Add cryptodev test for zsda. Signed-off-by: Hanxiao Li --- app/test/test_cryptodev.c | 7 +++ app/test/test_cryptodev.h | 1 + doc/guides/cryptodevs/zsda.rst | 6 ++ 3 files changed, 14 insertions(+) diff --git a/app/test/test_cryptodev.c b/app/test/test_cryptodev.c index c846

[PATCH v16 05/14] common/zsda: configure the enqueue datapath

2024-10-26 Thread Hanxiao Li
Add enqueue datapath for zsda. Signed-off-by: Hanxiao Li --- drivers/common/zsda/zsda_qp.c | 105 ++ drivers/common/zsda/zsda_qp.h | 2 + 2 files changed, 107 insertions(+) diff --git a/drivers/common/zsda/zsda_qp.c b/drivers/common/zsda/zsda_qp.c index 2a85d07

Re: [PATCH v2 1/2] contigmem: support including mapped buffers in core dump

2024-10-26 Thread Lewis Donzis
Is the extra control necessary, i.e., why not just always do this and let the EAL option control whether the pages get dumped? - On Oct 25, 2024, at 3:26 PM, Dmitry Kozlyuk dmitry.kozl...@gmail.com wrote: > It was impossible to include mapped contigmem buffers in core dump. > Add hw.contigm

[PATCH v17 08/14] compress/zsda: add compression algo match

2024-10-26 Thread Hanxiao Li
Add compression algo match. Signed-off-by: Hanxiao Li --- drivers/common/zsda/meson.build | 2 +- drivers/compress/zsda/zsda_comp.c | 34 +++ drivers/compress/zsda/zsda_comp.h | 23 + 3 files changed, 58 insertions(+), 1 deletion(-) create mode

[PATCH v17 05/14] common/zsda: configure the enqueue datapath

2024-10-26 Thread Hanxiao Li
Add enqueue datapath for zsda. Signed-off-by: Hanxiao Li --- drivers/common/zsda/zsda_qp.c | 105 ++ drivers/common/zsda/zsda_qp.h | 2 + 2 files changed, 107 insertions(+) diff --git a/drivers/common/zsda/zsda_qp.c b/drivers/common/zsda/zsda_qp.c index 2a85d07

[PATCH v17 13/14] crypto/zsda: process wqe and cqe

2024-10-26 Thread Hanxiao Li
Process wqe and cqe of cryptodev Signed-off-by: Hanxiao Li --- drivers/crypto/zsda/zsda_sym.c | 221 + drivers/crypto/zsda/zsda_sym.h | 32 + 2 files changed, 253 insertions(+) diff --git a/drivers/crypto/zsda/zsda_sym.c b/drivers/crypto/zsda/zsda_sym.c inde

[PATCH v17 10/14] crypto/zsda: initialize cryptodev of zsda

2024-10-26 Thread Hanxiao Li
Initialize cryptodev of zsda and add capabilities. Signed-off-by: Hanxiao Li --- MAINTAINERS | 1 + doc/guides/cryptodevs/features/zsda.ini | 44 ++ doc/guides/cryptodevs/zsda.rst | 22 + doc/guides/rel_notes/release_24_11.rst | 5 + dr

[PATCH v17 11/14] crypto/zsda: configure session

2024-10-26 Thread Hanxiao Li
Configure session. Signed-off-by: Hanxiao Li --- drivers/common/zsda/meson.build| 2 +- drivers/crypto/zsda/zsda_sym_session.c | 490 + drivers/crypto/zsda/zsda_sym_session.h | 83 + 3 files changed, 574 insertions(+), 1 deletion(-) create mode 100644 driv

[PATCH v17 12/14] crypto/zsda: add crypto algo match

2024-10-26 Thread Hanxiao Li
Add crypto algo match. Signed-off-by: Hanxiao Li --- drivers/common/zsda/meson.build | 2 +- drivers/crypto/zsda/zsda_sym.c | 52 + drivers/crypto/zsda/zsda_sym.h | 17 +++ 3 files changed, 70 insertions(+), 1 deletion(-) create mode 100644 drivers/cry

[PATCH v17 04/14] common/zsda: configure queue operation

2024-10-26 Thread Hanxiao Li
Add queue operations for zsda. Signed-off-by: Hanxiao Li --- drivers/common/zsda/zsda_qp.c | 438 ++ drivers/common/zsda/zsda_qp.h | 131 ++ 2 files changed, 569 insertions(+) diff --git a/drivers/common/zsda/zsda_qp.c b/drivers/common/zsda/zsda_qp.c inde

[PATCH v17 09/14] compress/zsda: process wqe and cqe of compressdev

2024-10-26 Thread Hanxiao Li
Process wqe and cqe of compressdev. Signed-off-by: Hanxiao Li --- doc/guides/compressdevs/features/zsda.ini | 8 + doc/guides/cryptodevs/zsda.rst| 6 + drivers/compress/zsda/zsda_comp.c | 357 ++ drivers/compress/zsda/zsda_comp.h | 30 ++ 4 fi

[PATCH v16 11/14] crypto/zsda: configure session

2024-10-26 Thread Hanxiao Li
Configure session. Signed-off-by: Hanxiao Li --- drivers/common/zsda/meson.build| 2 +- drivers/crypto/zsda/zsda_sym_session.c | 490 + drivers/crypto/zsda/zsda_sym_session.h | 83 + 3 files changed, 574 insertions(+), 1 deletion(-) create mode 100644 driv

[PATCH v16 14/14] app/test: add cryptodev test for zsda

2024-10-26 Thread Hanxiao Li
Add cryptodev test for zsda. Signed-off-by: Hanxiao Li --- app/test/test_cryptodev.c | 7 +++ app/test/test_cryptodev.h | 1 + doc/guides/cryptodevs/zsda.rst | 6 ++ 3 files changed, 14 insertions(+) diff --git a/app/test/test_cryptodev.c b/app/test/test_cryptodev.c index c846

[PATCH v16 10/14] crypto/zsda: initialize cryptodev of zsda

2024-10-26 Thread Hanxiao Li
Initialize cryptodev of zsda and add capabilities. Signed-off-by: Hanxiao Li --- MAINTAINERS | 1 + doc/guides/cryptodevs/features/zsda.ini | 44 ++ doc/guides/cryptodevs/zsda.rst | 22 + doc/guides/rel_notes/release_24_11.rst | 5 + dr

Re: [PATCH v2 2/2] doc: provide Meson version that works

2024-10-26 Thread Dmitry Kozlyuk
2024-10-25 12:30 (UTC-0700), Andre Muezerie: > Signed-off-by: Andre Muezerie > --- > doc/guides/windows_gsg/build_dpdk.rst | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/doc/guides/windows_gsg/build_dpdk.rst > b/doc/guides/windows_gsg/build_dpdk.rst > index c5fad81..76

Re: [PATCH v2 1/2] doc: enhanced build instructions on Windows

2024-10-26 Thread Dmitry Kozlyuk
2024-10-25 12:30 (UTC-0700), Andre Muezerie: > -Open a 'Developer PowerShell for VS 2022' prompt from the start menu. > +Open a 'Visual Studio Developer Command Prompt'. When doing so, it's > recommended > +to specify the Target Architecture (-arch) and the Host Architecture > (-host_arch). It s

Re: [PATCH v9 1/6] power: refactor core power management library

2024-10-26 Thread lihuisong (C)
在 2024/10/26 13:22, Tummala, Sivaprasad 写道: [AMD Official Use Only - AMD Internal Distribution Only] Hi Huisong, -Original Message- From: lihuisong (C) Sent: Saturday, October 26, 2024 8:37 AM To: Tummala, Sivaprasad Cc: dev@dpdk.org; david.h...@intel.com; anatoly.bura...@intel.com

[PATCH v16 09/14] compress/zsda: process wqe and cqe of compressdev

2024-10-26 Thread Hanxiao Li
Process wqe and cqe of compressdev. Signed-off-by: Hanxiao Li --- doc/guides/compressdevs/features/zsda.ini | 8 + doc/guides/cryptodevs/zsda.rst| 6 + drivers/compress/zsda/zsda_comp.c | 357 ++ drivers/compress/zsda/zsda_comp.h | 30 ++ 4 fi

[PATCH v16 07/14] compress/zsda: initializate compressdev

2024-10-26 Thread Hanxiao Li
Initializate compressdev. Signed-off-by: Hanxiao Li --- MAINTAINERS| 1 + doc/guides/compressdevs/zsda.rst | 17 + doc/guides/rel_notes/release_24_11.rst | 7 + drivers/common/zsda/meson.build| 10 + drivers/compress/zsda/zsda_comp_pmd.c | 463 +++

[PATCH v17 07/14] compress/zsda: initialize compressdev

2024-10-26 Thread Hanxiao Li
initialize compressdev. Signed-off-by: Hanxiao Li --- MAINTAINERS| 1 + doc/guides/compressdevs/zsda.rst | 17 + doc/guides/rel_notes/release_24_11.rst | 7 + drivers/common/zsda/meson.build| 10 + drivers/compress/zsda/zsda_comp_pmd.c | 463 +

[PATCH v16 03/14] common/zsda: add functions to operate hardware queue

2024-10-26 Thread Hanxiao Li
Add functions to operate hardware queue for zsda. Signed-off-by: Hanxiao Li --- drivers/common/zsda/meson.build | 1 + drivers/common/zsda/zsda_qp.c | 272 drivers/common/zsda/zsda_qp.h | 15 ++ 3 files changed, 288 insertions(+) create mode 100644 driver

[PATCH v16 13/14] crypto/zsda: process wqe and cqe

2024-10-26 Thread Hanxiao Li
Process wqe and cqe of cryptodev Signed-off-by: Hanxiao Li --- drivers/crypto/zsda/zsda_sym.c | 221 + drivers/crypto/zsda/zsda_sym.h | 32 + 2 files changed, 253 insertions(+) diff --git a/drivers/crypto/zsda/zsda_sym.c b/drivers/crypto/zsda/zsda_sym.c inde

[PATCH v17 00/14] drivers/zsda: introduce zsda drivers

2024-10-26 Thread Hanxiao Li
v17: - fix some spelling errors v16: - resplit patches. - complete documentation which is yet there in that patch. - every patch should compile without any warnings or errors. - delete unused comments. v15: - split to more patches. v14: - Uniform Byte Alignment. v13: - resolve some comiler warn

[PATCH v17 01/14] config: add zsda device number

2024-10-26 Thread Hanxiao Li
Add the number of zsda devices. Signed-off-by: Hanxiao Li --- config/rte_config.h | 4 1 file changed, 4 insertions(+) diff --git a/config/rte_config.h b/config/rte_config.h index dd7bb0d35b..e1e85b3291 100644 --- a/config/rte_config.h +++ b/config/rte_config.h @@ -117,6 +117,10 @@ #defin

[PATCH v16 00/14] drivers/zsda: introduce zsda drivers

2024-10-26 Thread Hanxiao Li
v16: - resplit patches. - complete documentation which is yet there in that patch. - every patch should compile without any warnings or errors. - delete unused comments. v15: - split to more patches. v14: - Uniform Byte Alignment. v13: - resolve some comiler warnings that are being suppressed.

[PATCH v16 04/14] common/zsda: configure queue operation

2024-10-26 Thread Hanxiao Li
Add queue operations for zsda. Signed-off-by: Hanxiao Li --- drivers/common/zsda/zsda_qp.c | 438 ++ drivers/common/zsda/zsda_qp.h | 131 ++ 2 files changed, 569 insertions(+) diff --git a/drivers/common/zsda/zsda_qp.c b/drivers/common/zsda/zsda_qp.c inde

Re: [PATCH v7 5/9] net/zxdh: add msg chan enable implementation

2024-10-26 Thread Thomas Monjalon
22/10/2024 14:20, Junlong Wang: > +enum MSG_VEC { > +ZXDH_MSIX_FROM_PFVF = ZXDH_MSIX_INTR_MSG_VEC_BASE, > +ZXDH_MSIX_FROM_MPF, > +ZXDH_MSIX_FROM_RISCV, > +ZXDH_MSG_VEC_NUM, > +}; > + > enum BAR_MSG_RTN { > ZXDH_BAR_MSG_OK = 0, > ZXDH_BAR_MSG_ERR_MSGID, Again these enums

[PATCH v17 06/14] common/zsda: configure the dequeue datapath

2024-10-26 Thread Hanxiao Li
Add dequeue datapath for zsda. Signed-off-by: Hanxiao Li --- drivers/common/zsda/zsda_qp.c | 56 +++ drivers/common/zsda/zsda_qp.h | 1 + 2 files changed, 57 insertions(+) diff --git a/drivers/common/zsda/zsda_qp.c b/drivers/common/zsda/zsda_qp.c index b884352ea

[PATCH v17 03/14] common/zsda: add functions to operate hardware queue

2024-10-26 Thread Hanxiao Li
Add functions to operate hardware queue for zsda. Signed-off-by: Hanxiao Li --- drivers/common/zsda/meson.build | 1 + drivers/common/zsda/zsda_qp.c | 272 drivers/common/zsda/zsda_qp.h | 15 ++ 3 files changed, 288 insertions(+) create mode 100644 driver

Re: [PATCH v4 03/13] ethdev: replace strtok with reentrant version

2024-10-26 Thread Stephen Hemminger
On Sat, 26 Oct 2024 18:14:41 +0800 Jie Hai wrote: > Multiple threads calling the same function may cause condition > race issues, which often leads to abnormal behavior and can cause > more serious vulnerabilities such as abnormal termination, denial > of service, and compromised data integrity.

Re: [PATCH v4 13/13] devtools: check for some reentrant function

2024-10-26 Thread Stephen Hemminger
On Sat, 26 Oct 2024 18:14:51 +0800 Jie Hai wrote: > diff --git a/devtools/checkpatches.sh b/devtools/checkpatches.sh > index d860f190457e..8c3d32d8e552 100755 > --- a/devtools/checkpatches.sh > +++ b/devtools/checkpatches.sh > @@ -145,6 +145,14 @@ check_forbidden_additions() { # >

Re: [PATCH v4 09/13] event/cnxk: replace strtok with reentrant version

2024-10-26 Thread Stephen Hemminger
On Sat, 26 Oct 2024 18:14:47 +0800 Jie Hai wrote: > Multiple threads calling the same function may cause condition > race issues, which often leads to abnormal behavior and can cause > more serious vulnerabilities such as abnormal termination, denial > of service, and compromised data integrity.