[PATCH] build: detect backtrace availability

2023-01-08 Thread Thomas Monjalon
Backtrace dump is available: - always on Windows - on Linux/BSD if execinfo.h is available (not anymore on Alpine) The flag RTE_BACKTRACE was set unconditionnaly in rte_config.h. It is now set only if the feature is available. Note: Alpine Linux has decided to remove libexecinfo s

RE: [PATCH v2 05/15] common/idpf: add vport init/deinit

2023-01-08 Thread Zhang, Qi Z
> -Original Message- > From: Xing, Beilei > Sent: Friday, January 6, 2023 5:16 PM > To: Wu, Jingjing > Cc: dev@dpdk.org; Zhang, Qi Z ; Xing, Beilei > ; Wu, Wenjun1 > Subject: [PATCH v2 05/15] common/idpf: add vport init/deinit > > From: Beilei Xing > > Add vport init/deinit in comm

RE: [PATCH] net/mlx5: fix wait descriptor opcode for ConnectX-7

2023-01-08 Thread Raslan Darawsheh
Hi, > -Original Message- > From: Slava Ovsiienko > Sent: Tuesday, January 3, 2023 1:11 PM > To: dev@dpdk.org > Cc: Matan Azrad ; Raslan Darawsheh > ; Ori Kam ; sta...@dpdk.org > Subject: [PATCH] net/mlx5: fix wait descriptor opcode for ConnectX-7 > > Since ConnectX-7 the special hardware

RE: [PATCH] net/mlx5: fix irrelevant send skew devarg warning

2023-01-08 Thread Raslan Darawsheh
Hi, > -Original Message- > From: Slava Ovsiienko > Sent: Tuesday, January 3, 2023 1:11 PM > To: dev@dpdk.org > Cc: Matan Azrad ; Raslan Darawsheh > ; Ori Kam ; sta...@dpdk.org > Subject: [PATCH] net/mlx5: fix irrelevant send skew devarg warning > > Since ConnectX-7 hardware supports the

RE: [PATCH] net/mlx5: fix read device clock in real time mode

2023-01-08 Thread Raslan Darawsheh
Hi, > -Original Message- > From: Slava Ovsiienko > Sent: Tuesday, January 3, 2023 1:12 PM > To: dev@dpdk.org > Cc: Matan Azrad ; Raslan Darawsheh > ; Ori Kam ; sta...@dpdk.org > Subject: [PATCH] net/mlx5: fix read device clock in real time mode > > Since ConnectX-6DX the real time timest

RE: [PATCH 2/2] ethdev: add quota flow action and item

2023-01-08 Thread Ori Kam
Hi Gregory, > -Original Message- > From: Gregory Etelson > Sent: Wednesday, 21 December 2022 9:36 > > Quota action limits traffic according to pre-defined configuration. > Quota reflects overall traffic usage regardless bandwidth. > Quota flow action initialized with signed tokens number

RE: [RFC] ethdev: sharing indirect actions between ports

2023-01-08 Thread Ori Kam
Hi Slava, Looks good to me, Best, Ori > -Original Message- > From: Slava Ovsiienko > Sent: Wednesday, 28 December 2022 18:55 > > The RTE Flow API implements the concept of shared objects, > known as indirect actions (RTE_FLOW_ACTION_TYPE_INDIRECT). > An application can create the indire

RE: [RFC] ethdev: add template table insertion and matching types

2023-01-08 Thread Ori Kam
Hi Alexander, > -Original Message- > From: Alexander Kozyrev > Sent: Wednesday, 14 December 2022 4:21 > > Bring more flexibility and control over both flow rule insertion > and packet matching mechanisms. Introduce 2 new flow table types: > > 1. Allow a user to specify the insertion typ

RE: [PATCH v4 1/4] eal: add generic support for reading PMU events

2023-01-08 Thread Tomasz Duszynski
>-Original Message- >From: Morten Brørup >Sent: Thursday, January 5, 2023 11:08 PM >To: Tomasz Duszynski ; dev@dpdk.org >Cc: tho...@monjalon.net; Jerin Jacob Kollanukkaran ; >zhou...@loongson.cn; >mattias.ronnb...@ericsson.com >Subject: [EXT] RE: [PATCH v4 1/4] eal: add generic support fo

RE: [PATCH v4 1/4] eal: add generic support for reading PMU events

2023-01-08 Thread Morten Brørup
> From: Tomasz Duszynski [mailto:tduszyn...@marvell.com] > Sent: Sunday, 8 January 2023 16.41 > > >From: Morten Brørup > >Sent: Thursday, January 5, 2023 11:08 PM > > > >> From: Tomasz Duszynski [mailto:tduszyn...@marvell.com] > >> Sent: Thursday, 5 January 2023 22.14 > >> > >> Hi Morten, > >> >

RE: [PATCH v2 05/15] common/idpf: add vport init/deinit

2023-01-08 Thread Xing, Beilei
> -Original Message- > From: Zhang, Qi Z > Sent: Sunday, January 8, 2023 8:11 PM > To: Xing, Beilei ; Wu, Jingjing > Cc: dev@dpdk.org; Wu, Wenjun1 > Subject: RE: [PATCH v2 05/15] common/idpf: add vport init/deinit > > > > > -Original Message- > > From: Xing, Beilei > > Sen

[PATCH v4 1/1] eal/linux: reject mountpt not parent of --huge-dir

2023-01-08 Thread Ashish Sadanandan
The code added for allowing --huge-dir to specify hugetlbfs sub-directories has a bug where it incorrectly matches mounts that contain a prefix of the specified --huge-dir. Consider --huge-dir=/dev/hugepages1G is passed to rte_eal_init. Given the following hugetlbfs mounts $ mount | grep hugetlbf

RE: [PATCH] kni: fix build on RHEL 9.1

2023-01-08 Thread Gao, DaxueX
> From: Ferruh Yigit > Sent: 2023年1月7日 4:13 > To: Thomas Monjalon > Cc: David Marchand ; dev@dpdk.org; > sta...@dpdk.org; Gao, DaxueX > Subject: [PATCH] kni: fix build on RHEL 9.1 > > Linux kernel in the RHEL9.1 seems backported Linux commit [1] that drops > netif_rx_ni(). > > This was fixed i

[PATCH] net/i40e: disable source pruning

2023-01-08 Thread Ke Zhang
VRRP advertisement packets are dropped on i40e PF devices because when a MAC address is added to a device, packets originating from that MAC address are dropped. This patch adds a interface in lib/ethdev to support disabling source pruning to work around above issue. Bugzilla ID: 648 Signed-off-

RE: [PATCH] crypto/openssl: fix warning on copy length

2023-01-08 Thread Ruifeng Wang
> -Original Message- > From: David Marchand > Sent: Friday, January 6, 2023 6:27 PM > To: Kai Ji ; Ruifeng Wang > Cc: Fan Zhang ; Akhil Goyal ; > dev@dpdk.org; nd > ; sta...@dpdk.org; Feifei Wang > Subject: Re: [PATCH] crypto/openssl: fix warning on copy length > > On Fri, Jan 6, 2023

[PATCH v2] crypto/openssl: fix warning on copy length

2023-01-08 Thread Ruifeng Wang
When building with gcc 11.2.0, the compiler warns as follows: In function 'memcpy', inlined from 'openssl_set_session_auth_parameters' at ../drivers/crypto/openssl/rte_openssl_pmd.c:699:3, inlined from 'openssl_set_session_parameters' at ../drivers/crypto/openssl/rte_openssl_pmd.c:826:9:

[PATCH 0/2] usertools: use argparse module to get input and add an argment

2023-01-08 Thread Huisong Li
The telemetry client script uses argparse module to get input and addes an optional argment for file prefix. Huisong Li (2): usertools: use argparse module to get input parameter usertools: add an argment for file prefix usertools/dpdk-telemetry-client.py | 39 --

[PATCH 2/2] usertools: add an argment for file prefix

2023-01-08 Thread Huisong Li
Currently, the file prefix for DPDK runtime directory is 'rte' which was fixed in the telemetry client script. The user had to modify the prefix each time to run this script if the file prefix of application isn't 'rte'. So this patch addes an optional argment for the file prefix, like, "./dpdk-tel

[PATCH 1/2] usertools: use argparse module to get input parameter

2023-01-08 Thread Huisong Li
The telemetry client script uses argparse module to get input parameter. Signed-off-by: Huisong Li --- usertools/dpdk-telemetry-client.py | 14 +++--- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/usertools/dpdk-telemetry-client.py b/usertools/dpdk-telemetry-client.py in

[PATCH v2] net/ixgbe: fix ixgbe firmware version inconsistency

2023-01-08 Thread Shiyang He
This patch follows the code of ixgbe kernel driver so that it keeps the firmware version obtained by dpdk-ethtool consistent with that obtained by linux-ethtool. Fixes: 8b0b56574269 ("net/ixgbe: add firmware version get") Cc: sta...@dpdk.org Signed-off-by: Shiyang He v2: follow the code of ixgb

RE: [PATCH v4 1/4] eal: add generic support for reading PMU events

2023-01-08 Thread Ruifeng Wang
> -Original Message- > From: Tomasz Duszynski > Sent: Tuesday, December 13, 2022 6:44 PM > To: dev@dpdk.org > Cc: tho...@monjalon.net; jer...@marvell.com; m...@smartsharesystems.com; > zhou...@loongson.cn; > Tomasz Duszynski > Subject: [PATCH v4 1/4] eal: add generic support for reading

RE: [PATCH] net/i40e: disable source pruning

2023-01-08 Thread Morten Brørup
+CC: Andrew, as Ethernet API maintainer > From: Ke Zhang [mailto:ke1x.zh...@intel.com] > Sent: Monday, 9 January 2023 03.20 > > VRRP advertisement packets are dropped on i40e PF devices because > when a MAC address is added to a device, packets originating from > that MAC address are dropped. >

[PATCH 0/4] compressdev: add LZ4 support

2023-01-08 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/

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

2023-01-08 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 | 4 ++ doc/guides/rel_notes/release_23_03.rst

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

2023-01-08 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. Signed-off-by: Matan Azrad Signed-off-by: Michael Baum ---

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

2023-01-08 Thread Michael Baum
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 --- app/test-compress-perf/comp_perf_options.h| 2 + .../comp_perf_options_parse.c

[PATCH 4/4] app/test-compress-perf: add LZ4 support

2023-01-08 Thread Michael Baum
Add support for LZ4 algorithm and add a new parameter for it. Signed-off-by: Michael Baum --- app/test-compress-perf/comp_perf_options.h| 1 + .../comp_perf_options_parse.c | 43 ++- .../comp_perf_test_cyclecount.c | 7 ++- .../comp_perf_test_t

RE: [PATCH v2] net/ixgbe: fix ixgbe firmware version inconsistency

2023-01-08 Thread Morten Brørup
> From: Shiyang He [mailto:shiyangx...@intel.com] > Sent: Monday, 9 January 2023 07.53 > > This patch follows the code of ixgbe kernel driver so that it keeps the > firmware version obtained by dpdk-ethtool consistent with that obtained > by linux-ethtool. > > Fixes: 8b0b56574269 ("net/ixgbe: add

[PATCH 0/7] compress/mlx5: add LZ4 support

2023-01-08 Thread Michael Baum
Add support for LZ4 decompression algorithm for mlx5 compress PMD. Complete the support of compress PMD for Bluefield-3 smart-nic. RFC: https://patchwork.dpdk.org/project/dpdk/patch/20220410182622.8828-1-rzid...@nvidia.com/ Depends-on: series-26434 ("compressdev: add LZ4 support") Depends-on: pat

[PATCH 1/7] compress/mlx5: fix wrong output Adler-32 checksum offset

2023-01-08 Thread Michael Baum
After de/compress dequeue, the output checksum is copied into the op structure. The "output_checksum" field in op structure is "uint64_t" type, and the 32-bit checksums (CRC32, Adler-32) are copied into the lower 32 bits. When both CRC32 and Adler-32 are configured, CRC32 is copied into the lower

[PATCH 2/7] compress/mlx5: fix QP setup for partial transformations

2023-01-08 Thread Michael Baum
The mlx5_compress_qp_setup() function creates QP for compress, decompress and DMA. Thus, the MMO flag is turned on only when all operations are supported. However, since partial transformations have been allowed, it should be turn on for part of them. This patch removes the compress MMO support r

[PATCH 3/7] compress/mlx5: support new metadata layout added in BF3

2023-01-08 Thread Michael Baum
Commit [1] add support in Bluefield-3, but Bluefield-3 has different GGA opaque structure than Bluefield-2. This patch updates the PRM structure to include both versions, and culculate the relevant offset for each version in control path. Commit [1] 559014f232b4 ("compress/mlx5: add Bluefield-3 d

[PATCH 4/7] compress/mlx5: remove unused variable from priv structure

2023-01-08 Thread Michael Baum
The priv structure has variable named "min_block_size" coming from HCA capabilities. This field isn't used and copied into the priv structure for free. This patch removes this field. Signed-off-by: Michael Baum --- drivers/compress/mlx5/mlx5_compress.c | 3 --- 1 file changed, 3 deletions(-)

[PATCH 5/7] compress/mlx5: add xform validate function

2023-01-08 Thread Michael Baum
Separate the xform validations from create function into new function. The new function checks caps directly from HCA attr structure, so all capabilities in priv structure were removed. Signed-off-by: Michael Baum --- drivers/compress/mlx5/mlx5_compress.c | 55 +-- 1 file

[PATCH 6/7] common/mlx5: add LZ4 capabilities check

2023-01-08 Thread Michael Baum
Add capabilities check for LZ4 decompression algorithm. Signed-off-by: Michael Baum --- drivers/common/mlx5/mlx5_devx_cmds.c | 6 ++ drivers/common/mlx5/mlx5_devx_cmds.h | 3 +++ drivers/common/mlx5/mlx5_prm.h | 16 ++-- 3 files changed, 23 insertions(+), 2 deletions(-)