[PATCH] usertools/devbind: add ODM DMA device

2024-04-17 Thread Anoob Joseph
Add support for ODM DMA device in devbind. Signed-off-by: Anoob Joseph Signed-off-by: Gowrishankar Muthukrishnan Signed-off-by: Vidya Sagar Velumuri --- usertools/dpdk-devbind.py | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/usertools/dpdk-devbind.py b/usertools/dpdk-

Re: [PATCH] usertools/devbind: add ODM DMA device

2024-04-17 Thread Robin Jarry
Anoob Joseph, Apr 17, 2024 at 09:11: Add support for ODM DMA device in devbind. Signed-off-by: Anoob Joseph Signed-off-by: Gowrishankar Muthukrishnan Signed-off-by: Vidya Sagar Velumuri Acked-by: Robin Jarry

[RFC 0/2] ethdev: update GENEVE option item structure

2024-04-17 Thread Michael Baum
The "rte_flow_item_geneve_opt" structure describes the GENEVE TLV option header according to RFC 8926 [1]: struct rte_flow_item_geneve_opt { rte_be16_t option_class; uint8_t option_type; uint8_t option_len; uint32_t *data; }; The "option_len" field is used for two

[RFC 1/2] ethdev: fix GENEVE option item conversion

2024-04-17 Thread Michael Baum
The "rte_flow_conv()" function, enables, among other things, to copy item list. For GENEVE option item, the function copies it without considering deep copy. It copies the "data" pointer without copying the pointed values. This patch adds deep copy for after regular copy. Fixes: 2b4c72b4d10d ("e

[RFC 2/2] ethdev: add data size field to GENEVE option item

2024-04-17 Thread Michael Baum
The "rte_flow_item_geneve_opt" structure has field for option length. This field has 2 different usages which might limit each other: 1. field to matching with value/mask. 2. descriptor for data array size. This patch adds a new field "data_array_size" into "rte_flow_item_geneve_opt" structure

[PATCH v2 0/7] Add ODM DMA device

2024-04-17 Thread Anoob Joseph
Add Odyssey ODM DMA device. This PMD abstracts ODM hardware unit on Odyssey SoC which can perform mem to mem copies. The hardware unit can support upto 32 queues (vchan) and 16 VFs. It supports 'fill' operation with specific values. It also supports SG mode of operation with upto 4 src pointers an

[PATCH v2 1/7] dma/odm: add framework for ODM DMA device

2024-04-17 Thread Anoob Joseph
Add framework for Odyssey ODM DMA device. Signed-off-by: Anoob Joseph Signed-off-by: Gowrishankar Muthukrishnan Signed-off-by: Vidya Sagar Velumuri --- MAINTAINERS | 6 +++ drivers/dma/meson.build | 1 + drivers/dma/odm/meson.build | 14 +++ drivers/dma/odm/odm.h

[PATCH v2 2/7] dma/odm: add hardware defines

2024-04-17 Thread Anoob Joseph
Add ODM registers and structures. Add mailbox structs as well. Signed-off-by: Anoob Joseph Signed-off-by: Gowrishankar Muthukrishnan Signed-off-by: Vidya Sagar Velumuri --- drivers/dma/odm/odm.h | 116 + drivers/dma/odm/odm_priv.h | 49

[PATCH v2 3/7] dma/odm: add dev init and fini

2024-04-17 Thread Anoob Joseph
From: Gowrishankar Muthukrishnan Add ODM device init and fini. Signed-off-by: Anoob Joseph Signed-off-by: Gowrishankar Muthukrishnan Signed-off-by: Vidya Sagar Velumuri --- drivers/dma/odm/meson.build | 2 +- drivers/dma/odm/odm.c| 97 drivers/d

[PATCH v2 5/7] dma/odm: add stats

2024-04-17 Thread Anoob Joseph
From: Gowrishankar Muthukrishnan Add DMA dev stats. Signed-off-by: Anoob Joseph Signed-off-by: Gowrishankar Muthukrishnan Signed-off-by: Vidya Sagar Velumuri --- drivers/dma/odm/odm_dmadev.c | 63 ++-- 1 file changed, 61 insertions(+), 2 deletions(-) diff --g

[PATCH v2 4/7] dma/odm: add device ops

2024-04-17 Thread Anoob Joseph
From: Gowrishankar Muthukrishnan Add DMA device control ops. Signed-off-by: Anoob Joseph Signed-off-by: Gowrishankar Muthukrishnan Signed-off-by: Vidya Sagar Velumuri --- drivers/dma/odm/odm.c| 144 ++- drivers/dma/odm/odm.h| 58 ++

[PATCH v2 6/7] dma/odm: add copy and copy sg ops

2024-04-17 Thread Anoob Joseph
From: Vidya Sagar Velumuri Add ODM copy and copy SG ops. Signed-off-by: Anoob Joseph Signed-off-by: Gowrishankar Muthukrishnan Signed-off-by: Vidya Sagar Velumuri --- drivers/dma/odm/odm_dmadev.c | 236 +++ 1 file changed, 236 insertions(+) diff --git a/drive

[PATCH v2 7/7] dma/odm: add remaining ops

2024-04-17 Thread Anoob Joseph
From: Vidya Sagar Velumuri Add all remaining ops such as fill, burst_capacity etc. Also update the documentation. Signed-off-by: Anoob Joseph Signed-off-by: Gowrishankar Muthukrishnan Signed-off-by: Vidya Sagar Velumuri --- MAINTAINERS | 1 + doc/guides/dmadevs/index.rst |

Re: [PATCH 5/5] drivers/net: use RTE_DIM

2024-04-17 Thread Ferruh Yigit
On 4/16/2024 6:32 PM, Stephen Hemminger wrote: > On Tue, 16 Apr 2024 17:29:25 +0100 > Ferruh Yigit wrote: > >> On 4/16/2024 4:19 PM, Stephen Hemminger wrote: >>> Use RTE_DIM instead of computing directly with sizeof. >>> Patch automatically generated via cocci/rte_dim.cocci. >>> Code in base/ sub

[PATCH v3 1/2] eventdev/dma: reorganize event DMA ops

2024-04-17 Thread pbhagavatula
From: Pavan Nikhilesh Re-organize event DMA ops structure to allow holding source and destination pointers without the need for additional memory, the mempool allocating memory for rte_event_dma_adapter_ops can size the structure to accommodate all the needed source and destination pointers. Add

[PATCH v3 2/2] dma/cnxk: remove completion pool

2024-04-17 Thread pbhagavatula
From: Pavan Nikhilesh Use DMA ops to store metadata, remove use of completion pool. Signed-off-by: Pavan Nikhilesh Acked-by: Vamsi Attunuru --- drivers/dma/cnxk/cnxk_dmadev.c | 53 ++- drivers/dma/cnxk/cnxk_dmadev.h | 24 +-- drivers/dma/cnxk/cnxk_dmadev_fp

[PATCH] lib/vhost: add flag for async connection in client mode

2024-04-17 Thread Ушков Даниил
This patch introduces a new flag RTE_VHOST_USER_ASYNC_CONNECT, which in combination with the flag RTE_VHOST_USER_CLIENT makes rte_vhost_driver_start connect asynchronously to the vhost server. Signed-off-by: Daniil Ushkov --- lib/vhost/rte_vhost.h | 1 + lib/vhost/socket.c| 28 +

[PATCH v2] lib/vhost: add flag for async connection in client mode

2024-04-17 Thread Ушков Даниил
This patch introduces a new flag RTE_VHOST_USER_ASYNC_CONNECT, which in combination with the flag RTE_VHOST_USER_CLIENT makes rte_vhost_driver_start connect asynchronously to the vhost server. Signed-off-by: Ушков Даниил --- Fixes: 1. Fix warning about the name in signature. 2. Fix warning about

Re: [PATCH] app/testpmd: handle IEEE1588 init fail

2024-04-17 Thread huangdengdui
On 2024/4/9 10:50, Stephen Hemminger wrote: > On Tue, 9 Apr 2024 10:06:01 +0800 > huangdengdui wrote: > >> On 2024/4/8 16:45, Ferruh Yigit wrote: >>> On 4/8/2024 6:52 AM, huangdengdui wrote: On 2024/4/6 0:44, Stephen Hemminger wrote: > On Sat, 30 Mar 2024 15:44:09 +0800

[PATCH] devtools: fix version variable not initialized

2024-04-17 Thread Dengdui Huang
The version variable is not initialized. Therefore, if the -V option is not specified, the value of $version is obtained from the context, which may cause the version map parsing failure. Fixes: 6edec7f202ac ("devtools: list symbols by version") Cc: sta...@dpdk.org Signed-off-by: Dengdui Huang -

Re: [PATCH] app/test: fix LACP handshake overtime

2024-04-17 Thread Ferruh Yigit
On 8/18/2022 6:43 AM, Ke Zhang wrote: > Increase the loop count so that there is a longer > threshold time for the LACP handshake process. > > Fixes: 5e41ab250dfa ("app/test: unit tests for bonding mode 4") > Cc: sta...@dpdk.org > > Signed-off-by: Ke Zhang > Patch seems to fix unit test where L

RE: [PATCH v1] crypto: fix build issues on crypto callbacks macro undefined

2024-04-17 Thread Power, Ciara
> -Original Message- > From: Kundapura, Ganapati > Sent: Tuesday, April 16, 2024 9:12 AM > To: dev@dpdk.org > Cc: Gujjar, Abhinandan S ; Power, Ciara > ; gak...@marvell.com; fanzhang@gmail.com > Subject: [PATCH v1] crypto: fix build issues on crypto callbacks macro > undefined > >

RE: 22.11.5 patches review and test

2024-04-17 Thread Ali Alnubani
> -Original Message- > From: luca.bocca...@gmail.com > Sent: Thursday, April 4, 2024 2:11 AM > To: sta...@dpdk.org > Cc: dev@dpdk.org; Abhishek Marathe ; > Ali Alnubani ; benjamin.wal...@intel.com; David > Christensen ; Hemant Agrawal > ; Ian Stokes ; Jerin Jacob > ; John McNamara ; Ju- >

Re: [PATCH 1/5] dts: fix InteractiveShell command prompt filtering

2024-04-17 Thread Juraj Linkeš
On Tue, Apr 16, 2024 at 2:12 PM Luca Vizzarro wrote: > > Thank you for your review Juraj! > > On 16/04/2024 09:40, Juraj Linkeš wrote: > > >> When sending a command using an instance of InteractiveShell the output > >> is meant to filter out the leading shell prompt. The filtering logic is > >> pr

Re: [PATCH v2] net/bonding: failover of LACP with mode 4 takes long time

2024-04-17 Thread Ferruh Yigit
On 4/16/2024 4:44 PM, Ferruh Yigit wrote: > On 6/6/2022 3:34 PM, Gaoxiang Liu wrote: >> When the primary port of bond slaves with bond mode 4 linked down, >> the system id of the other slave ports channged. >> It may cause some switches to renegotiate, >> and the process takes a few seconds. It is

Re: [PATCH 2/5] dts: skip first line of send_command output

2024-04-17 Thread Juraj Linkeš
On Tue, Apr 16, 2024 at 2:15 PM Luca Vizzarro wrote: > > On 16/04/2024 09:48, Juraj Linkeš wrote: > > Oh, the first commit message was confusing. It said leading prompt > > which I understood to be the first prompt (the one with the command). > > I see that this commit actually addresses what I th

Re: [PATCH 4/5] dts: add `show port info` command to TestPmdShell

2024-04-17 Thread Juraj Linkeš
On Tue, Apr 16, 2024 at 2:24 PM Luca Vizzarro wrote: > > On 16/04/2024 10:03, Juraj Linkeš wrote: > >> +@dataclass > >> +class TestPmdPort(TextParser): > > > > This and the classes above are missing docstrings. > > Ack. > > >> @@ -225,6 +664,38 @@ def set_forward_mode(self, mode: > >> TestPmdForw

Re: [PATCH] drivers: remove compile-time option for IEEE 1588

2024-04-17 Thread Ferruh Yigit
On 11/3/2023 12:08 AM, Ferruh Yigit wrote: > On 11/2/2023 10:17 PM, Thomas Monjalon wrote: >> 02/11/2023 22:21, Ajit Khaparde: >>> On Thu, Nov 2, 2023 at 2:13 PM Ferruh Yigit wrote: On 6/25/2023 4:45 PM, Thomas Monjalon wrote: > 23/06/2023 16:00, Ferruh Yigit: >> On 2/3/2023 1:28 PM,

[PATCH] lib/hash: setting the maximum reclamation size

2024-04-17 Thread Abdullah Ömer Yamaç
In the previous implementation, the maximum reclamation size was set to RTE_HASH_RCU_DQ_RECLAIM_MAX and it was not configurable. This patch uses the configuration argument to set the maximum reclamation size. Fixes: 769b2de7fb52 ("hash: implement RCU resources reclamation") Cc: dharmik.thak...@arm

Re: [PATCH v3] dts: Change hugepage runtime config to 2MB Exclusively

2024-04-17 Thread Juraj Linkeš
Don't forget to run the ../devtools/dts-check-format.sh script, it found one issue: framework/testbed_model/os_session.py:351: [D] D417 Missing argument descriptions in the docstring [pydocstyle] On Tue, Apr 16, 2024 at 8:18 PM Nicholas Pratte wrote: > > The previous implementation configures and

Re: [PATCH 1/5] dts: fix InteractiveShell command prompt filtering

2024-04-17 Thread Luca Vizzarro
On 17/04/2024 14:06, Juraj Linkeš wrote: Actually, filtering out the last prompt is fine. I got this mixed up with processing the last prompt. We must process the last prompt, but we don't need to print it (and there's not much reason to do so). Yeah, my confusion was about displaying the last

Re: [PATCH 4/5] dts: add `show port info` command to TestPmdShell

2024-04-17 Thread Luca Vizzarro
On 17/04/2024 14:22, Juraj Linkeš wrote: I agree that it looks much better. I gave it a first attempt to come up with a regular expression that is not too complicated and is able to match blocks individually. I've noticed that blocks start with: \n* Infos for port X but

Re: [PATCH 4/5] dts: add `show port info` command to TestPmdShell

2024-04-17 Thread Luca Vizzarro
On 17/04/2024 15:25, Luca Vizzarro wrote: On 17/04/2024 14:22, Juraj Linkeš wrote: I'll experiment with some look ahead constructs. The easiest solution is to match everything that is not * ([^*]+) but can we be certain that there won't be any asterisk in the actual information? We can't. But

[PATCH v8 0/4] hash: add SVE support for bulk key lookup

2024-04-17 Thread Yoan Picchi
This patchset adds SVE support for the signature comparison in the cuckoo hash lookup and improves the existing NEON implementation. These optimizations required changes to the data format and signature of the relevant functions to support dense hitmasks (no padding) and having the primary and seco

[PATCH v8 2/4] hash: optimize compare signature for NEON

2024-04-17 Thread Yoan Picchi
Upon a successful comparison, NEON sets all the bits in the lane to 1 We can skip shifting by simply masking with specific masks. Signed-off-by: Yoan Picchi Reviewed-by: Ruifeng Wang Reviewed-by: Nathan Brown --- lib/hash/arch/arm/compare_signatures.h | 24 +++- 1 file chan

[PATCH v8 1/4] hash: pack the hitmask for hash in bulk lookup

2024-04-17 Thread Yoan Picchi
Current hitmask includes padding due to Intel's SIMD implementation detail. This patch allows non Intel SIMD implementations to benefit from a dense hitmask. In addition, the new dense hitmask interweave the primary and secondary matches which allow a better cache usage and enable future improvemen

[PATCH v8 3/4] test/hash: check bulk lookup of keys after collision

2024-04-17 Thread Yoan Picchi
This patch adds unit test for rte_hash_lookup_bulk(). It also update the test_full_bucket test to the current number of entries in a hash bucket. Signed-off-by: Yoan Picchi Signed-off-by: Harjot Singh Reviewed-by: Ruifeng Wang Reviewed-by: Nathan Brown --- app/test/test_hash.c | 99 ++

[PATCH v8 4/4] hash: add SVE support for bulk key lookup

2024-04-17 Thread Yoan Picchi
- Implemented SVE code for comparing signatures in bulk lookup. - New SVE code is ~5% slower than optimized NEON for N2 processor for 128b vectors. Signed-off-by: Yoan Picchi Signed-off-by: Harjot Singh Reviewed-by: Nathan Brown Reviewed-by: Ruifeng Wang --- lib/hash/arch/arm/compare_signatur

[PATCH v3] mailmap: clean up vmware entries

2024-04-17 Thread Jochen Behrens
VMware was acquired by Broadcom, and vmware e-mail addresses will be invalid in the future. Add broadcom.com addresses for those still in the company. Place broadcom.com addresses first, as they are now the active ones. Retain the old addresses from git history behind them. Signed-off-by: Jochen

[PATCH v3 0/5] latencystats: cleanups

2024-04-17 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. Stephen Hemminger (5): latencystats: replace use of VLA

[PATCH v3 1/5] latencystats: replace use of VLA

2024-04-17 Thread Stephen Hemminger
The temporary array latencystats is not needed if the algorithm is converted into one pass. Signed-off-by: Stephen Hemminger --- lib/latencystats/rte_latencystats.c | 31 +++-- 1 file changed, 16 insertions(+), 15 deletions(-) diff --git a/lib/latencystats/rte_latencysta

[PATCH v3 2/5] latencystats: handle fractional cycles per ns

2024-04-17 Thread Stephen Hemminger
The timer_hz 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. Signed-off-by: Stephen Hemminger --- lib/latencystats/rte_latencystats.c | 12 +--- 1 file changed, 5 insertions(+), 7 de

[PATCH v3 3/5] latencystats: do not use floating point

2024-04-17 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. Change Exponential Weighted Moving Average weight from .2 to .25 to avoid use of floating point for that. Signed-off-by: Stephen Hemminger --- lib/latencys

[PATCH v3 4/5] latencystats: fix log messages

2024-04-17 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. Signed-off-by: Stephen Hemminger --- lib/latencystats/rte_latencystats.c | 30 ++--- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/lib/l

[PATCH v3 5/5] latencystats: include file cleanup

2024-04-17 Thread Stephen Hemminger
Include what is used here. Signed-off-by: Stephen Hemminger --- lib/latencystats/rte_latencystats.c | 85 ++--- 1 file changed, 52 insertions(+), 33 deletions(-) diff --git a/lib/latencystats/rte_latencystats.c b/lib/latencystats/rte_latencystats.c index 62038a9f5d..31e

Re: [PATCH v3 5/5] latencystats: include file cleanup

2024-04-17 Thread Bruce Richardson
On Wed, Apr 17, 2024 at 10:07:27AM -0700, Stephen Hemminger wrote: > Include what is used here. > There are more changes in this patch than just includes cleanup. > Signed-off-by: Stephen Hemminger > --- > lib/latencystats/rte_latencystats.c | 85 ++--- > 1 file changed,

RE: [PATCH v3 1/5] latencystats: replace use of VLA

2024-04-17 Thread Morten Brørup
> From: Stephen Hemminger [mailto:step...@networkplumber.org] > Sent: Wednesday, 17 April 2024 19.07 > > The temporary array latencystats is not needed if the algorithm > is converted into one pass. > > Signed-off-by: Stephen Hemminger > --- > lib/latencystats/rte_latencystats.c | 31 ++

[PATCH 02/16] hash: remove use of VLAs for Windows built code

2024-04-17 Thread Tyler Retzlaff
MSVC does not support VLAs, replace VLAs with standard C arrays or alloca(). alloca() is available for all toolchain/platform combinations officially supported by DPDK. Signed-off-by: Tyler Retzlaff --- lib/hash/rte_cuckoo_hash.c | 4 ++-- lib/hash/rte_thash.c | 2 +- 2 files changed, 3 in

[PATCH 01/16] eal: include header required for alloca

2024-04-17 Thread Tyler Retzlaff
Include alloca.h for Linux and malloc.h for Windows to get declaration of alloca(). Signed-off-by: Tyler Retzlaff --- lib/eal/linux/include/rte_os.h | 1 + lib/eal/windows/include/rte_os.h | 1 + 2 files changed, 2 insertions(+) diff --git a/lib/eal/linux/include/rte_os.h b/lib/eal/linux/incl

[PATCH 04/16] gro: remove use of VLAs for Windows built code

2024-04-17 Thread Tyler Retzlaff
MSVC does not support VLAs, replace VLAs with standard C arrays or alloca(). alloca() is available for all toolchain/platform combinations officially supported by DPDK. Signed-off-by: Tyler Retzlaff --- lib/gro/rte_gro.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib

[PATCH 00/16] remove use of VLAs for Windows built code

2024-04-17 Thread Tyler Retzlaff
As per guidance technical board meeting 2024/04/17. This series removes the use of VLAs from code built for Windows for all 3 toolchains. If there are additional opportunities to convert VLAs to regular C arrays please provide the details for incorporation into the series. MSVC does not support VL

[PATCH 03/16] ethdev: remove use of VLAs for Windows built code

2024-04-17 Thread Tyler Retzlaff
MSVC does not support VLAs, replace VLAs with standard C arrays or alloca(). alloca() is available for all toolchain/platform combinations officially supported by DPDK. Signed-off-by: Tyler Retzlaff --- lib/ethdev/rte_ethdev.c | 9 + 1 file changed, 5 insertions(+), 4 deletions(-) diff

[PATCH 12/16] net/ice: remove use of VLAs for Windows built code

2024-04-17 Thread Tyler Retzlaff
MSVC does not support VLAs, replace VLAs with standard C arrays or alloca(). alloca() is available for all toolchain/platform combinations officially supported by DPDK. Signed-off-by: Tyler Retzlaff --- drivers/net/ice/ice_rxtx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[PATCH 07/16] rcu: remove use of VLAs for Windows built code

2024-04-17 Thread Tyler Retzlaff
MSVC does not support VLAs, replace VLAs with standard C arrays or alloca(). alloca() is available for all toolchain/platform combinations officially supported by DPDK. Signed-off-by: Tyler Retzlaff --- lib/rcu/rte_rcu_qsbr.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --gi

[PATCH 11/16] net/i40e: remove use of VLAs for Windows built code

2024-04-17 Thread Tyler Retzlaff
MSVC does not support VLAs, replace VLAs with standard C arrays or alloca(). alloca() is available for all toolchain/platform combinations officially supported by DPDK. Signed-off-by: Tyler Retzlaff --- drivers/net/i40e/i40e_testpmd.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) d

[PATCH 08/16] app/testpmd: remove use of VLAs for Windows built code

2024-04-17 Thread Tyler Retzlaff
MSVC does not support VLAs, replace VLAs with standard C arrays or alloca(). alloca() is available for all toolchain/platform combinations officially supported by DPDK. Signed-off-by: Tyler Retzlaff --- app/test-pmd/cmdline.c| 2 +- app/test-pmd/cmdline_flow.c | 9 - app/test

[PATCH 05/16] latencystats: remove use of VLAs for Windows built code

2024-04-17 Thread Tyler Retzlaff
MSVC does not support VLAs, replace VLAs with standard C arrays or alloca(). alloca() is available for all toolchain/platform combinations officially supported by DPDK. Signed-off-by: Tyler Retzlaff --- lib/latencystats/rte_latencystats.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) di

[PATCH 06/16] lpm: remove use of VLAs for Windows built code

2024-04-17 Thread Tyler Retzlaff
MSVC does not support VLAs, replace VLAs with standard C arrays or alloca(). alloca() is available for all toolchain/platform combinations officially supported by DPDK. Signed-off-by: Tyler Retzlaff --- lib/lpm/rte_lpm.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/lpm

[PATCH 13/16] net/ixgbe: remove use of VLAs for Windows built code

2024-04-17 Thread Tyler Retzlaff
MSVC does not support VLAs, replace VLAs with standard C arrays or alloca(). alloca() is available for all toolchain/platform combinations officially supported by DPDK. Signed-off-by: Tyler Retzlaff --- drivers/net/ixgbe/ixgbe_ethdev.c | 5 +++-- drivers/net/ixgbe/ixgbe_rxtx_vec_common.

[PATCH 15/16] net/mlx5: remove use of VLAs for Windows built code

2024-04-17 Thread Tyler Retzlaff
MSVC does not support VLAs, replace VLAs with standard C arrays or alloca(). alloca() is available for all toolchain/platform combinations officially supported by DPDK. Signed-off-by: Tyler Retzlaff --- drivers/net/mlx5/mlx5.c | 5 ++--- drivers/net/mlx5/mlx5_flow.c | 6 +++--- 2 files chan

[PATCH 10/16] common/idpf: remove use of VLAs for Windows built code

2024-04-17 Thread Tyler Retzlaff
MSVC does not support VLAs, replace VLAs with standard C arrays or alloca(). alloca() is available for all toolchain/platform combinations officially supported by DPDK. Signed-off-by: Tyler Retzlaff --- drivers/common/idpf/idpf_common_rxtx.c| 2 +- drivers/common/idpf/idpf_common_rxtx_av

[PATCH 09/16] test: remove use of VLAs for Windows built code

2024-04-17 Thread Tyler Retzlaff
MSVC does not support VLAs, replace VLAs with standard C arrays or alloca(). alloca() is available for all toolchain/platform combinations officially supported by DPDK. Signed-off-by: Tyler Retzlaff --- app/test/test.c | 2 +- app/test/test_cmdline_string.c| 2 +-

[PATCH 14/16] common/mlx5: remove use of VLAs for Windows built code

2024-04-17 Thread Tyler Retzlaff
MSVC does not support VLAs, replace VLAs with standard C arrays or alloca(). alloca() is available for all toolchain/platform combinations officially supported by DPDK. Signed-off-by: Tyler Retzlaff --- drivers/common/mlx5/mlx5_common.h| 4 ++-- drivers/common/mlx5/mlx5_devx_cmds.c | 7 +++--

[PATCH 16/16] build: enable vla warnings on Windows built code

2024-04-17 Thread Tyler Retzlaff
MSVC does not support optional C11 VLAs. When building for Windows enable -Wvla so that mingw and clang also fail if a VLA is used. Signed-off-by: Tyler Retzlaff --- config/meson.build | 4 1 file changed, 4 insertions(+) diff --git a/config/meson.build b/config/meson.build index 8c8b019..

RE: [PATCH v4] net/netvsc: fix number Tx queues > Rx queues

2024-04-17 Thread Long Li
> This introduced additional check in Rx path, not sure what is the performance > impact. > > I can see Long already acked the v3, I just want to double check. > If Tx queue number > Rx queue number is not a common usecase, perhaps it can > be an option to forbid it instead of getting performanc

Re: [PATCH v3 1/5] latencystats: replace use of VLA

2024-04-17 Thread Tyler Retzlaff
On Wed, Apr 17, 2024 at 10:07:23AM -0700, Stephen Hemminger wrote: > The temporary array latencystats is not needed if the algorithm > is converted into one pass. > > Signed-off-by: Stephen Hemminger > --- if this series is merged first, my series here https://patchwork.dpdk.org/project/dpdk/pat

Re: [PATCH v3 2/5] latencystats: handle fractional cycles per ns

2024-04-17 Thread Tyler Retzlaff
On Wed, Apr 17, 2024 at 10:07:24AM -0700, Stephen Hemminger wrote: > The timer_hz 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. > > Signed-off-by: Stephen Hemminger > --- > lib/latency

Re: [PATCH v3 3/5] latencystats: do not use floating point

2024-04-17 Thread Tyler Retzlaff
On Wed, Apr 17, 2024 at 10:07:25AM -0700, Stephen Hemminger wrote: > 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. > > Change Exponential Weighted Moving Average weight from .2 to .25 > to avoid use o

Re: [PATCH v3 4/5] latencystats: fix log messages

2024-04-17 Thread Tyler Retzlaff
On Wed, Apr 17, 2024 at 10:07:26AM -0700, Stephen Hemminger wrote: > All messages that because of an error should be at log level > NOTICE or above. Do not break log messages across lines. > > Signed-off-by: Stephen Hemminger > --- > lib/latencystats/rte_latencystats.c | 30 ++---

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

2024-04-17 Thread Ronak Doshi
Vmxnet3 uses capability registers to advertize 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] doc: Fix some typos in mbuf_lib.rst and net/cnxk comments.

2024-04-17 Thread Mao YingMing
From: maoyingming Fixes: 2542ad53d8 (doc: add description of the offload API) Fixes: ae2c2cb606 (net/cnxk: avoid command copy from Tx queue) Reviewed-by: lishuo02 Signed-off-by: maoyingming --- doc/guides/prog_guide/mbuf_lib.rst | 8 drivers/net/cnxk/cn10k_tx.h| 2 +- drivers

Re: [PATCH 1/5] dts: fix InteractiveShell command prompt filtering

2024-04-17 Thread Juraj Linkeš
On Wed, Apr 17, 2024 at 4:17 PM Luca Vizzarro wrote: > > On 17/04/2024 14:06, Juraj Linkeš wrote: > > Actually, filtering out the last prompt is fine. I got this mixed up > > with processing the last prompt. We must process the last prompt, but > > we don't need to print it (and there's not much r

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

2024-04-17 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.

Re: [PATCH 4/5] dts: add `show port info` command to TestPmdShell

2024-04-17 Thread Juraj Linkeš
On Wed, Apr 17, 2024 at 5:29 PM Luca Vizzarro wrote: > > On 17/04/2024 15:25, Luca Vizzarro wrote: > > On 17/04/2024 14:22, Juraj Linkeš wrote: > >>> I'll > >>> experiment with some look ahead constructs. The easiest solution is to > >>> match everything that is not * ([^*]+) but can we be certain

RE: [PATCH 02/16] hash: remove use of VLAs for Windows built code

2024-04-17 Thread Morten Brørup
> - int32_t positions[num_keys]; > + int32_t *positions = alloca(sizeof(int32_t) * num_keys); A general comment, using this patch as an example... I wonder if adding const has any effect on the compilers' optimizers: int32_t * const positions = alloca(sizeof(int32_t) * num_keys); Perhap

RE: [PATCH 16/16] build: enable vla warnings on Windows built code

2024-04-17 Thread Morten Brørup
> MSVC does not support optional C11 VLAs. When building for Windows > enable -Wvla so that mingw and clang also fail if a VLA is used. Minor detail, doesn't affect my Ack for the series... Applications built for Windows with mingw and clang might use VLAs in the application itself. Perhaps we

RE: [PATCH 00/16] remove use of VLAs for Windows built code

2024-04-17 Thread Morten Brørup
> From: Tyler Retzlaff [mailto:roret...@linux.microsoft.com] > Sent: Thursday, 18 April 2024 01.42 > > As per guidance technical board meeting 2024/04/17. This series > removes the use of VLAs from code built for Windows for all 3 > toolchains. If there are additional opportunities to convert VLAs