Re: [PATCH v4] windows/virt2phys: fix block MDL not updated

2024-10-15 Thread Dmitry Kozlyuk
2024-10-15 16:04 (UTC-0700), Stephen Hemminger: > This looks ok, but I know nothing about windows drivers. > Could we get a review by Dmitry? v3 got Reviewed-by almost a year ago, v4 only did a bit of renaming: http://inbox.dpdk.org/dev/20231130071001.4c7931c8@sovereign/ There were no ot

Re: [RFC v2 10/10] eventdev: remove single event enqueue and dequeue

2024-10-15 Thread Mattias Rönnblom
On 2024-10-16 06:36, Mattias Rönnblom wrote: On 2024-10-16 00:00, Stephen Hemminger wrote: On Tue, 15 Oct 2024 20:25:35 +0200 Mattias Rönnblom wrote: Remove the single event enqueue and dequeue, since they did not provide any noticable performance benefits. This is a change of the ABI, previ

Re: [PATCH] fib: fix return value behavior

2024-10-15 Thread Stephen Hemminger
On Tue, 15 Oct 2024 17:11:43 + Vladimir Medvedkin wrote: > Fixes the behavior of the rte_fib_rcu_qsbr_add() function regarding its > return value to align with the existing rte_fib API. > > Fixes: 96c3d06a3547 ("fib: implement RCU rule reclamation") > > Signed-off-by: Vladimir Medvedkin >

Re: [v7 02/15] dma/dpaa2: refactor driver code

2024-10-15 Thread Hemant Agrawal
On 16-10-2024 10:43, Stephen Hemminger wrote: On Wed, 16 Oct 2024 10:39:40 +0530 Hemant Agrawal wrote: diff --git a/devtools/build-dict.sh b/devtools/build-dict.sh index a8cac49029..d503fb52fc 100755 --- a/devtools/build-dict.sh +++ b/devtools/build-dict.sh @@ -17,6 +17,8 @@ sed '/^..->/d' |

Re: [v7 02/15] dma/dpaa2: refactor driver code

2024-10-15 Thread Stephen Hemminger
On Wed, 16 Oct 2024 10:39:40 +0530 Hemant Agrawal wrote: > > > > diff --git a/devtools/build-dict.sh b/devtools/build-dict.sh > > index a8cac49029..d503fb52fc 100755 > > --- a/devtools/build-dict.sh > > +++ b/devtools/build-dict.sh > > @@ -17,6 +17,8 @@ sed '/^..->/d' | > > sed '/^uint->/d' | >

Re: [v7 02/15] dma/dpaa2: refactor driver code

2024-10-15 Thread Hemant Agrawal
On 16-10-2024 03:41, Stephen Hemminger wrote: On Tue, 15 Oct 2024 12:43:50 +0530 Gagandeep Singh wrote: From: Jun Yang refactor the driver code with changes in: - multiple HW queues - SMA single copy and SG copy - silent mode Signed-off-by: Jun Yang --- To prevent false positives from c

Re: [RFC v2 10/10] eventdev: remove single event enqueue and dequeue

2024-10-15 Thread Mattias Rönnblom
On 2024-10-16 00:00, Stephen Hemminger wrote: On Tue, 15 Oct 2024 20:25:35 +0200 Mattias Rönnblom wrote: Remove the single event enqueue and dequeue, since they did not provide any noticable performance benefits. This is a change of the ABI, previously announced as a deprecation notice. These

Re: [PATCH v13 1/7] eal: add static per-lcore memory allocation facility

2024-10-15 Thread Mattias Rönnblom
On 2024-10-16 00:35, Stephen Hemminger wrote: On Tue, 15 Oct 2024 11:33:38 +0200 Mattias Rönnblom wrote: +/** + * Allocate space in the per-lcore id buffers for an lcore variable. + * + * The pointer returned is only an opaque identifier of the variable. To + * get an actual pointer to a parti

Re: [PATCH v13 1/7] eal: add static per-lcore memory allocation facility

2024-10-15 Thread Mattias Rönnblom
On 2024-10-16 00:33, Stephen Hemminger wrote: On Tue, 15 Oct 2024 11:33:38 +0200 Mattias Rönnblom wrote: + * Lcore variables + * + * This API provides a mechanism to create and access per-lcore id + * variables in a space- and cycle-efficient manner. + * + * A per-lcore id variable (or lcor

RE: [PATCH v7] examples/ptpclient: add frequency adjustment

2024-10-15 Thread Ye, MingjinX
Hi Ferruh Yigit, The patch is in 'Changes Requested' status. Can you review it for me? Regards, Mingjin > -Original Message- > From: Ferruh Yigit > Sent: Wednesday, October 16, 2024 1:58 AM > To: Stephen Hemminger ; Ye, MingjinX > > Cc: dev@dpdk.org; Su, Simei ; Wenjun Wu > ; Rybalchen

RE: [PATCH v7] examples/ptpclient: add frequency adjustment

2024-10-15 Thread Ye, MingjinX
> -Original Message- > From: Stephen Hemminger > Sent: Wednesday, October 16, 2024 1:44 AM > To: Ye, MingjinX > Cc: dev@dpdk.org; Su, Simei ; Wenjun Wu > ; Rybalchenko, Kirill > Subject: Re: [PATCH v7] examples/ptpclient: add frequency adjustment > > On Tue, 15 Oct 2024 08:22:01 +000

RE: [PATCH v10 2/2] examples/l3fwd-power: add PM QoS configuration

2024-10-15 Thread Konstantin Ananyev
> >> Add PM QoS configuration to declease the delay after sleep in case of > >> entering deeper idle state. > >> > >> Signed-off-by: Huisong Li > >> Acked-by: Morten Brørup > >> --- > >> examples/l3fwd-power/main.c | 24 > >> 1 file changed, 24 insertions(+) > >> > >

Re: [RFC PATCH v3] net/iavf: support rte flow with mask for FDIR

2024-10-15 Thread Stephen Hemminger
On Mon, 25 Mar 2024 17:01:41 + Ian Stokes wrote: > From: Ananth S > > This patch supports rte flow with mask for FDIR, including > eth/ipv4/ipv6/tcp/udp flow items, where src/dst for ipv4/ipv6 > and sport/dport for tcp/udp are realized by switch filter. > > This patch additionally contains

Re: [PATCH v4] windows/virt2phys: fix block MDL not updated

2024-10-15 Thread Stephen Hemminger
On Mon, 4 Dec 2023 18:32:14 +0800 Ric Li wrote: > The virt2phys_translate function previously scanned existing blocks, > returning the physical address from the stored MDL info if present. > This method was problematic when a virtual address pointed to a freed > and reallocated memory segment, p

Re: [PATCH v13 1/7] eal: add static per-lcore memory allocation facility

2024-10-15 Thread Stephen Hemminger
On Tue, 15 Oct 2024 11:33:38 +0200 Mattias Rönnblom wrote: > +/** > + * Allocate space in the per-lcore id buffers for an lcore variable. > + * > + * The pointer returned is only an opaque identifier of the variable. To > + * get an actual pointer to a particular instance of the variable use > +

Re: [PATCH v13 1/7] eal: add static per-lcore memory allocation facility

2024-10-15 Thread Stephen Hemminger
On Tue, 15 Oct 2024 11:33:38 +0200 Mattias Rönnblom wrote: > + * Lcore variables > + * > + * This API provides a mechanism to create and access per-lcore id > + * variables in a space- and cycle-efficient manner. > + * > + * A per-lcore id variable (or lcore variable for short) holds a > + * uniq

Re: [PATCH v3 2/4] hash: add dynamic polynomial calculation

2024-10-15 Thread Stephen Hemminger
On Fri, 11 Oct 2024 18:17:00 + Vladimir Medvedkin wrote: > + > +uint32_t > +rte_thash_get_rand_poly(uint32_t poly_degree) > +{ > + uint32_t ret_poly; > + > + if (poly_degree > 32) > + return 0; > + > + do > + ret_poly = __thash_get_rand_poly(poly_degree); >

Re: [v7 02/15] dma/dpaa2: refactor driver code

2024-10-15 Thread Stephen Hemminger
On Tue, 15 Oct 2024 12:43:50 +0530 Gagandeep Singh wrote: > From: Jun Yang > > refactor the driver code with changes in: > - multiple HW queues > - SMA single copy and SG copy > - silent mode > > Signed-off-by: Jun Yang > --- To prevent false positives from checkpatch spell check, it would b

Re: [RFC v2 10/10] eventdev: remove single event enqueue and dequeue

2024-10-15 Thread Stephen Hemminger
On Tue, 15 Oct 2024 20:25:35 +0200 Mattias Rönnblom wrote: > Remove the single event enqueue and dequeue, since they did not > provide any noticable performance benefits. > > This is a change of the ABI, previously announced as a deprecation > notice. These functions were not directly called by

RE: [PATCH 2/3] bitset: fix build for GCC without experimental API

2024-10-15 Thread Morten Brørup
> From: Thomas Monjalon [mailto:tho...@monjalon.net] > Sent: Tuesday, 15 October 2024 21.58 > > 15/10/2024 16:44, Morten Brørup: > > > From: Thomas Monjalon [mailto:tho...@monjalon.net] > > > Sent: Tuesday, 15 October 2024 16.13 > > > > > > 15/10/2024 14:53, Morten Brørup: > > > > > From: David Ma

RE: [PATCH v13 1/7] eal: add static per-lcore memory allocation facility

2024-10-15 Thread Morten Brørup
> From: Mattias Rönnblom [mailto:hof...@lysator.liu.se] > Sent: Tuesday, 15 October 2024 21.03 > > On 2024-10-15 12:13, Morten Brørup wrote: > >> +void * > >> +rte_lcore_var_alloc(size_t size, size_t align) > >> +{ > >> + /* Having the per-lcore buffer size aligned on cache lines > >> + * assur

Re: [PATCH 2/3] bitset: fix build for GCC without experimental API

2024-10-15 Thread Thomas Monjalon
15/10/2024 16:44, Morten Brørup: > > From: Thomas Monjalon [mailto:tho...@monjalon.net] > > Sent: Tuesday, 15 October 2024 16.13 > > > > 15/10/2024 14:53, Morten Brørup: > > > > From: David Marchand [mailto:david.march...@redhat.com] > > > > @@ -255,7 +255,13 @@ __rte_experimental > > > > static

[PATCH v5 2/2] dts: checksum offload test suite

2024-10-15 Thread Dean Marx
test suite for verifying layer 3/4 checksum offload features on poll mode driver. Signed-off-by: Dean Marx --- dts/framework/config/conf_yaml_schema.json | 3 +- dts/tests/TestSuite_checksum_offload.py| 274 + 2 files changed, 276 insertions(+), 1 deletion(-) create mo

[PATCH v5 1/2] dts: add csum HW offload to testpmd shell

2024-10-15 Thread Dean Marx
Add csum_set_hw method to testpmd shell class. Signed-off-by: Dean Marx --- dts/framework/remote_session/testpmd_shell.py | 58 +++ 1 file changed, 58 insertions(+) diff --git a/dts/framework/remote_session/testpmd_shell.py b/dts/framework/remote_session/testpmd_shell.py index

[PATCH v5 0/2] dts: port over checksum offload suite

2024-10-15 Thread Dean Marx
Port over checksum hardware offload testing suite from old DTS. The suite verifies the ability of the PMD to recognize whether an incoming packet has valid or invalid L4/IP checksum values. - v1: * In the original test plan, there were two Tx checksum test cases. I removed them due to the

Re: [PATCH v13 1/7] eal: add static per-lcore memory allocation facility

2024-10-15 Thread Mattias Rönnblom
On 2024-10-15 12:13, Morten Brørup wrote: +void * +rte_lcore_var_alloc(size_t size, size_t align) +{ + /* Having the per-lcore buffer size aligned on cache lines +* assures as well as having the base pointer aligned on cache +* size assures that aligned offsets also translat

Re: [RFC 00/10] eventdev: remove single-event enqueue and dequeue

2024-10-15 Thread Mattias Rönnblom
On 2024-10-15 19:07, Stephen Hemminger wrote: On Tue, 15 Oct 2024 10:49:33 +0200 Mattias Rönnblom wrote: Remove the single-event enqueue and dequeue functions from the eventdev "ops" struct, to reduce complexity, leaving performance unaffected. This ABI change has been announced as a DPDK dep

[RFC v2 03/10] event/cnxk: remove single event enqueue and dequeue

2024-10-15 Thread Mattias Rönnblom
Signed-off-by: Mattias Rönnblom --- drivers/event/cnxk/cn10k_eventdev.c | 2 -- drivers/event/cnxk/cn10k_worker.c | 49 + drivers/event/cnxk/cn10k_worker.h | 9 -- drivers/event/cnxk/cn9k_eventdev.c | 1 - drivers/event/cnxk/cn9k_worker.c| 26 +-

[RFC v2 09/10] event/skeleton: remove single event enqueue and dequeue

2024-10-15 Thread Mattias Rönnblom
Signed-off-by: Mattias Rönnblom -- RFC v2: * Remove unused functions. --- drivers/event/skeleton/skeleton_eventdev.c | 29 -- 1 file changed, 29 deletions(-) diff --git a/drivers/event/skeleton/skeleton_eventdev.c b/drivers/event/skeleton/skeleton_eventdev.c index 848b3be

[RFC v2 05/10] event/sw: remove single event enqueue and dequeue

2024-10-15 Thread Mattias Rönnblom
Signed-off-by: Mattias Rönnblom --- drivers/event/sw/sw_evdev.c| 2 -- drivers/event/sw/sw_evdev.h| 2 -- drivers/event/sw/sw_evdev_worker.c | 12 3 files changed, 16 deletions(-) diff --git a/drivers/event/sw/sw_evdev.c b/drivers/event/sw/sw_evdev.c index 7913bc54

[RFC v2 08/10] event/opdl: remove single event enqueue and dequeue

2024-10-15 Thread Mattias Rönnblom
Signed-off-by: Mattias Rönnblom --- drivers/event/opdl/opdl_evdev.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/event/opdl/opdl_evdev.c b/drivers/event/opdl/opdl_evdev.c index 25853166bf..ffa65ef930 100644 --- a/drivers/event/opdl/opdl_evdev.c +++ b/drivers/event/opdl/opdl_evdev.

[RFC v2 01/10] event/dsw: remove single event enqueue and dequeue

2024-10-15 Thread Mattias Rönnblom
Signed-off-by: Mattias Rönnblom --- drivers/event/dsw/dsw_evdev.c | 2 -- drivers/event/dsw/dsw_evdev.h | 2 -- drivers/event/dsw/dsw_event.c | 12 3 files changed, 16 deletions(-) diff --git a/drivers/event/dsw/dsw_evdev.c b/drivers/event/dsw/dsw_evdev.c index 1df3121b21..e819412

[RFC v2 06/10] event/dpaa: remove single event enqueue and dequeue

2024-10-15 Thread Mattias Rönnblom
Signed-off-by: Mattias Rönnblom --- drivers/event/dpaa/dpaa_eventdev.c | 27 ++- 1 file changed, 2 insertions(+), 25 deletions(-) diff --git a/drivers/event/dpaa/dpaa_eventdev.c b/drivers/event/dpaa/dpaa_eventdev.c index 85ccb586ef..853cc1ecf9 100644 --- a/drivers/event/

[RFC v2 10/10] eventdev: remove single event enqueue and dequeue

2024-10-15 Thread Mattias Rönnblom
Remove the single event enqueue and dequeue, since they did not provide any noticable performance benefits. This is a change of the ABI, previously announced as a deprecation notice. These functions were not directly called by the application, so the API remains unaffected. Signed-off-by: Mattias

[RFC v2 02/10] event/dlb2: remove single event enqueue and dequeue

2024-10-15 Thread Mattias Rönnblom
Signed-off-by: Mattias Rönnblom -- RFCv2: * Remove unused function. (Stephen Hemminger) --- drivers/event/dlb2/dlb2.c | 40 ++- 1 file changed, 2 insertions(+), 38 deletions(-) diff --git a/drivers/event/dlb2/dlb2.c b/drivers/event/dlb2/dlb2.c index 09e4107

[RFC v2 07/10] event/dpaa2: remove single event enqueue and dequeue

2024-10-15 Thread Mattias Rönnblom
Signed-off-by: Mattias Rönnblom -- RFC v2: * Remove unused functions. --- drivers/event/dpaa2/dpaa2_eventdev.c | 15 --- 1 file changed, 15 deletions(-) diff --git a/drivers/event/dpaa2/dpaa2_eventdev.c b/drivers/event/dpaa2/dpaa2_eventdev.c index f0b2c7de99..6c8ed3ff6b 100644 --

[RFC v2 00/10] eventdev: remove single-event enqueue and dequeue

2024-10-15 Thread Mattias Rönnblom
Remove the single-event enqueue and dequeue functions from the eventdev "ops" struct, to reduce complexity, leaving performance unaffected. This ABI change has been announced as a DPDK deprication notice, originally scheduled for DPDK 23.11. Mattias Rönnblom (10): event/dsw: remove single event

[RFC v2 04/10] event/octeontx: remove single event enqueue and dequeue

2024-10-15 Thread Mattias Rönnblom
Signed-off-by: Mattias Rönnblom --- drivers/event/octeontx/ssovf_evdev.h | 1 - drivers/event/octeontx/ssovf_worker.c | 40 +++ 2 files changed, 4 insertions(+), 37 deletions(-) diff --git a/drivers/event/octeontx/ssovf_evdev.h b/drivers/event/octeontx/ssovf_evdev.h in

Re: [PATCH v7] examples/ptpclient: add frequency adjustment

2024-10-15 Thread Ferruh Yigit
On 10/15/2024 6:43 PM, Stephen Hemminger wrote: > On Tue, 15 Oct 2024 08:22:01 + > Mingjin Ye wrote: > >> This patch adds PI servo controller to support frequency >> adjustment API for IEEE1588 PTP. >> >> For example, the command for starting ptpclient with PI controller is: >> dpdk-ptpclient

Re: [PATCH v7] examples/ptpclient: add frequency adjustment

2024-10-15 Thread Stephen Hemminger
On Tue, 15 Oct 2024 08:22:01 + Mingjin Ye wrote: > This patch adds PI servo controller to support frequency > adjustment API for IEEE1588 PTP. > > For example, the command for starting ptpclient with PI controller is: > dpdk-ptpclient -a :81:00.0 -c 1 -n 3 -- -T 0 -p 0x1 -c 1 > > Signed

Re: [PATCH v2 3/3] examples/ptpclient: add frequency adjustment support

2024-10-15 Thread Stephen Hemminger
On Fri, 6 Sep 2024 05:19:39 + Mingjin Ye wrote: > This patch adds PI servo algorithm to support frequency > adjustment API for IEEE1588 PTP. > > For example, the command for starting ptpclient with PI algorithm is: > ./build/examples/dpdk-ptpclient -a :81:00.0 -c 1 -n 3 -- -T 0 -p 0x1 >

[PATCH] fib: fix return value behavior

2024-10-15 Thread Vladimir Medvedkin
Fixes the behavior of the rte_fib_rcu_qsbr_add() function regarding its return value to align with the existing rte_fib API. Fixes: 96c3d06a3547 ("fib: implement RCU rule reclamation") Signed-off-by: Vladimir Medvedkin --- lib/fib/dir24_8.c | 21 - lib/fib/rte_fib.h | 8 +++

Re: [RFC 00/10] eventdev: remove single-event enqueue and dequeue

2024-10-15 Thread Stephen Hemminger
On Tue, 15 Oct 2024 10:49:33 +0200 Mattias Rönnblom wrote: > Remove the single-event enqueue and dequeue functions from the > eventdev "ops" struct, to reduce complexity, leaving performance > unaffected. > > This ABI change has been announced as a DPDK deprication notice, > originally scheduled

Re: [PATCH] net/dpaa/fmlib: remove new line char from the logs

2024-10-15 Thread Stephen Hemminger
On Tue, 15 Oct 2024 17:35:38 +0530 Hemant Agrawal wrote: > This patch remove the new line char from several logs in the > fmlib base driver. > > Signed-off-by: Hemant Agrawal > --- Acked-by: Stephen Hemminger

Re: [PATCH v2] net/iavf: preserve MAC address with i40e PF Linux driver

2024-10-15 Thread Bruce Richardson
On Tue, Oct 01, 2024 at 02:14:36PM +0100, Bruce Richardson wrote: > On Tue, Oct 01, 2024 at 11:12:54AM +0200, David Marchand wrote: > > Following two upstream Linux kernel changes (see links), the mac address > > of a iavf port, serviced by a i40e PF driver, is lost when the DPDK iavf > > driver pr

Re: [v3 5/5] raw/gdtc: add support for dequeue operation

2024-10-15 Thread Patrick Robb
Sorry, I should have flagged that the series is called "untitled series #" which is why I think there is a problem with how the series was submitted.

Re: [v3 5/5] raw/gdtc: add support for dequeue operation

2024-10-15 Thread Patrick Robb
It looks like this did not get processed correctly by patchwork, or there is an issue with the patchfiles. https://patchwork.dpdk.org/project/dpdk/list/?series=&submitter=&state=&q=gdtc&archive=&delegate= Can you resubmit? It was not picked up by 3/4 of the CI labs. On Mon, Oct 14, 2024 at 4:16 

[PATCH v2 4/5] net/mlx5: add flow rule insertion by index with pattern

2024-10-15 Thread Alexander Kozyrev
Implement rte_flow_async_create_by_index_with_pattern() function. Rework the driver implementation to reduce code duplication by providing a single flow insertion routine, that can be called with different parameters depending on the insertion type. Signed-off-by: Alexander Kozyrev --- drivers/n

[PATCH v2 5/5] net/mlx5: implement jump to table index action

2024-10-15 Thread Alexander Kozyrev
Implement RTE_FLOW_ACTION_TYPE_JUMP_TO_TABLE_INDEX action. Create the hardware steering jump to matcher action, associated with the template matcher. Use this action and provide the rule index as an offset in the matcher. Note that it is only supported by the isolated matcher, i.e. the table insert

[PATCH v2 2/5] net/mlx5/hws: introduce jump to matcher action

2024-10-15 Thread Alexander Kozyrev
From: Hamdan Igbaria Introduce jump to matcher action, this action will allow jumping to another matcher. For now this jump restricted to STE array matchers and matchers of size 1. Signed-off-by: Hamdan Igbaria --- drivers/net/mlx5/hws/mlx5dr.h| 29 ++ drivers/net/mlx5/hws/mlx5

[PATCH v2 3/5] net/mlx5: create array ste matcher

2024-10-15 Thread Alexander Kozyrev
Create an array STE matcher for a template table in case of insertion by index with pattern is selected. Packets will be matched on a pattern at the index. This table is isolated from any other tables in a group. That means packets missed the rule won't go to a lower priority tables, but proceed wi

[PATCH v2 1/5] net/mlx5/hws: introduce new matcher type

2024-10-15 Thread Alexander Kozyrev
From: Hamdan Igbaria introduce STE array matcher, where this matcher can only be isolated under a parent table and not chained to the table matchers chain. Signed-off-by: Hamdan Igbaria --- drivers/net/mlx5/hws/mlx5dr.h | 13 +- drivers/net/mlx5/hws/mlx5dr_debug.c | 12 +- dr

[PATCH 5/5] net/mlx5: implement jump to table index action

2024-10-15 Thread Alexander Kozyrev
Implement RTE_FLOW_ACTION_TYPE_JUMP_TO_TABLE_INDEX action. Create the hardware steering jump to matcher action, assosiated with the template matcher. Use this action and provided rule index as an offset in the matcher. Note that it is only supported by the isolated matcher, i.e. the table insertion

[PATCH 3/5] net/mlx5: create array ste matcher

2024-10-15 Thread Alexander Kozyrev
Create an array STE matcher for a template table in case of insertion by index with pattern is selected. Packets will be matched on a pattern at the index. This table is isolated from any other tables in a group. That means packets missed the rule won't go to a lower priority tables, but proceed wi

[PATCH 4/5] net/mlx5: add flow rule insertion by index with pattern

2024-10-15 Thread Alexander Kozyrev
Implement rte_flow_async_create_by_index_with_pattern() function. Rework the driver implementaion to reduce the code duplication by providing a signle flow insertion routine, that can be called with different parameters depending on the insertion type. Signed-off-by: Alexander Kozyrev --- driver

[PATCH 1/5] net/mlx5/hws: introduce new matcher type

2024-10-15 Thread Alexander Kozyrev
From: Hamdan Igbaria introduce STE array matcher, where this matcher can only be isolated under a parent table and not chained to the table matchers chain. Signed-off-by: Hamdan Igbaria --- drivers/net/mlx5/hws/mlx5dr.h | 13 +- drivers/net/mlx5/hws/mlx5dr_debug.c | 12 +- dr

[PATCH 2/5] net/mlx5/hws: introduce jump to matcher action

2024-10-15 Thread Alexander Kozyrev
From: Hamdan Igbaria Introduce jump to matcher action, this action will allow jumping to another matcher. For now this jump restricted to STE array matchers and matchers of size 1. Signed-off-by: Hamdan Igbaria --- drivers/net/mlx5/hws/mlx5dr.h| 29 ++ drivers/net/mlx5/hws/mlx5

Re: [PATCH v1] net/ice: fix ice Rx timestamp for E822 NICs

2024-10-15 Thread Bruce Richardson
On Thu, Aug 01, 2024 at 04:40:15AM +, Soumyadeep Hore wrote: > E822 PHY does not support switching from bypass to Vernier mode. > Remove ice_phy_exit_bypass_e822() and program fixed offsets for bypass > mode. > > Fixes: ce9ad8c5bc6d ("net/ice/base: remove PHY port timer bypass mode") > Cc: sta

Re: [PATCH] net/iavf: simplify mailbox message generation for mac

2024-10-15 Thread Bruce Richardson
On Tue, Oct 01, 2024 at 11:15:07AM +0200, David Marchand wrote: > Caught by code review. > The mailbox message maximum size is larger than the biggest message > to update mac addresses. > Remove the double loop and add some build / assert checks. > > This cleanup also fixes a (never hit) issue whe

Re: [PATCH v3] test: fix option devices

2024-10-15 Thread Stephen Hemminger
On Mon, 14 Oct 2024 10:00:26 + Mingjin Ye wrote: > Without using allow (-a) or block (-b), EAL loads all devices by default. > Unexpected devices may be loaded when running test cases in sub-processes. > > This patch fixes the issue by copying the parameters of the master process > if the al

Re: [PATCH 02/20] event/cnxk: add CN20K specific device probe

2024-10-15 Thread Stephen Hemminger
On Thu, 3 Oct 2024 18:52:19 +0530 wrote: > From: Pavan Nikhilesh > > Add platform specific event device probe and remove, also add > event device info get function. > > Signed-off-by: Pavan Nikhilesh > --- > doc/guides/eventdevs/cnxk.rst | 30 + > doc/guides/rel_notes/releas

Re: [PATCH v5 0/6] Stage-Ordered API and other extensions for ring library

2024-10-15 Thread Stephen Hemminger
On Tue, 15 Oct 2024 14:01:05 +0100 Konstantin Ananyev wrote: > From: Konstantin Ananyev > > NOTE UPFRONT: this version is still not ready for merging. > Missing items: > - ARM/PPC tests passing > - PG update > > v4 -> v5 > - fix public API/doc comments from Jerin > - update devtools/build-dict

Re: [PATCH v5 0/6] Stage-Ordered API and other extensions for ring library

2024-10-15 Thread Stephen Hemminger
On Tue, 15 Oct 2024 14:01:05 +0100 Konstantin Ananyev wrote: > From: Konstantin Ananyev > > NOTE UPFRONT: this version is still not ready for merging. > Missing items: > - ARM/PPC tests passing > - PG update > > v4 -> v5 > - fix public API/doc comments from Jerin > - update devtools/build-dict

Re: [PATCH v5 9/9] net/zxdh: add zxdh dev configure ops

2024-10-15 Thread Stephen Hemminger
On Tue, 15 Oct 2024 13:44:35 +0800 Junlong Wang wrote: > provided zxdh dev configure ops for queue > check,reset,alloc resources,etc. > > Signed-off-by: Junlong Wang These build failures need to be addressed. Probably as simple as adding struct bar_msg_header msg_header = { 0 };

Re: [PATCH v1 00/18] net/r8169: add r8169 pmd to dpdk

2024-10-15 Thread Stephen Hemminger
On Tue, 15 Oct 2024 11:09:10 +0800 Howard Wang wrote: > R8169 pmd supports Realtek 2.5G and 5G ethernet nics. > > Howard Wang (18): > net/r8169: add PMD driver skeleton > net/r8169: add logging structure > net/r8169: add hardware registers access routines > net/r8169: implement core logi

Re: [PATCH v10 1/2] power: introduce PM QoS API on CPU wide

2024-10-15 Thread Stephen Hemminger
On Tue, 15 Oct 2024 17:41:39 +0800 "lihuisong (C)" wrote: > Hi Stephen, > > Can you take a look at this reply so as to send out the next version ASAP? > Thanks.😁 > > /Huisong > 在 2024/10/14 20:19, lihuisong (C) 写道: The biggest issue is that lcore is not the same as cpu as far as kernel is con

Re: [PATCH v5 9/9] net/zxdh: add zxdh dev configure ops

2024-10-15 Thread Stephen Hemminger
On Tue, 15 Oct 2024 13:44:35 +0800 Junlong Wang wrote: > diff --git a/drivers/net/zxdh/meson.build b/drivers/net/zxdh/meson.build > index 9aec47e68f..cde96d8111 100644 > --- a/drivers/net/zxdh/meson.build > +++ b/drivers/net/zxdh/meson.build > @@ -14,8 +14,9 @@ if not dpdk_conf.has('RTE_ARCH_X86_

Re: [PATCH v1 12/18] net/r8169: implement Tx path

2024-10-15 Thread Stephen Hemminger
On Tue, 15 Oct 2024 08:30:19 -0700 Stephen Hemminger wrote: > On Tue, 15 Oct 2024 11:09:22 +0800 > Howard Wang wrote: > > > +rtl_tx_queue_release_mbufs(struct rtl_tx_queue *txq) > > +{ > > + int i; > > + > > + PMD_INIT_FUNC_TRACE(); > > + > > + if (txq != NULL) { > > + if (txq->

Re: [PATCH v1 12/18] net/r8169: implement Tx path

2024-10-15 Thread Stephen Hemminger
On Tue, 15 Oct 2024 11:09:22 +0800 Howard Wang wrote: > + /* Allocate memory for the software ring */ > + txq->sw_ring = rte_zmalloc_socket("r8169 sw tx ring", > + nb_tx_desc * sizeof(struct > rtl_tx_entry), > +

Re: [PATCH v1 12/18] net/r8169: implement Tx path

2024-10-15 Thread Stephen Hemminger
On Tue, 15 Oct 2024 11:09:22 +0800 Howard Wang wrote: > +rtl_tx_queue_setup(struct rte_eth_dev *dev, uint16_t queue_idx, > + uint16_t nb_tx_desc, unsigned int socket_id, > + const struct rte_eth_txconf *tx_conf) > +{ > + struct rtl_tx_queue *txq; > + co

Re: [PATCH v1 12/18] net/r8169: implement Tx path

2024-10-15 Thread Stephen Hemminger
On Tue, 15 Oct 2024 11:09:22 +0800 Howard Wang wrote: > +rtl_tx_queue_release_mbufs(struct rtl_tx_queue *txq) > +{ > + int i; > + > + PMD_INIT_FUNC_TRACE(); > + > + if (txq != NULL) { > + if (txq->sw_ring != NULL) { > + for (i = 0; i < txq->nb_tx_desc;

Re: [PATCH v1 15/18] net/r8169: impelment MTU configuration

2024-10-15 Thread Stephen Hemminger
On Tue, 15 Oct 2024 11:09:25 +0800 Howard Wang wrote: > +static int > +rtl_dev_mtu_set(struct rte_eth_dev *dev, uint16_t mtu) > +{ > + struct rte_eth_dev_info dev_info; > + struct rtl_adapter *adapter = RTL_DEV_PRIVATE(dev); > + struct rtl_hw *hw = &adapter->hw; > + int ret; > +

[PATCH v2 5/5] net/ice: limit the number of queues to sched capabilities

2024-10-15 Thread Bruce Richardson
Rather than assuming that each VSI can hold up to 256 queue pairs, or the reported device limit, query the available nodes in the scheduler tree to check that we are not overflowing the limit for number of child scheduling nodes at each level. Do this by multiplying max_children for each level beyo

[PATCH v2 4/5] net/ice: add option to download scheduler topology

2024-10-15 Thread Bruce Richardson
The DDP package file being loaded at init time may contain an alternative Tx Scheduler topology in it. Add driver option to load this topology at init time. Signed-off-by: Bruce Richardson --- V2: use uint8_t rather than int for boolean flag for consistency. --- drivers/net/ice/base/ice_ddp.c |

[PATCH v2 3/5] net/ice: add option to choose DDP package file

2024-10-15 Thread Bruce Richardson
The "Dynamic Device Personalization" package is loaded at initialization time by the driver, but the specific package file loaded depends upon what package file is found first by searching through a hard-coded list of firmware paths. To enable greater control over the package loading, we can add a

[PATCH v2 2/5] net/ice: improve Tx scheduler graph output

2024-10-15 Thread Bruce Richardson
The function to dump the TX scheduler topology only adds to the chart nodes connected to TX queues or for the flow director VSI. Change the function to work recursively from the root node and thereby include all scheduler nodes, whether in use or not, in the dump. Also, improve the output of the T

[PATCH v2 1/5] net/ice: detect stopping a flow-director queue twice

2024-10-15 Thread Bruce Richardson
If the flow-director queue is stopped at some point during the running of an application, the shutdown procedure for the port issues an error as it tries to stop the queue a second time, and fails to do so. We can eliminate this error by setting the tail-register pointer to NULL on stop, and checki

[PATCH v2 0/5] updates for net/ice driver

2024-10-15 Thread Bruce Richardson
This patchset contains a set of updates for the ice driver, a number of which are in the area of the "rte_tm" APIs for Tx scheduling. These patches were previously submitted as part of a larger set[1], but separating them out here for easier review and merge ahead of the more substantial changes f

RE: rte_ring move head question for machines with relaxed MO (arm/ppc)

2024-10-15 Thread Konstantin Ananyev
> > > > > > > > > 1. rte_ring_generic_pvt.h: > > > > > > > > > = > > > > > > > > > > > > > > > > > > pseudo-c-code // > > > > > > > > > related armv8 instructions > > > > > > > > >

RE: [PATCH v5 1/6] ring: common functions for 'move head' ops

2024-10-15 Thread Morten Brørup
> From: Konstantin Ananyev [mailto:konstantin.v.anan...@yandex.ru] > Sent: Tuesday, 15 October 2024 15.01 Cleaning up is good. :-) Only a few initial comments; haven't reviewed in depth. > +__rte_ring_headtail_move_head(struct rte_ring_headtail *d, > + const struct rte_ring_headtail

RE: [PATCH 2/3] bitset: fix build for GCC without experimental API

2024-10-15 Thread Morten Brørup
> From: Thomas Monjalon [mailto:tho...@monjalon.net] > Sent: Tuesday, 15 October 2024 16.13 > > 15/10/2024 14:53, Morten Brørup: > > > From: David Marchand [mailto:david.march...@redhat.com] > > > @@ -255,7 +255,13 @@ __rte_experimental > > > static inline bool > > > rte_bitset_test(const uint64

RE: [PATCH] mbuf: add transport mode ESP packet type

2024-10-15 Thread Dariusz Sosnowski
> -Original Message- > From: Alexander Kozyrev > Sent: Thursday, August 22, 2024 17:32 > To: dev@dpdk.org > Cc: Dariusz Sosnowski ; Ori Kam ; > nithind1...@gmail.com; olivier.m...@6wind.com; NBU-Contact-Thomas > Monjalon (EXTERNAL) ; Matan Azrad > ; jer...@marvell.com; rbhans...@marvell.co

Re: [PATCH 2/5] net/ice: improve Tx scheduler graph output

2024-10-15 Thread Bruce Richardson
On Wed, Oct 09, 2024 at 10:45:43AM -0700, Stephen Hemminger wrote: > On Wed, 9 Oct 2024 18:08:19 +0100 > Bruce Richardson wrote: > > > The function to dump the TX scheduler topology only adds to the chart > > nodes connected to TX queues or for the flow director VSI. Change the > > function to w

Re: [PATCH 2/3] bitset: fix build for GCC without experimental API

2024-10-15 Thread Thomas Monjalon
15/10/2024 14:53, Morten Brørup: > > From: David Marchand [mailto:david.march...@redhat.com] > > @@ -255,7 +255,13 @@ __rte_experimental > > static inline bool > > rte_bitset_test(const uint64_t *bitset, size_t bit_num) > > { > > +#ifdef ALLOW_EXPERIMENTAL_API > > return __RTE_BITSET_DELEGAT

[PATCH v5 5/6] app/test: add unit tests for soring API

2024-10-15 Thread Konstantin Ananyev
From: Konstantin Ananyev Add both functional and stess test-cases for soring API. Stress test serves as both functional and performance test of soring enqueue/dequeue/acquire/release operations under high contention (for both over committed and non-over committed scenarios). Signed-off-by: Eimea

[PATCH v5 6/6] test: add stress test suite

2024-10-15 Thread Konstantin Ananyev
From: Konstantin Ananyev Add a new test suite which purpose is to run 'stress' tests: main purpose is put a pressure to dpdk sync algorithms to flag their misbehaving/slowdown/etc. Right now it consists from just 2 test-cases: meson test --suite stress-tests --list DPDK:stress-tests / ring_stress

[PATCH v5 2/6] ring: make copying functions generic

2024-10-15 Thread Konstantin Ananyev
From: Konstantin Ananyev Note upfront: that change doesn't introduce any functional or performance changes. It is just a code-reordering for: - improve code modularity and re-usability - ability in future to re-use the same code to introduce new functionality There is no real need for enqueue_

[PATCH v5 4/6] ring/soring: introduce Staged Ordered Ring

2024-10-15 Thread Konstantin Ananyev
From: Konstantin Ananyev Staged-Ordered-Ring (SORING) provides a SW abstraction for 'ordered' queues with multiple processing 'stages'. It is based on conventional DPDK rte_ring, re-uses many of its concepts, and even substantial part of its code. It can be viewed as an 'extension' of rte_ring fu

[PATCH v5 3/6] ring: make dump function more verbose

2024-10-15 Thread Konstantin Ananyev
From: Eimear Morrissey The current rte_ring_dump function uses the generic rte_ring_headtail structure to access head/tail positions. This is incorrect for the RTS case where the head is stored in a different offset in the union of structs. Switching to a separate function for each sync type allo

[PATCH v5 1/6] ring: common functions for 'move head' ops

2024-10-15 Thread Konstantin Ananyev
From: Konstantin Ananyev Note upfront: that change doesn't introduce any functional or performance changes. It is just a code-reordering for: - code deduplication - ability in future to re-use the same code to introduce new functionality For each sync mode corresponding move_prod_head() and mo

[PATCH v5 0/6] Stage-Ordered API and other extensions for ring library

2024-10-15 Thread Konstantin Ananyev
From: Konstantin Ananyev NOTE UPFRONT: this version is still not ready for merging. Missing items: - ARM/PPC tests passing - PG update v4 -> v5 - fix public API/doc comments from Jerin - update devtools/build-dict.sh (Stephen) - fix MSVC warnings - introduce new test-suite for meson (stress) wit

RE: [PATCH 2/3] bitset: fix build for GCC without experimental API

2024-10-15 Thread Morten Brørup
> From: David Marchand [mailto:david.march...@redhat.com] > Sent: Tuesday, 15 October 2024 14.11 > > For a reason similar to the change on bitops header, hide bitset > implementation relying on experimental API. > > Fixes: 99a1197647d8 ("eal: add bitset type") > > Signed-off-by: David Marchand

RE: [PATCH 1/3] bitops: fix build for GCC without experimental API

2024-10-15 Thread Morten Brørup
> From: David Marchand [mailto:david.march...@redhat.com] > Sent: Tuesday, 15 October 2024 14.11 > > Building OVS against current DPDK fails with following warnings: > > In file included from .../ovs/dpdk-dir/include/rte_memory.h:18, > from .../ovs/dpdk-dir/include/rte_ring_core.

[PATCH 3/3] buildtools/chkincs: check headers with stable API only

2024-10-15 Thread David Marchand
An exported header should be usable w/ and w/o ALLOW_EXPERIMENTAL_API so that an application that only wants stable API may include it. Plus, the widely common case is that an application will not use internal API. Cover those cases but keep the original test. Signed-off-by: David Marchand ---

[PATCH 2/3] bitset: fix build for GCC without experimental API

2024-10-15 Thread David Marchand
For a reason similar to the change on bitops header, hide bitset implementation relying on experimental API. Fixes: 99a1197647d8 ("eal: add bitset type") Signed-off-by: David Marchand --- lib/eal/include/rte_bitset.h | 123 +++ 1 file changed, 123 insertions(+)

[PATCH 1/3] bitops: fix build for GCC without experimental API

2024-10-15 Thread David Marchand
Building OVS against current DPDK fails with following warnings: In file included from .../ovs/dpdk-dir/include/rte_memory.h:18, from .../ovs/dpdk-dir/include/rte_ring_core.h:29, from .../ovs/dpdk-dir/include/rte_ring.h:37, from .../ovs/dpdk-dir/i

[PATCH 0/3] Enhance headers check

2024-10-15 Thread David Marchand
We currently check that exported headers are fine with -DALLOW_EXPERIMENTAL_API and -DALLOW_INTERNAL_API. Such a check won't catch issues like the one fixed in patch 1, where OVS compilation is broken by the additional of experimental API in a header commonly included in other parts of DPDK. Idea

[PATCH] net/dpaa/fmlib: remove new line char from the logs

2024-10-15 Thread Hemant Agrawal
This patch remove the new line char from several logs in the fmlib base driver. Signed-off-by: Hemant Agrawal --- drivers/net/dpaa/fmlib/fm_ext.h | 21 +++-- drivers/net/dpaa/fmlib/fm_lib.c | 76 - drivers/net/dpaa/fmlib/fm_vsp.c | 20 - 3 files change

Re: [PATCH] config/riscv: name the cross file properly

2024-10-15 Thread Stanisław Kardach
I already did, though to my personal one. This patch is from a way back, I did forget about it. On Thu, Oct 3, 2024 at 2:29 PM Radoslaw Biernacki wrote: > > Staszek, can you update your email? (same with up...@semihalf.com?) > > On Wed, Oct 2, 2024 at 6:51 PM 'Stephen Hemminger' via upstream > w

RE: [PATCH v13 1/7] eal: add static per-lcore memory allocation facility

2024-10-15 Thread Morten Brørup
> +void * > +rte_lcore_var_alloc(size_t size, size_t align) > +{ > + /* Having the per-lcore buffer size aligned on cache lines > + * assures as well as having the base pointer aligned on cache > + * size assures that aligned offsets also translate to alipgned > + * pointers acro

  1   2   >