RE: [PATCH v2 01/10] net/ngbe: fix Rx buffer size in configure register

2023-02-14 Thread Jiawen Wu
On Thursday, February 9, 2023 5:00 PM, Jiawen Wu wrote: > On Wednesday, February 8, 2023 6:28 PM, Ferruh Yigit wrote: > > On 2/2/2023 9:21 AM, Jiawen Wu wrote: > > > When buffer size is less than 1K, round down makes it 0, which is an > > > error value. > > > > > > Fixes: 62fc35e63d0e ("net/ngbe: s

RE: [v2 1/5] net/mlx5/hws: fix alias_rtc_0 print location in debug dump

2023-02-14 Thread Raslan Darawsheh
Hi, > -Original Message- > From: Hamdan Igbaria > Sent: Thursday, February 2, 2023 6:03 PM > To: Hamdan Igbaria ; Slava Ovsiienko > ; NBU-Contact-Thomas Monjalon (EXTERNAL) > ; Suanming Mou ; > Matan Azrad > Cc: dev@dpdk.org; Ori Kam ; Alex Vesker > > Subject: [v2 1/5] net/mlx5/hws: fix

RE: [PATCH v3 1/2] net/i40e: replace put function

2023-02-14 Thread Morten Brørup
> From: Kamalakshitha Aligeri [mailto:kamalakshitha.alig...@arm.com] > Sent: Monday, 13 February 2023 19.18 > > Integrated zero-copy put API in mempool cache in i40e PMD. > On Ampere Altra server, l3fwd single core's performance improves by 5% > with the new API > > Signed-off-by: Kamalakshitha A

DPDK rte flow raw encap & decap actions

2023-02-14 Thread Vamsi Krishna Attunuru
Hi Ori Kam & dpdk dev team, For the below rte flow action types, the description sounds a bit confusing to me. Description says the data must start with ETH header up to the tunnel item. But the next following statement(that describes MPLSoGRE example) mentions data just holds layer 2 header. S

RE: [PATCH v4 1/2] ethdev: introduce the PHY affinity field in Tx queue API

2023-02-14 Thread Jiawei(Jonny) Wang
Hi, > -Original Message- > From: Ferruh Yigit > Sent: Friday, February 10, 2023 3:45 AM > To: Jiawei(Jonny) Wang ; Slava Ovsiienko > ; Ori Kam ; NBU-Contact- > Thomas Monjalon (EXTERNAL) ; > andrew.rybche...@oktetlabs.ru; Aman Singh ; > Yuying Zhang > Cc: dev@dpdk.org; Raslan Darawsheh

Re: [PATCH v2 01/10] net/ngbe: fix Rx buffer size in configure register

2023-02-14 Thread Ferruh Yigit
On 2/14/2023 8:15 AM, Jiawen Wu wrote: > On Thursday, February 9, 2023 5:00 PM, Jiawen Wu wrote: >> On Wednesday, February 8, 2023 6:28 PM, Ferruh Yigit wrote: >>> On 2/2/2023 9:21 AM, Jiawen Wu wrote: When buffer size is less than 1K, round down makes it 0, which is an error value.

Re: [PATCH v4 1/2] ethdev: introduce the PHY affinity field in Tx queue API

2023-02-14 Thread Ferruh Yigit
On 2/14/2023 9:38 AM, Jiawei(Jonny) Wang wrote: > Hi, > >> -Original Message- >> From: Ferruh Yigit >> Sent: Friday, February 10, 2023 3:45 AM >> To: Jiawei(Jonny) Wang ; Slava Ovsiienko >> ; Ori Kam ; NBU-Contact- >> Thomas Monjalon (EXTERNAL) ; >> andrew.rybche...@oktetlabs.ru; Aman Sin

Re: [PATCH v2] net/ice: fix ice dcf control thread crash

2023-02-14 Thread Thomas Monjalon
13/02/2023 08:16, Ke Zhang: > --- a/lib/eal/windows/include/pthread.h > +++ b/lib/eal/windows/include/pthread.h > +static inline void > +pthread_exit(__rte_unused void *__retval) > +{ > +} Please don't add more shim layer. There is a new layer rte_thread_* in lib/eal/include/rte_thread.h

Re: [PATCH 6/6] app/testpmd: factorize fwd engine Tx

2023-02-14 Thread Singh, Aman Deep
On 1/24/2023 4:17 PM, David Marchand wrote: Reduce code duplication by introducing a helper that takes care of transmitting, retrying if enabled and incrementing tx counter. Signed-off-by: David Marchand --- app/test-pmd/5tswap.c| 22 + app/test-pmd/csumonly.c | 23 +--

Re: [PATCH] net/hns3: support disable IOVA as PA mode

2023-02-14 Thread Dongdong Liu
Hi Chengwen On 2023/2/14 15:11, Chengwen Feng wrote: Claim PMD supports pmd_supports_disable_iova_as_pa. Signed-off-by: Chengwen Feng This patch looks good to me. Many thanks for your work. Acked-by: Dongdong Liu Thanks, Dongdong

Re: [PATCH] disable lock annotation with clang 3.4.2

2023-02-14 Thread Thomas Monjalon
13/02/2023 17:36, Raslan Darawsheh: > From: Morten Brørup > > From: Bruce Richardson [mailto:bruce.richard...@intel.com] > > > On Mon, Feb 13, 2023 at 03:44:55PM +0100, David Marchand wrote: > > > > Venerable RHEL7 clang 3.4.2 has (at least) two issues with lock > > > > annotations. > > > > > > >

[no subject]

2023-02-14 Thread dev-bounces

RE: [EXT] Re: [PATCH v1 1/5] mempool: remove internal tracepoints from version map

2023-02-14 Thread Ankur Dwivedi
>Subject: Re: [EXT] Re: [PATCH v1 1/5] mempool: remove internal tracepoints >from version map > >On Fri, Feb 10, 2023 at 7:54 PM David Marchand > wrote: >> >> On Fri, Feb 10, 2023 at 8:06 AM Jerin Jacob wrote: >> > >> > On Fri, Feb 10, 2023 at 12:30 PM Ankur Dwivedi >wrote: >> > > >> > > >On Thu,

Re: [PATCH 0/6] net/hns3: some code optimization for Rx/Tx function

2023-02-14 Thread Ferruh Yigit
On 2/11/2023 9:18 AM, Dongdong Liu wrote: > This patchset is to do some code optimization for Rx/Tx function. > > Huisong Li (6): > net/hns3: fix querying dummy function failed > net/hns3: add debug info for Rx/Tx dummy function > net/hns3: remove debug condition for Tx prepare > net/hns3:

[PATCH v2 0/5] add port to port feature

2023-02-14 Thread Mingxia Liu
This patchset add the support of port to port feature. Port-to-port packets are looped back through the host/NIC memory, without software involvement, using the LAN RX and LAN TX DMA engines. And this patchset only support the same port for Tx and Rx queue. This patchset is based on the cpfl PMD

[PATCH v2 1/5] net/cpfl: add some structure for hairpin queue

2023-02-14 Thread Mingxia Liu
This patch add some structure for hairpin queue, cpfl_rx_queue/cpfl_tx_queue/cpfl_vport. Signed-off-by: Mingxia Liu --- drivers/net/cpfl/cpfl_ethdev.c | 102 +++- drivers/net/cpfl/cpfl_ethdev.h | 8 +- drivers/net/cpfl/cpfl_rxtx.c| 196 +---

[PATCH v2 2/5] net/cpfl: update device initialization for hairpin queue

2023-02-14 Thread Mingxia Liu
This patch update device initialization for hairpin queue. Signed-off-by: Beilei Xing Signed-off-by: Xiao Wang Signed-off-by: Junfeng Guo Signed-off-by: Mingxia Liu --- drivers/common/idpf/idpf_common_device.c | 51 drivers/common/idpf/idpf_common_device.h | 2 + drivers

[PATCH v2 3/5] net/cpfl: add hairpin queue enable and setup

2023-02-14 Thread Mingxia Liu
This patch add hairpin queue ops - hairpin_cap_get - rx_hairpin_queue_setup - tx_hairpin_queue_setup Signed-off-by: Mingxia Liu --- drivers/net/cpfl/cpfl_ethdev.c | 15 ++ drivers/net/cpfl/cpfl_rxtx.c | 443 - drivers/net/cpfl/cpfl_rxtx.h | 22 +- 3 files

[PATCH v2 4/5] net/cpfl: support hairpin queue start and stop

2023-02-14 Thread Mingxia Liu
This patch add hairpin queue start and stop. Signed-off-by: Beilei Xing Signed-off-by: Xiao Wang Signed-off-by: Junfeng Guo Signed-off-by: Mingxia Liu --- drivers/common/idpf/idpf_common_device.c | 1 + drivers/common/idpf/idpf_common_virtchnl.c | 72 ++- drivers/common/idpf/idpf_com

[PATCH v2 5/5] net/cpfl: adjust RSS LUT to exclude hairpin queue

2023-02-14 Thread Mingxia Liu
RSS should direct traffic only to the normal data Rx queues, so when hairpin queue configured, RSS LUT should be adjusted to exclude the hairpin queue. Signed-off-by: Xiao Wang Signed-off-by: Junfeng Guo Signed-off-by: Mingxia Liu --- drivers/net/cpfl/cpfl_ethdev.c | 38 ---

[PATCH v3 1/5] net/mlx5: adopt IPv6 routing extension prm definition

2023-02-14 Thread Rongwei Liu
Per newest PRM definition, sample_id stands for 3 parts of information instead of single uint32_t id: sample_id + modify_filed_id + format_select_dw. Also new FW capability bits have been introduces to identify the new capability. Signed-off-by: Rongwei Liu Acked-by: Viacheslav Ovsiienko --- d

[PATCH v3 0/5] add IPv6 routing extension implementation

2023-02-14 Thread Rongwei Liu
Add IPv6 routing extension matching and IPv6 protocol modify filed support. This patch relies on the preceding ethdev one: http://patches.dpdk.org/project/dpdk/patch/20230202100021.2445976-2-rongw...@nvidia.com/ Including one commit from Gregory to pass the compilation. v3: add more sentences in

[PATCH v3 2/5] net/mlx5/hws: Definer, add mlx5dr context to definer_conv_data

2023-02-14 Thread Rongwei Liu
From: Gregory Etelson New mlx5dr_context member replaces mlx5dr_cmd_query_caps. Capabilities structure is a member of mlx5dr_context. Signed-off-by: Gregory Etelson Signed-off-by: Rongwei Liu Reviewed-by: Alex Vesker Acked-by: Viacheslav Ovsiienko --- drivers/net/mlx5/hws/mlx5dr_definer.c |

[PATCH v3 4/5] net/mlx5/hws: add modify IPv6 protocol implementation

2023-02-14 Thread Rongwei Liu
Add HWS modify IPv6 protocol implementation. Signed-off-by: Rongwei Liu Acked-by: Viacheslav Ovsiienko --- drivers/common/mlx5/mlx5_prm.h | 1 + drivers/net/mlx5/mlx5_flow_dv.c | 10 ++ 2 files changed, 11 insertions(+) diff --git a/drivers/common/mlx5/mlx5_prm.h b/drivers/common/mlx

[PATCH v3 3/5] net/mlx5/hws: add IPv6 routing extension matching support

2023-02-14 Thread Rongwei Liu
Add mlx5 HWS logic to match IPv6 routing extension header. Once detecting IPv6 matching extension items in pattern template create callback, PMD allocates a flex parser to sample the first dword of srv6 header. Only support next_hdr/segments_left/type for now. Signed-off-by: Rongwei Liu Reviewe

[PATCH v3 5/5] doc/mlx5: add IPv6 routing extension matching docs

2023-02-14 Thread Rongwei Liu
Update mlx5 related document on IPv6 routing extension header matching. Signed-off-by: Rongwei Liu Acked-by: Viacheslav Ovsiienko --- doc/guides/nics/features/default.ini | 1 + doc/guides/nics/features/mlx5.ini| 1 + doc/guides/nics/mlx5.rst | 10 ++ 3 files changed,

Re: [PATCH v3] ethdev: telemetry xstats support hide zero

2023-02-14 Thread Ferruh Yigit
On 2/14/2023 1:35 AM, Chengwen Feng wrote: > The number of xstats may be large, after the hide zero option is added, > only non-zero values can be displayed. > > So display xstats with hide zero: > /ethdev/xstats,0,hide_zero=true > and without hide zero: > /ethdev/xstats,0,hide_zero=fa

[PATCH v8 1/4] ethdev: skip congestion management configuration

2023-02-14 Thread Rakesh Kudurumalla
Introduce new flow action to skip congestion management configuration This feature helps to skip the congestion management processing based on per flow or the packet color identified by rte_flow meter object. For example, If one Rx queue configured as RED congestion and application wants tobypass t

[PATCH v8 2/4] app/testpmd: add skip cman support for testpmd

2023-02-14 Thread Rakesh Kudurumalla
added support for testpmd application to accept skip_cman action while configuring policy action Signed-off-by: Rakesh Kudurumalla --- app/test-pmd/cmdline_flow.c | 9 + 1 file changed, 9 insertions(+) diff --git a/app/test-pmd/cmdline_flow.c b/app/test-pmd/cmdline_flow.c index 88108498

[PATCH v8 3/4] net/cnxk: skip red drop for ingress policer

2023-02-14 Thread Rakesh Kudurumalla
Dropping of packets is based on action configured to meter.If both skip_red and drop actions are configured then tail dropping in invoked else if only drop action is configured then RED drop is invoked.This action is supported only when RED is configured using rte_eth_cman_config_set() Signed-off-

[PATCH v8 4/4] doc: update release notes for 23_03.rst

2023-02-14 Thread Rakesh Kudurumalla
Updated release notes on new action to skip congestion management configuration Signed-off-by: Rakesh Kudurumalla --- doc/guides/rel_notes/release_23_03.rst | 11 +++ 1 file changed, 11 insertions(+) diff --git a/doc/guides/rel_notes/release_23_03.rst b/doc/guides/rel_notes/release_23_

[PATCH] net/sfc: fix MAC address entry leak in transfer flow parsing

2023-02-14 Thread Ivan Malov
When the action parsing helper discovers it can "attach" to an existing action set, it must invoke "delete" on the MAC address(es) that it has "attached" to during parsing. That is because the action set itself (i.e. not the flow rule entry) holds a reference of the address(es). Fixes: 4c6005999e4

Re: [PATCH v6 2/3] app/testpmd: add skip cman support for testpmd

2023-02-14 Thread Ferruh Yigit
On 2/10/2023 11:08 PM, Ferruh Yigit wrote: > On 2/10/2023 8:26 AM, Rakesh Kudurumalla wrote: >> added support for testpmd application to accept >> skip_cman action while configuring policy action >> > > Can you please give some sample testpmd commands with new action in > commit log, it helps. >

[PATCH] net/sfc: enforce fate action in transfer flow rules

2023-02-14 Thread Ivan Malov
According to DPDK documentation, not specifying a fate action in a flow rule results in undefined behaviour. Define right behaviour in the driver. Fixes: 0839236d0391 ("net/sfc: support flow action drop in transfer rules") Cc: sta...@dpdk.org Signed-off-by: Ivan Malov Reviewed-by: Viacheslav Gal

Re: [PATCH v8 1/4] ethdev: skip congestion management configuration

2023-02-14 Thread Ferruh Yigit
On 2/14/2023 1:04 PM, Rakesh Kudurumalla wrote: > Introduce new flow action to skip congestion management configuration > This feature helps to skip the congestion management processing > based on per flow or the packet color identified by > rte_flow meter object. For example, If one Rx queue confi

Re: [PATCH v8 4/4] doc: update release notes for 23_03.rst

2023-02-14 Thread Ferruh Yigit
On 2/14/2023 1:04 PM, Rakesh Kudurumalla wrote: > Updated release notes on new action to skip > congestion management configuration > > Signed-off-by: Rakesh Kudurumalla please distribute this patch to relevant patches, like flow api update can go into first patch (ethdev one), driver update to

Re: [PATCH v8 2/4] app/testpmd: add skip cman support for testpmd

2023-02-14 Thread Ferruh Yigit
On 2/14/2023 1:04 PM, Rakesh Kudurumalla wrote: > added support for testpmd application to accept > skip_cman action while configuring policy action > > Signed-off-by: Rakesh Kudurumalla > --- > app/test-pmd/cmdline_flow.c | 9 + > 1 file changed, 9 insertions(+) > > diff --git a/app/te

[PATCH] net/sfc: avoid unnecessary flow pattern item traversal

2023-02-14 Thread Ivan Malov
Currently, the code tries to look up a user-provided item by traversing those known to the PMD. Avoid the traversal since it is easier to access items directly by their IDs, with necessary checks to avoid reading past the buffer. Signed-off-by: Ivan Malov Reviewed-by: Viacheslav Galaktionov Revi

Re: [PATCH] net/sfc: avoid unnecessary flow pattern item traversal

2023-02-14 Thread Andrew Rybchenko
On 2/14/23 16:27, Ivan Malov wrote: Currently, the code tries to look up a user-provided item by traversing those known to the PMD. Avoid the traversal since it is easier to access items directly by their IDs, with necessary checks to avoid reading past the buffer. Signed-off-by: Ivan Malov Rev

Re: [PATCH] net/sfc: enforce fate action in transfer flow rules

2023-02-14 Thread Andrew Rybchenko
On 2/14/23 16:12, Ivan Malov wrote: According to DPDK documentation, not specifying a fate action in a flow rule results in undefined behaviour. Define right behaviour in the driver. Fixes: 0839236d0391 ("net/sfc: support flow action drop in transfer rules") Cc: sta...@dpdk.org Signed-off-by: I

Re: [PATCH] net/sfc: fix MAC address entry leak in transfer flow parsing

2023-02-14 Thread Andrew Rybchenko
On 2/14/23 16:06, Ivan Malov wrote: When the action parsing helper discovers it can "attach" to an existing action set, it must invoke "delete" on the MAC address(es) that it has "attached" to during parsing. That is because the action set itself (i.e. not the flow rule entry) holds a reference o

Re: [PATCH] net/nfp: refresh function comment

2023-02-14 Thread Ferruh Yigit
On 2/3/2023 3:13 AM, Chaoyong He wrote: > From: Zerun Fu > > Fix sections where the documentation have gone out of sync with the > function names. While at it add documentation for functions to > make it clear on what device they operate on. > > Signed-off-by: Zerun Fu > Reviewed-by: Chaoyong H

Re: [PATCH v8] mempool cache: add zero-copy get and put functions

2023-02-14 Thread Andrew Rybchenko
On 2/13/23 13:25, Morten Brørup wrote: From: Olivier Matz [mailto:olivier.m...@6wind.com] Sent: Monday, 13 February 2023 10.37 Hello, Thank you for this work, and sorry for the late feedback too. Better late than never. And it's a core library, so important to get it right! On Mon, Feb 13,

RE: [PATCH v5] net/af_xdp: support CNI Integration

2023-02-14 Thread Mcnamara, John
> -Original Message- > From: Koikkara Reeny, Shibin > Sent: Friday, February 10, 2023 3:48 PM > To: dev@dpdk.org; Zhang, Qi Z ; Burakov, Anatoly > ; Richardson, Bruce > ; Mcnamara, John > Cc: Loftus, Ciara ; Koikkara Reeny, Shibin > > Subject: [PATCH v5] net/af_xdp: support CNI Integr

Re: [PATCH 0/2] add VXLAN inner TSO with noudpcsum support for NFP cards

2023-02-14 Thread Ferruh Yigit
On 2/3/2023 7:05 AM, Chaoyong He wrote: > This patch series mainly add the VXLAN inner TSO support with noudpcsum > for NFP cards, includes: > - Update related macrio definitions in Tx flag  > - Add the support for VXLAN inner TSO with noudpcsum > > Fei Qin (2): > net/nfp: update macro definitio

[PATCH v5 0/2] Added support for Tx queue mapping with an aggregated port

2023-02-14 Thread Jiawei Wang
When multiple ports are aggregated into a single DPDK port, (example: Linux bonding, DPDK bonding, failsafe, etc.), we want to know which port is used for Rx and Tx. This patch introduces the new ethdev API rte_eth_dev_map_aggr_tx_affinity(), it's used to map a Tx queue with an aggregated port of

[PATCH v5 1/2] ethdev: introduce the Tx map API for aggregated ports

2023-02-14 Thread Jiawei Wang
When multiple ports are aggregated into a single DPDK port, (example: Linux bonding, DPDK bonding, failsafe, etc.), we want to know which port use for Tx via a queue. This patch introduces the new ethdev API rte_eth_dev_map_aggr_tx_affinity(), it's used to map a Tx queue with an aggregated port of

[PATCH v5 2/2] ethdev: add Aggregated affinity match item

2023-02-14 Thread Jiawei Wang
When multiple ports are aggregated into a single DPDK port, (example: Linux bonding, DPDK bonding, failsafe, etc.), we want to know which port is used for Rx and Tx. This patch allows to map a Rx queue with an aggregated port by using a flow rule. The new item is called RTE_FLOW_ITEM_TYPE_AGGR_AFF

Re: [PATCH v2 4/6] test/dmadev: check result for device stop

2023-02-14 Thread Kevin Laatz
On 16/01/2023 17:37, Bruce Richardson wrote: The DMA device stop API can return an error value so check that return value when running dmadev unit tests. Signed-off-by: Bruce Richardson --- app/test/test_dmadev.c | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) Acked-by: Kevin Laa

Re: [PATCH v2 3/6] dma/ioat: fix incorrect error reporting on restart

2023-02-14 Thread Kevin Laatz
On 16/01/2023 17:37, Bruce Richardson wrote: When the DMA device was stopped and restarted by the driver, the control register specifying the behaviour on error was not getting correctly reset. This caused unit tests to fail as explicitly introduced errors were got getting reported back. Fix by

Re: [PATCH v2 6/6] test/dmadev: add tests for stopping and restarting dev

2023-02-14 Thread Kevin Laatz
On 16/01/2023 17:37, Bruce Richardson wrote: Validate device operation when a device is stopped or restarted. The only complication - and gap in the dmadev ABI specification - is what happens to the job ids on restart. Some drivers reset them to 0, while others continue where things left off. Ta

Re: [PATCH v2 1/6] dma/ioat: fix device stop if no copies done

2023-02-14 Thread Kevin Laatz
On 16/01/2023 17:37, Bruce Richardson wrote: The HW DMA devices supported by IOAT driver do not transition to the "active" state until the first operation is started by the HW. Therefore, if the user calls "rte_dma_stop()" on a device without triggering any operations, the sequence of commands to

Re: [PATCH v2 2/6] dma/ioat: fix incorrectly set indexes after restart

2023-02-14 Thread Kevin Laatz
On 16/01/2023 17:37, Bruce Richardson wrote: As part of the process of restarting a dma instance, the IOAT driver will reset the HW addresses and state values. The read and write indexes for SW use need to be similarly reset to keep HW and SW in sync. Fixes: 583f046dd404 ("dma/ioat: add start an

Re: [PATCH v2 5/6] test/dmadev: create separate function for single copy test

2023-02-14 Thread Kevin Laatz
On 16/01/2023 17:37, Bruce Richardson wrote: The copy tests for dmadev had separate blocks in the test function for single copy and burst copies. Separate out the single-copy block to its own function so that it can be re-used if necessary. Signed-off-by: Bruce Richardson --- app/test/test_dm

RE: [EXT] [PATCH v3 3/4] app/test-compress-perf: add algo option

2023-02-14 Thread Michael Baum
On Monday, 13 February 2023 9:29, Akhil Goyal wrote: > > > Add a command line option `algo` to select the compress algorithm > > supported by the compress API: null (DMA), deflate and lzs. > > > > Default for deflate. > > > > Signed-off-by: Matan Azrad > > Signed-off-by: Michael Baum > > --- >

RE: [EXT] [PATCH v3 2/4] app/test-compress-perf: allow test single compress operation

2023-02-14 Thread Michael Baum
On Monday, 13 February 2023 9:23, Akhil Goyal wrote: > > From the description it seems to be a bug in previous implementation. > Can we back port it? And update the patch title accordingly? I'll update and send a new version. > Also, release note update is not required for this fix. I'll remove

[PATCH v4 0/4] compressdev: add LZ4 support

2023-02-14 Thread Michael Baum
Add support for LZ4 compression algorithm for both API and app. In addition, enable app to test de/comp only. This option already exists in both app doc and arguments but isn't implemented inside the application. LZ4: https://github.com/lz4/lz4 RFC: https://patchwork.dpdk.org/project/dpdk/patch/2

[PATCH v4 1/4] compressdev: add LZ4 algorithm support

2023-02-14 Thread Michael Baum
Add support for LZ4 algorithm: - Add Lz4 param structure to XFORM structures. - Add capabilities flags for LZ4 params. - Add xxHash-32 checksum and capabilities flag. Signed-off-by: Michael Baum --- doc/guides/compressdevs/features/default.ini | 7 ++ doc/guides/rel_notes/release_23_03.rst

[PATCH v4 3/4] app/test-compress-perf: fix missing test single compress op

2023-02-14 Thread Michael Baum
Part of the application options is to test only compress and only decompress but actually the application ignores this user option and tries to test always both compress and decompress. Allow testing only compress and only decompress. Fixes: e0b6287c035d ("app/compress-perf: add parser") Cc: toma

[PATCH v4 2/4] app/test-compress-perf: fix some typos

2023-02-14 Thread Michael Baum
Fix some typos in comments and prints in this app. Fixes: e0b6287c035d ("app/compress-perf: add parser") Fixes: 2695db95a147 ("test/compress: add cycle-count mode to perf tool") Fixes: 971d89f5116b ("app/compress-perf: prevent output buffer overflow") Cc: tomaszx.jozw...@intel.com Cc: arturx.tryb.

[PATCH v4 4/4] app/test-compress-perf: add algo option

2023-02-14 Thread Michael Baum
Add a command line option `algo` to select the compress algorithm supported by the compress API: null (DMA), deflate, lz4 and lzs. Default for deflate. Signed-off-by: Matan Azrad Signed-off-by: Michael Baum --- app/test-compress-perf/comp_perf_options.h| 3 + .../comp_perf_options_parse.c

RE: [EXT] Re: [dpdk-dev] [PATCH 2/4] cryptodev: promote asym APIs to stable

2023-02-14 Thread Kusztal, ArkadiuszX
> -Original Message- > From: Akhil Goyal > Sent: Thursday, February 2, 2023 11:49 AM > To: Kinsella, Ray ; Kusztal, ArkadiuszX > ; dev@dpdk.org > Cc: tho...@monjalon.net; david.march...@redhat.com; > hemant.agra...@nxp.com; Anoob Joseph ; De Lara > Guarch, Pablo ; Trahe, Fiona > ; Doherty

Re: [PATCH 1/6] app/testpmd: factorize core cycles record

2023-02-14 Thread Ferruh Yigit
On 1/24/2023 10:47 AM, David Marchand wrote: > Rather than have each forward engines deal with core cycles recording, > move this to testpmd common code. > fwd engines just need to report that they did some busy work. > > Signed-off-by: David Marchand Reviewed-by: Ferruh Yigit

Re: [PATCH 2/6] app/testpmd: don't send unprepared packets

2023-02-14 Thread Ferruh Yigit
On 1/24/2023 10:47 AM, David Marchand wrote: > "unprepared" packets could get to the wire in the retry loop. > > Split packets freeing in two stages: one for preparation failure, and > one for transmission failure. > Adjust dropped counter update accordingly. > > Fixes: 6b520d54ebfe ("app/testpmd

Re: [PATCH 3/6] app/testpmd: bulk free mbufs

2023-02-14 Thread Ferruh Yigit
On 1/24/2023 10:47 AM, David Marchand wrote: > Use the bulk free helper. > > Signed-off-by: David Marchand Reviewed-by: Ferruh Yigit

Re: [PATCH 4/6] app/testpmd: factorize fwd engine init

2023-02-14 Thread Ferruh Yigit
On 1/24/2023 10:47 AM, David Marchand wrote: > Reduce code duplication by introducing a helper that takes care of > initialising the fs object. > > While at it, remove unneeded initialisation of fwd_engine empty fields. > > Signed-off-by: David Marchand Reviewed-by: Ferruh Yigit

Re: [PATCH 5/6] app/testpmd: factorize fwd engine Rx

2023-02-14 Thread Ferruh Yigit
On 1/24/2023 10:47 AM, David Marchand wrote: > Reduce code duplication by introducing a helper that takes care of > receiving packets and incrementing rx counter. > > Signed-off-by: David Marchand Reviewed-by: Ferruh Yigit <...> > @@ -857,6 +857,18 @@ inc_tx_burst_stats(struct fwd_stream *f

Re: [PATCH 6/6] app/testpmd: factorize fwd engine Tx

2023-02-14 Thread Ferruh Yigit
On 1/24/2023 10:47 AM, David Marchand wrote: > Reduce code duplication by introducing a helper that takes care of > transmitting, retrying if enabled and incrementing tx counter. > > Signed-off-by: David Marchand <...> > diff --git a/app/test-pmd/noisy_vnf.c b/app/test-pmd/noisy_vnf.c > index 9

Re: [PATCH 6/6] app/testpmd: factorize fwd engine Tx

2023-02-14 Thread Ferruh Yigit
On 2/14/2023 11:03 AM, Singh, Aman Deep wrote: > > On 1/24/2023 4:17 PM, David Marchand wrote: >> Reduce code duplication by introducing a helper that takes care of >> transmitting, retrying if enabled and incrementing tx counter. >> >> Signed-off-by: David Marchand <...> >> diff --git a/app/te

Re: [PATCH 0/6] Testpmd code cleanup

2023-02-14 Thread Ferruh Yigit
On 1/25/2023 1:50 PM, Robin Jarry wrote: > David Marchand, Jan 24, 2023 at 11:47: >> Here is a series to reduce code duplication in testpmd. >> >> This work started from looking at Robin series on reporting lcore busy >> cycles in telemetry, which is then added in testpmd [1]. While looking >> at t

Re: [PATCH] net/sfc: fix MAC address entry leak in transfer flow parsing

2023-02-14 Thread Ferruh Yigit
On 2/14/2023 1:41 PM, Andrew Rybchenko wrote: > On 2/14/23 16:06, Ivan Malov wrote: >> When the action parsing helper discovers it can "attach" to >> an existing action set, it must invoke "delete" on the MAC >> address(es) that it has "attached" to during parsing. That >> is because the action set

[PATCH v6 00/22] Replace use of static logtypes in libraries

2023-02-14 Thread Stephen Hemminger
This patchset removes the main uses of static LOGTYPE's in DPDK libraries. It starts with the easy one and goes on to the more complex ones. Note: there is one patch in this series that will get flagged incorrectly as an ABI change. v6 - fix typo in kni port v5 - fix use of LOGTYPE PORT and POW

[PATCH v6 01/22] gso: don't log message on non TCP/UDP

2023-02-14 Thread Stephen Hemminger
If a large packet is passed into GSO routines of unknown protocol then library would log a message. Better to tell the application instead of logging. Fixes: 119583797b6a ("gso: support TCP/IPv4 GSO") Cc: jiayu...@intel.com Signed-off-by: Stephen Hemminger --- lib/gso/rte_gso.c | 5 ++--- 1 file

[PATCH v6 02/22] eal: drop no longer used GSO logtype

2023-02-14 Thread Stephen Hemminger
The message that used this was replaced in previous patch. Signed-off-by: Stephen Hemminger --- lib/eal/common/eal_common_log.c | 1 - lib/eal/include/rte_log.h | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/eal/common/eal_common_log.c b/lib/eal/common/eal_common

[PATCH v6 03/22] log: drop unused RTE_LOGTYPE_TIMER

2023-02-14 Thread Stephen Hemminger
The timer code does not use rte_log. Signed-off-by: Stephen Hemminger --- lib/eal/common/eal_common_log.c | 1 - lib/eal/include/rte_log.h | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/eal/common/eal_common_log.c b/lib/eal/common/eal_common_log.c index 894701e8c

[PATCH v6 04/22] efd: replace RTE_LOGTYPE_EFD with dynamic type

2023-02-14 Thread Stephen Hemminger
Replace all uses of the global logtype with a dynamic log type. Signed-off-by: Stephen Hemminger --- lib/eal/common/eal_common_log.c | 1 - lib/eal/include/rte_log.h | 2 +- lib/efd/rte_efd.c | 3 +++ 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/eal/comm

[PATCH v6 05/22] mbuf: replace RTE_LOGTYPE_MBUF with dynamic type

2023-02-14 Thread Stephen Hemminger
Introduce a new dynamic logtype for mbuf related messages. Since this is used in multiple files put one macro in mbuf_log.h Signed-off-by: Stephen Hemminger --- lib/eal/common/eal_common_log.c | 1 - lib/eal/include/rte_log.h | 2 +- lib/mbuf/mbuf_log.h | 4 lib/mbuf/rte_m

[PATCH v6 06/22] acl: replace LOGTYPE_ACL with dynamic type

2023-02-14 Thread Stephen Hemminger
Get rid of RTE_LOGTYPE_ACL and RTE_LOGTYPE_MALLOC. For ACL library use a dynamic type. The one message using RTE_LOGTYPE_MALLOC should have been under the ACL logtype anyway. The test code should not have been using fixed log type so just change that to stderr. Signed-off-by: Stephen Hemminger -

[PATCH v6 07/22] examples/power: replace use of RTE_LOGTYPE_POWER

2023-02-14 Thread Stephen Hemminger
Don't use static static logtype in sample application. Signed-off-by: Stephen Hemminger --- examples/distributor/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/distributor/main.c b/examples/distributor/main.c index 21304d661873..542f76cf9664 100644 --- a/exam

[PATCH v6 08/22] examples/l3fwd-power: replace use of RTE_LOGTYPE_POWER

2023-02-14 Thread Stephen Hemminger
Convert to using a dynamic logtype for the application. Signed-off-by: Stephen Hemminger --- examples/l3fwd-power/main.c | 15 --- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/examples/l3fwd-power/main.c b/examples/l3fwd-power/main.c index caf26b373e8d..8e094c1bdda5

[PATCH v6 09/22] power: replace RTE_LOGTYPE_POWER with dynamic type

2023-02-14 Thread Stephen Hemminger
Use dynamic log type for power library. Also replace use of RTE_LOGTYPE_USER1 with lib.power.guest. Signed-off-by: Stephen Hemminger --- lib/eal/common/eal_common_log.c | 1 - lib/eal/include/rte_log.h| 2 +- lib/power/guest_channel.c| 3 ++- lib/power/power_common.c | 2

[PATCH v6 10/22] ring: replace RTE_LOGTYPE_RING with dynamic type

2023-02-14 Thread Stephen Hemminger
The logtype for ring only used in library. Signed-off-by: Stephen Hemminger --- lib/eal/common/eal_common_log.c | 1 - lib/eal/include/rte_log.h | 2 +- lib/ring/rte_ring.c | 3 +++ 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/eal/common/eal_common_log.c b

[PATCH v6 11/22] mempool: replace RTE_LOGTYPE_MEMPOOL with dynamic type

2023-02-14 Thread Stephen Hemminger
Convert from RTE_LOGTYPE_MEMPOOL to logtype_mempool. Signed-off-by: Stephen Hemminger --- lib/eal/common/eal_common_log.c | 1 - lib/eal/include/rte_log.h | 2 +- lib/mempool/rte_mempool.c | 3 +++ lib/mempool/rte_mempool_log.h | 4 lib/mempool/rte_mempool_ops.c | 1 + 5 fil

[PATCH v6 13/22] kni: replace RTE_LOGTYPE_KNI with dynamic type

2023-02-14 Thread Stephen Hemminger
Even though KNI will eventually disappear, fix the logtype now. Signed-off-by: Stephen Hemminger --- lib/eal/common/eal_common_log.c | 1 - lib/eal/include/rte_log.h | 2 +- lib/kni/rte_kni.c | 3 +++ 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/eal/comm

[PATCH v6 14/22] sched: replace RTE_LOGTYPE_SCHED with dynamic type

2023-02-14 Thread Stephen Hemminger
Also can remove unused RTE_LOGTYPE_METER Signed-off-by: Stephen Hemminger --- lib/eal/common/eal_common_log.c | 2 -- lib/eal/include/rte_log.h | 4 ++-- lib/sched/rte_pie.c | 1 + lib/sched/rte_sched.c | 5 + lib/sched/rte_sched_log.h | 4 5 files chan

[PATCH v6 12/22] lpm: replace RTE_LOGTYPE_LPM with dynamic types

2023-02-14 Thread Stephen Hemminger
Split lpm and lpm6 into separate log types since they are in different files and user may want to change log levels for IPv4 vs IPv6. For rib and fib libraries give them own types as well. Signed-off-by: Stephen Hemminger --- lib/eal/common/eal_common_log.c | 1 - lib/eal/include/rte_log.h

[PATCH v6 15/22] examples/ipsecgw: replace RTE_LOGTYPE_PORT

2023-02-14 Thread Stephen Hemminger
Looks like some code got copy/paste in to the IPSEC gateway example from another place. Shouldn't be using RTE_LOGTYPE_PORT here. Fixes: ec17993a145a ("examples/ipsec-secgw: support security offload") Cc: akhil.go...@nxp.com Signed-off-by: Stephen Hemminger --- examples/ipsec-secgw/sa.c | 6 +++-

[PATCH v6 16/22] port: replace RTE_LOGTYPE_PORT with dynamic type

2023-02-14 Thread Stephen Hemminger
Split up the single static RTE_LOGTYPE_PORT into separate sub types for each component: port.ethdev, port.evendev, ... Signed-off-by: Stephen Hemminger --- lib/eal/common/eal_common_log.c | 1 - lib/eal/include/rte_log.h | 2 +- lib/port/rte_port_ethdev.c | 3 +++ lib/port/rte_port_ev

[PATCH v6 17/22] table: convert RTE_LOGTYPE_TABLE to dynamic logtype

2023-02-14 Thread Stephen Hemminger
Use logtype suffixes for various components of this library. Signed-off-by: Stephen Hemminger --- lib/eal/common/eal_common_log.c | 1 - lib/eal/include/rte_log.h | 2 +- lib/table/rte_table_acl.c | 3 +++ lib/table/rte_table_array.c | 3 +++ lib/table/rte_table_hash_cuck

[PATCH v6 18/22] app/test: remove use of RTE_LOGTYPE_PIPELINE

2023-02-14 Thread Stephen Hemminger
Instead of using static type PIPELINE for logging in test application use stderr instead. If not testing RTE_LOG() better to not use it since log also goes to syslog. Signed-off-by: Stephen Hemminger --- app/test/test_table_acl.c | 50 -- app/test/test_table

[PATCH v6 19/22] pipeline: replace RTE_LOGTYPE_PIPELINE with dynamic type

2023-02-14 Thread Stephen Hemminger
Use a dynamically allocated logtype. Signed-off-by: Stephen Hemminger --- lib/eal/common/eal_common_log.c | 1 - lib/eal/include/rte_log.h | 2 +- lib/pipeline/rte_pipeline.c | 3 +++ 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/eal/common/eal_common_log.c b/lib/e

[PATCH v6 20/22] hash: move rte_thash_gfni stubs out of header file

2023-02-14 Thread Stephen Hemminger
Having stubs in header file makes it harder to update RTE_LOG(). Also modify to only print warning once. Signed-off-by: Stephen Hemminger --- lib/hash/meson.build | 8 +++- lib/hash/rte_thash_gfni.c | 43 +++ lib/hash/rte_thash_gfni.h | 28 +-

[PATCH v6 21/22] hash: move rte_hash_set_alg out header

2023-02-14 Thread Stephen Hemminger
The code for setting algorithm for hash is not at all perf sensitive, and doing it inline has a couple of problems. First, it means that if multiple files include the header, then the initialization gets done multiple times. But also, it makes it harder to fix usage of RTE_LOG(). Despite what the

[PATCH v6 22/22] hash: convert RTE_LOGTYPE_HASH to dynamic type

2023-02-14 Thread Stephen Hemminger
Use dynamic type for hash and add subtypes for crc and gfni. Signed-off-by: Stephen Hemminger --- lib/eal/common/eal_common_log.c | 1 - lib/eal/include/rte_log.h | 2 +- lib/hash/rte_cuckoo_hash.c | 5 + lib/hash/rte_fbk_hash.c | 3 +++ lib/hash/rte_hash_crc.c | 3

Re: [PATCH v4 3/3] ring: add telemetry cmd for ring info

2023-02-14 Thread Konstantin Ananyev
10/02/2023 02:48, Jie Hai пишет: This patch supports dump of ring information by its name. An example using this command is shown below: --> /ring/info,MP_mb_pool_0 { "/ring/info": { "name": "MP_mb_pool_0", "socket": 0, "flags": "0x0", "producer_type": "MP", "consumer

Re: [PATCH v2 4/6] test/dmadev: check result for device stop

2023-02-14 Thread fengchengwen
Sorry late to see. On 2023/1/17 1:37, Bruce Richardson wrote: > The DMA device stop API can return an error value so check that return > value when running dmadev unit tests. > > Signed-off-by: Bruce Richardson > --- > app/test/test_dmadev.c | 6 +- > 1 file changed, 5 insertions(+), 1 dele

Re: [PATCH v2 5/6] test/dmadev: create separate function for single copy test

2023-02-14 Thread fengchengwen
On 2023/1/17 1:37, Bruce Richardson wrote: > The copy tests for dmadev had separate blocks in the test function for > single copy and burst copies. Separate out the single-copy block to its > own function so that it can be re-used if necessary. > > Signed-off-by: Bruce Richardson Acked-by: Cheng

Re: [PATCH v2 6/6] test/dmadev: add tests for stopping and restarting dev

2023-02-14 Thread fengchengwen
On 2023/1/17 1:37, Bruce Richardson wrote: > Validate device operation when a device is stopped or restarted. > > The only complication - and gap in the dmadev ABI specification - is > what happens to the job ids on restart. Some drivers reset them to 0, > while others continue where things left o

[PATCH v3] net/txgbe: fix Rx buffer size in configure register

2023-02-14 Thread Jiawen Wu
When round up buffer size to 1K, to configure the register, hardware will receive packets exceeding the buffer size in LRO mode. It will cause a segment fault in the receive function. Fixes: be797cbf4582 ("net/txgbe: add Rx and Tx init") Cc: sta...@dpdk.org Signed-off-by: Jiawen Wu --- drivers/

Re: [PATCH v4 0/3] add telemetry cmds for ring

2023-02-14 Thread fengchengwen
LGTM Series-acked-by: Chengwen Feng On 2023/2/10 10:48, Jie Hai wrote: > This patch set supports telemetry cmd to list rings and dump information > of a ring by its name. > > v1->v2: > 1. Add space after "switch". > 2. Fix wrong strlen parameter. > > v2->v3: > 1. Remove prefix "rte_" for static

  1   2   >