Re: [PATCH v2] usertools: add telemetry exporter

2024-04-22 Thread Anthony Harivel
Hi Robin, I've tested your patch and this is all good for me. The errors are better handled. The most common one is when the socket telemetry is closed and you get: 2024-04-19 15:22:00 ERROR 192.168.122.116 GET /metrics HTTP/1.1: telemetry socket not available Traceback (most recent call las

Re: 21.11.7 patches review and test

2024-04-22 Thread YangHang Liu
RedHat QE tested below 18 scenarios on RHEL 9.4 and didn't find any new dpdk issues. - - VM with device assignment(PF) throughput testing(1G hugepage size): PASS - VM with device assignment(PF) throughput testing(2M hugepage size) : PASS - VM with device assignment(VF) throughput

Re: [PATCH v8] ethdev: fix strict aliasing lead to link cannot be up

2024-04-22 Thread Ferruh Yigit
On 4/22/2024 7:38 AM, Chengwen Feng wrote: > Fix a problem introduced by a compiler upgrade (from gcc10 to gcc12.3), > which will lead the hns3 NIC can't link up. The root cause is strict > aliasing violation in rte_eth_linkstatus_set() with hns3 driver, see > [1] for more details. > > This commit

Re: [PATCH 2/6] crypto/ionic: add device and admin command handlers

2024-04-22 Thread Boyer, Andrew
On Apr 19, 2024, at 3:53 PM, Boyer, Andrew wrote: diff --git a/drivers/crypto/ionic/ionic_crypto_main.c b/drivers/crypto/ionic/ionic_crypto_main.c new file mode 100644 index 00..7b26080bd1 --- /dev/null +++ b/drivers/crypto/ionic/ionic_crypto_main.c @@ -0,0 +1,42 @@ +/* SPDX-License-Ide

[PATCH] eal/linux: enhanced error handling for affinity

2024-04-22 Thread Jianyue Wu (NSB)
Hello, Good day~ I hope this message finds you well. I am writing to submit a patch for consideration, which primarily adds enhanced error handling for affinity sets within the eal/linux of DPDK. Unfortunately, my current environment does not support git send-email, so I am sending this patch a

[PATCH] eal/linux: enhanced error handling for affinity

2024-04-22 Thread Ferruh Yigit
From: Jianyue Wu Improve the robustness of setting thread affinity in DPDK by adding detailed error logging. Changes: 1. Set `errno` to 0 before calling `pthread_setaffinity_np()` to ensure clean error status. 2. Check the return value of `pthread_setaffinity_np()` and log an error if the call f

Re: [PATCH] eal/linux: enhanced error handling for affinity

2024-04-22 Thread Ferruh Yigit
On 4/22/2024 2:23 PM, Jianyue Wu (NSB) wrote: > Hello, > >   > > Good day~ > > I hope this message finds you well. I am writing to submit a patch for > consideration, which primarily adds enhanced error handling for affinity > sets within the eal/linux of DPDK. Unfortunately, my current environm

[PATCH 0/3] Introduce UADK compression driver

2024-04-22 Thread Zhangfei Gao
Introduce a new compress 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 direct

[PATCH 1/3] compress/uadk: Introduce UADK compression driver

2024-04-22 Thread Zhangfei Gao
Introduce a new compression & decompression 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 shares the same page table between IOMMU and MMU. Thereby user ap

[PATCH 2/3] compress/uadk: support basic operations

2024-04-22 Thread Zhangfei Gao
Support the basic dev control operations: configure, close, start, stop, infos_get, and queue pairs operations, etc. Signed-off-by: Zhangfei Gao --- drivers/compress/uadk/uadk_compress_pmd.c | 325 +- .../compress/uadk/uadk_compress_pmd_private.h | 16 + 2 files changed, 330

[PATCH 3/3] compress/uadk: support burst enqueue/dequeue

2024-04-22 Thread Zhangfei Gao
This commit adds the burst enqueue and dequeue operations. Signed-off-by: Zhangfei Gao --- drivers/compress/uadk/uadk_compress_pmd.c | 88 ++- 1 file changed, 86 insertions(+), 2 deletions(-) diff --git a/drivers/compress/uadk/uadk_compress_pmd.c b/drivers/compress/uadk/uad

Re: [v14 1/3] docs: AF_XDP Device Plugin

2024-04-22 Thread Maryam Tahhan
On 19/04/2024 11:13, Ferruh Yigit wrote: On 4/8/2024 2:09 PM, Maryam Tahhan wrote: diff --git a/doc/guides/howto/af_xdp_cni.rst b/doc/guides/howto/af_xdp_cni.rst deleted file mode 100644 index a1a6d5b99c..00 --- a/doc/guides/howto/af_xdp_cni.rst +++ /dev/null @@ -1,253 +0,0 @@ -.. SPDX-L

Re: [PATCH 01/24] net/axgbe: remove use of comm_owned field

2024-04-22 Thread Ferruh Yigit
On 4/12/2024 1:52 PM, Venkat Kumar Ande wrote: > The comm_owned field can hide logic where double locking is attempted > and prevent multiple threads for the same device from accessing the > mutex properly. Remove the comm_owned field and use the mutex API > exclusively for gaining ownership. > >

Re: [RFC] fix semicolon at the end of RTE_LOG_REGISTER_DEFAULT

2024-04-22 Thread Stephen Hemminger
On Sat, 20 Apr 2024 09:48:24 +0200 Morten Brørup wrote: > > From: Stephen Hemminger [mailto:step...@networkplumber.org] > > Sent: Saturday, 20 April 2024 02.08 > > > > The macro RTE_LOG_REGISTER_DEFAULT emits code for an initialization > > function. If a driver (and most do) adds a semicolon aft

Re: [PATCH 04/24] net/axgbe: check mdio for non-zero ports and CL45 PHYs

2024-04-22 Thread Ferruh Yigit
On 4/12/2024 1:52 PM, Venkat Kumar Ande wrote: > The XGBE hardware has support for performing MDIO operations using an > MDIO command request. The driver mistakenly uses the mdio port address > as the MDIO command request device address instead of the MDIO command > request port address. Additional

[PATCH v5 0/9] latencystats: improve algorithms and tests

2024-04-22 Thread Stephen Hemminger
Latencystats uses variable length array and floating point when they are not necessary to acheive the same result. While testing also noticed that the code was computing wrong values on my test system, and that include files were missing. v5 - use scaled values for latency and jitter - add more

[PATCH v5 1/9] latencystats: replace use of VLA

2024-04-22 Thread Stephen Hemminger
The temporary array latencystats is not needed if the algorithm is converted into one pass. Signed-off-by: Stephen Hemminger Acked-by: Morten Brørup Acked-by: Tyler Retzlaff --- lib/latencystats/rte_latencystats.c | 31 +++-- 1 file changed, 16 insertions(+), 15 deletio

[PATCH v5 2/9] latencystats: handle fractional cycles per ns

2024-04-22 Thread Stephen Hemminger
The TSC frequency is not always an integral number of nanoseconds. For examples, cycles per nanoseconds on my test system is 2.8. Fix by using floating point where needed and calculate value once. Signed-off-by: Stephen Hemminger --- lib/latencystats/rte_latencystats.c | 17 ++--- 1

[PATCH v5 3/9] latencystats: do not use floating point

2024-04-22 Thread Stephen Hemminger
The cycle counts do not need to be stored as floating point. Instead keep track of latency in cycles, and convert to nanoseconds when read. Use scaled math with exponential Weighted Moving Average weight of .25 to avoid use of floating point for that. The average latency took too long to "warm up

[PATCH v5 4/9] latencystats: fix log messages

2024-04-22 Thread Stephen Hemminger
All messages that because of an error should be at log level NOTICE or above. Do not break log messages across lines. Reword message for the case where getting info about a port fails and it is skipped. Signed-off-by: Stephen Hemminger Acked-by: Tyler Retzlaff --- lib/latencystats/rte_latencyst

[PATCH v5 6/9] latencystats: enforce that unused callback function is NULL

2024-04-22 Thread Stephen Hemminger
ISO C does not allow casting function pointer to void *. Resolve by enforcing the reserved argument. The user_cb argument for rte_latencystats_init() was not implemented, and had to be NULL anyway. The log type is local to this function and therefore can be local to this file. Signed-off-by: Step

[PATCH v5 5/9] latencystats: update include files

2024-04-22 Thread Stephen Hemminger
Include what is used here. Signed-off-by: Stephen Hemminger --- lib/latencystats/rte_latencystats.c | 19 ++- 1 file changed, 14 insertions(+), 5 deletions(-) diff --git a/lib/latencystats/rte_latencystats.c b/lib/latencystats/rte_latencystats.c index c0ac60134f..bd8fde2f0c 100

[PATCH v5 7/9] latencystats: add metric for number of samples

2024-04-22 Thread Stephen Hemminger
Keeping track of the number of samples is useful when doing debug and testing to make sure that samples are actually happening. Signed-off-by: Stephen Hemminger --- lib/latencystats/rte_latencystats.c | 20 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/lib/l

[PATCH v5 9/9] test: add more latencystats tests

2024-04-22 Thread Stephen Hemminger
Look at the number of samples, min, max and average numbers to make sure they look correct. Forward for to make sure multiple samples are taken. Signed-off-by: Stephen Hemminger --- app/test/test_latencystats.c | 62 +--- 1 file changed, 50 insertions(+), 12 delet

[PATCH v5 8/9] test: use initialization in latencystats test

2024-04-22 Thread Stephen Hemminger
No need for loop and memset() here. Just use structure initialization. Remove unnecessary initializations. Signed-off-by: Stephen Hemminger --- app/test/test_latencystats.c | 22 +++--- 1 file changed, 7 insertions(+), 15 deletions(-) diff --git a/app/test/test_latencystats.c b

RE: [RFC] fix semicolon at the end of RTE_LOG_REGISTER_DEFAULT

2024-04-22 Thread Morten Brørup
> From: Stephen Hemminger [mailto:step...@networkplumber.org] > Sent: Monday, 22 April 2024 17.14 > > On Sat, 20 Apr 2024 09:48:24 +0200 > Morten Brørup wrote: > > > > From: Stephen Hemminger [mailto:step...@networkplumber.org] > > > Sent: Saturday, 20 April 2024 02.08 > > > > > > The macro RTE_

Re: [PATCH] eal/linux: enhanced error handling for affinity

2024-04-22 Thread Stephen Hemminger
On Mon, 22 Apr 2024 13:23:50 + "Jianyue Wu (NSB)" wrote: > +/* Function to convert cpu_set_t to a string. */ > +static void cpuset_to_string(const cpu_set_t *cpuset, > + char *cpus_str, size_t cpus_str_size) { > + int cpu; > + // Track the current position in the s

Re: [PATCH] eal/linux: enhanced error handling for affinity

2024-04-22 Thread Stephen Hemminger
On Mon, 22 Apr 2024 13:23:50 + "Jianyue Wu (NSB)" wrote: > + char cpus_str[RTE_MAX_LCORE + 1] = {'\0'}; > + char thread_name[RTE_MAX_THREAD_NAME_LEN] = {'\0'}; > + You don't need '\0' here, just doing { } will have same effect.

Re: [PATCH] eal/linux: enhanced error handling for affinity

2024-04-22 Thread Stephen Hemminger
On Mon, 22 Apr 2024 13:23:50 + "Jianyue Wu (NSB)" wrote: > + EAL_LOG(ERR, "Cannot set affinity for thread %s with cpus %s, " > + "ret: %d, errno: %d, error description: %s", > + thread_name, cpus_str, > + ret, errno, stre

[PATCH v1 0/5] ACC100 improvements and clean up

2024-04-22 Thread Hernan Vargas
This series targeting 24.07 removes unused/dead code, memory barrier improvements, cosmetic log changes. Hernan Vargas (5): baseband/acc: remove ACC100 unused code baseband/acc: remove ACC100 HARQ pruning baseband/acc: move memory barrier baseband/acc: improve error description baseband

[PATCH v1 1/5] baseband/acc: remove ACC100 unused code

2024-04-22 Thread Hernan Vargas
Remove dead code and unused function in ACC100 driver. Signed-off-by: Hernan Vargas --- drivers/baseband/acc/rte_acc100_pmd.c | 213 -- 1 file changed, 68 insertions(+), 145 deletions(-) diff --git a/drivers/baseband/acc/rte_acc100_pmd.c b/drivers/baseband/acc/rte_acc10

[PATCH v1 3/5] baseband/acc: move memory barrier

2024-04-22 Thread Hernan Vargas
Moving memory barrier so that dequeue thread can be in sync with enqueue thread. Signed-off-by: Hernan Vargas --- drivers/baseband/acc/acc_common.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/baseband/acc/acc_common.h b/drivers/baseband/acc/acc_common.h inde

[PATCH v1 4/5] baseband/acc: improve error description

2024-04-22 Thread Hernan Vargas
Remove dead code for error and update description of one error print. Signed-off-by: Hernan Vargas --- drivers/baseband/acc/rte_acc100_pmd.c | 19 +-- 1 file changed, 1 insertion(+), 18 deletions(-) diff --git a/drivers/baseband/acc/rte_acc100_pmd.c b/drivers/baseband/acc/rte_a

[PATCH v1 2/5] baseband/acc: remove ACC100 HARQ pruning

2024-04-22 Thread Hernan Vargas
HARQ pruning is not an ACC100 feature. Removing in effect dead code. Signed-off-by: Hernan Vargas --- drivers/baseband/acc/rte_acc100_pmd.c | 33 +-- 1 file changed, 6 insertions(+), 27 deletions(-) diff --git a/drivers/baseband/acc/rte_acc100_pmd.c b/drivers/baseband/a

[PATCH v1 5/5] baseband/acc: cosmetic log changes

2024-04-22 Thread Hernan Vargas
Minor cosmetic log change. No functional impact. Signed-off-by: Hernan Vargas --- drivers/baseband/acc/rte_acc100_pmd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/baseband/acc/rte_acc100_pmd.c b/drivers/baseband/acc/rte_acc100_pmd.c index 8ec521675f34..c0305e1e6

Re: [v14 1/3] docs: AF_XDP Device Plugin

2024-04-22 Thread Ferruh Yigit
On 4/22/2024 3:53 PM, Maryam Tahhan wrote: > On 19/04/2024 11:13, Ferruh Yigit wrote: >> On 4/8/2024 2:09 PM, Maryam Tahhan wrote: >>> diff --git a/doc/guides/howto/af_xdp_cni.rst >>> b/doc/guides/howto/af_xdp_cni.rst >>> deleted file mode 100644 >>> index a1a6d5b99c..00 >>> --- a/doc/guide

Re: [RFC] fix semicolon at the end of RTE_LOG_REGISTER_DEFAULT

2024-04-22 Thread Stephen Hemminger
On Mon, 22 Apr 2024 17:24:43 +0200 Morten Brørup wrote: > #define RTE_LOG_REGISTER_IMPL(type, name, level)\ > - int type; \ > + extern int type; >

RE: [RFC] fix semicolon at the end of RTE_LOG_REGISTER_DEFAULT

2024-04-22 Thread Morten Brørup
> From: Stephen Hemminger [mailto:step...@networkplumber.org] > Sent: Monday, 22 April 2024 18.20 > > On Mon, 22 Apr 2024 17:24:43 +0200 > Morten Brørup wrote: > > > #define RTE_LOG_REGISTER_IMPL(type, name, level) \ > > - int type;

Re: [PATCH v2] net/vmxnet3: fix a missing vmxnet3 register command

2024-04-22 Thread Ronak Doshi
Basically it will just provide incorrect information. With the enum being misaligned due to missing command, GET_DCR0_REG and GET_MAX_CAPABILITIES will just lead to incorrect commands being issued. Thanks, Ronak On Fri, Apr 19, 2024 at 1:35 AM Ferruh Yigit wrote: > On 4/18/2024 7:36 AM, Ronak

[PATCH v3] net/vmxnet3: fix a missing vmxnet3 register command

2024-04-22 Thread Ronak Doshi
Vmxnet3 uses capability registers to advertise the supported capabilities of UPT device. It uses DCR0_REG command register for this purpose. However, the register command enum misses one command which technically is not used by dpdk vmxnet3 driver yet. This can cause issue for commands added later.

[PATCH v3] MAINTAINERS: remove maintainers that bounce

2024-04-22 Thread Stephen Hemminger
Recent patch set for rte_memcpy, discovered that the some mail addresses could not be found. Signed-off-by: Stephen Hemminger Acked-by: Bruce Richardson --- v3 - remove lijan...@intel.com as well (suggested by Bruce) MAINTAINERS| 5 - dts/pyproject.toml | 1 - 2 files changed, 6 de

Re: [PATCH v3] MAINTAINERS: remove maintainers that bounce

2024-04-22 Thread Tyler Retzlaff
On Mon, Apr 22, 2024 at 11:39:07AM -0700, Stephen Hemminger wrote: > Recent patch set for rte_memcpy, discovered that the some > mail addresses could not be found. > > Signed-off-by: Stephen Hemminger > Acked-by: Bruce Richardson > --- Acked-by: Tyler Retzlaff

[PATCH v1 0/9] test-bbdev fixes and improvements for 24.07

2024-04-22 Thread Hernan Vargas
This series targets test-bbdev changes for 24.07. It includes test fixes, iter-max argument change (after deprecation notice in previous releases) and general test improvements. Hernan Vargas (9): test/bbdev: fix TB logic test/bbdev: fix MLD output size computation test/bbdev: fix interrupt

[PATCH v1 1/9] test/bbdev: fix TB logic

2024-04-22 Thread Hernan Vargas
Fix discrepancy in logic when using large fake mbuf. Fixes: fd96ef3787f1 ("test/bbdev: extend support for large TB") Cc: sta...@dpdk.org Signed-off-by: Hernan Vargas --- app/test-bbdev/test_bbdev_perf.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/test-bbdev/test_bb

[PATCH v1 2/9] test/bbdev: fix MLD output size computation

2024-04-22 Thread Hernan Vargas
For perf tests, the operation size for the MLD-TS was incorrect. Fixed so that the performance numbers are correct. Largely cosmetic only. Fixes: 95f192a40e35 ("test/bbdev: add MLD cases") Cc: sta...@dpdk.org Signed-off-by: Hernan Vargas --- app/test-bbdev/test_bbdev_perf.c | 10 -- 1 f

[PATCH v1 3/9] test/bbdev: fix interrupt tests

2024-04-22 Thread Hernan Vargas
Fix possible error with regards to setting the burst size from the enqueue thread. Fixes: b2e2aec3239e ("app/bbdev: enhance interrupt test") Cc: sta...@dpdk.org Signed-off-by: Hernan Vargas --- app/test-bbdev/test_bbdev_perf.c | 98 1 file changed, 49 insertions

[PATCH v1 4/9] test/bbdev: change iter-max argument

2024-04-22 Thread Hernan Vargas
-t --iter-max used for max number of iterations. -T --timeout used for test timeout value. Signed-off-by: Hernan Vargas --- app/test-bbdev/test-bbdev.py | 16 +--- 1 file changed, 5 insertions(+), 11 deletions(-) diff --git a/app/test-bbdev/test-bbdev.py b/app/test-bbdev/test-bbdev.

[PATCH v1 5/9] test/bbdev: improve timeout message format

2024-04-22 Thread Hernan Vargas
Print more info and format message for test timeouts. No functional impact. Signed-off-by: Hernan Vargas --- app/test-bbdev/test-bbdev.py | 22 ++ 1 file changed, 18 insertions(+), 4 deletions(-) diff --git a/app/test-bbdev/test-bbdev.py b/app/test-bbdev/test-bbdev.py index

[PATCH v1 6/9] test/bbdev: add soft output parsing capability

2024-04-22 Thread Hernan Vargas
Add vector parsing capability for soft output vectors. Signed-off-by: Hernan Vargas --- app/test-bbdev/test_bbdev_vector.c | 4 1 file changed, 4 insertions(+) diff --git a/app/test-bbdev/test_bbdev_vector.c b/app/test-bbdev/test_bbdev_vector.c index 42fa630041e9..b3e9d4bb7504 100644 ---

[PATCH v1 7/9] test/bbdev: check assumptions on fft window

2024-04-22 Thread Hernan Vargas
Add check for FFT window width. Signed-off-by: Hernan Vargas --- app/test-bbdev/test_bbdev_perf.c | 26 ++ app/test-bbdev/test_bbdev_vector.c | 14 ++ app/test-bbdev/test_bbdev_vector.h | 2 ++ 3 files changed, 38 insertions(+), 4 deletions(-) diff --git a

[PATCH v1 8/9] test/bbdev: update fft measurement output

2024-04-22 Thread Hernan Vargas
Update check for FFT measurement output to better account for tolerance. Signed-off-by: Hernan Vargas --- app/test-bbdev/test_bbdev_perf.c | 52 +++- 1 file changed, 51 insertions(+), 1 deletion(-) diff --git a/app/test-bbdev/test_bbdev_perf.c b/app/test-bbdev/test_b

[PATCH v1 9/9] test/bbdev: remove unnecessary line

2024-04-22 Thread Hernan Vargas
Remove unnecesary line of code. No functional impact. Signed-off-by: Hernan Vargas --- app/test-bbdev/test_bbdev.c | 1 - 1 file changed, 1 deletion(-) diff --git a/app/test-bbdev/test_bbdev.c b/app/test-bbdev/test_bbdev.c index cf224dca5d04..0bbce6ca923b 100644 --- a/app/test-bbdev/test_bbdev.

RE: [PATCH] eal/linux: enhanced error handling for affinity

2024-04-22 Thread Jianyue Wu (NSB)
Hello, Please disregard this email; I will use a different mailbox instead. Thank you~ Best regards, Dave From: Jianyue Wu (NSB) Sent: 2024年4月22日 21:24 To: 'roret...@linux.microsoft.com' ; 'tho...@monjalon.net' ; 'david.march...@redhat.com' Cc: 'dev@dpdk.org' Subject: [PATCH] eal/linux: enha

Re: AWS rx_missed errors on DPDK 21.11

2024-04-22 Thread Brandes, Shai
Hi, are you using the latest LTS? If so, all bug fixes were ported there by the stable branch maintainer. I will ask the aws team to check this and update. Can you please share your instance id and timeframe when the rx missed were observed, so we can look into our logs? All the Best! Shai בתארי