[PATCH v2 4/4] net/sfc: add configurable Rx CRC stripping

2023-06-21 Thread Denis Pryazhennikov
Configurable Rx CRC stripping is allowed only if running firmware variant supports it and if NIC is configured with single PF per port and without VFs. When KEEP_CRC is supported, CRC will be part of the packet payload. The packet length will also contain CRC length. At the same time, CRC length sh

[PATCH v2 3/4] common/sfc_efx/base: add support for configure MAC to keep FCS

2023-06-21 Thread Denis Pryazhennikov
From: Roman Zhukov Drivers cannot determine if received packet includes the FCS or not. Only packets with an external port have the FCS included and functions without link control privilege cannot determine the MAC configuration. This patch is trying to make assumptions that: if PF is the only fu

[PATCH v2 2/4] common/sfc_efx/base: detect and report FCS include support

2023-06-21 Thread Denis Pryazhennikov
From: Roman Zhukov A new variable was added to efx_nic_cfg_s to detect and report if FCS is supported by FW. Signed-off-by: Roman Zhukov Signed-off-by: Denis Pryazhennikov Reviewed-by: Viacheslav Galaktionov Acked-by: Andrew Rybchenko --- drivers/common/sfc_efx/base/ef10_nic.c | 6 ++

[PATCH v2 1/4] common/sfc_efx/base: discover NIC partitioning mode

2023-06-21 Thread Denis Pryazhennikov
From: Sandilya Bhagi NIC Partitioning mode in SFC devices means multiple PFs per network port. When NIC Partitioning is configured, apart from the privileged adapter(s) the other unprivileged adapter(s) will share the same physical port. Determining NIC Partitioning mode is required to take neces

[PATCH v2 0/4] net/sfc: support KEEP_CRC offload

2023-06-21 Thread Denis Pryazhennikov
This patch series adds support for RTE_ETH_RX_OFFLOAD_KEEP_CRC offload in the SFC driver. Changes in v2: * Applied review notes; * Fixed stats handling; * Added missing release notes to [4/4]. Denis Pryazhennikov (3): common/sfc_efx/base: detect and report FCS include support common/sfc_efx/b

RE: [EXT] Re: [PATCH v2 8/8] crypto/ipsec_mb: set and use session ID

2023-06-21 Thread De Lara Guarch, Pablo
> -Original Message- > From: Thomas Monjalon > Sent: Tuesday, June 20, 2023 3:42 PM > To: De Lara Guarch, Pablo ; Fangming Fang > ; Power, Ciara ; > Honnappa Nagarahalli ; Ji, Kai > ; Ruifeng Wang ; Mcnamara, > John ; Akhil Goyal > Cc: dev@dpdk.org; david.march...@redhat.com; Jerin Jac

Re: [Bug 1255] [asan] net/mlx5: memory leak on port cleanup

2023-06-21 Thread Asaf Penso
Hello David, What's the dpdk version used in that OS? Have you tried manually installing latest dpdk and check? We recently fixed some mem issue, raised by valgrind. Regards, Asaf Penso From: bugzi...@dpdk.org Sent: Tuesday, June 20, 2023 2:09:48 PM To: dev@dpdk.o

Re: [PATCH v4] ethdev: advertise flow restore in mbuf

2023-06-21 Thread Ferruh Yigit
On 6/21/2023 3:43 PM, David Marchand wrote: > As reported by Ilya [1], unconditionally calling > rte_flow_get_restore_info() impacts an application performance for drivers > that do not provide this ops. > It could also impact processing of packets that require no call to > rte_flow_get_restore_inf

Re: [PATCH v3] dts: replace pexpect with fabric

2023-06-21 Thread Jeremy Spewock
Acked-by: Jeremy Spewock On Fri, Jun 9, 2023 at 5:46 AM Juraj Linkeš wrote: > Pexpect is not a dedicated SSH connection library while Fabric is. With > Fabric, all SSH-related logic is provided and we can just focus on > what's DTS specific. > > Signed-off-by: Juraj Linkeš > --- > > Notes: >

Re: [PATCH] net/nfp: fix the address always related with PF ID 0

2023-06-21 Thread Ferruh Yigit
On 6/16/2023 9:57 AM, Chaoyong He wrote: > From: Peng Zhang > > Now the PCIE configure bar address is always related with PF ID 0. > For the NIC with multiple PCI device, this will lead the host crash. > Fix this problem by make the PCIE configure bar address related with > the PF ID. > > Fixes:

Re: [RFC PATCH v3 4/4] dts: format docstrigs to google format

2023-06-21 Thread Jeremy Spewock
Acked-by: Jeremy Spweock On Thu, May 11, 2023 at 5:14 AM Juraj Linkeš wrote: > WIP: only one module is reformatted to serve as a demonstration. > > The google format is documented here [0]. > > [0]: https://google.github.io/styleguide/pyguide.html > > Signed-off-by: Juraj Linkeš > --- > dts/f

Re: [PATCH v2] dts: update dependencies and mypy execution

2023-06-21 Thread Jeremy Spewock
Acked-by: Jeremy Spweock On Tue, May 16, 2023 at 6:32 AM Juraj Linkeš wrote: > On Tue, May 16, 2023 at 12:16 PM Juraj Linkeš > wrote: > > > > Poetry changed the syntax of dev dependencies section in version > > 1.2.0. Remove the scripts section that did nothing. > > Update Pylama linters: > >

Re: [PATCH] net/nfp: break out function to initialize device information

2023-06-21 Thread Ferruh Yigit
On 6/16/2023 9:14 AM, Chaoyong He wrote: > From: Peng Zhang > > The basic logic is the same for PF, VF and representor port. > Split out the initializing device information logics into a > helper function to reduce code duplication. > > Signed-off-by: Peng Zhang > Reviewed-by: Chaoyong He > Re

Re: [PATCH 0/2] reduce the length of PCI name

2023-06-21 Thread Ferruh Yigit
On 6/15/2023 7:51 AM, Chaoyong He wrote: > Use the complete PCI name as the part of representor port name cause the > app crash, because the name is too long. > > Fix this by reduce the length, using only the parts after the first ':'. > > To keep unification, also use the same approach for the n

[PATCH v4 4/4] build: select optional libraries

2023-06-21 Thread David Marchand
There is currently no way to know which libraries are optional. Introduce a enable_libs option (close to what we have for drivers) so that packagers or projects consuming DPDK can more easily select the optional libraries that matter to them and disable other optional libraries. Signed-off-by: Dav

[PATCH v4 3/4] build: select deprecated libraries

2023-06-21 Thread David Marchand
Rework deprecated libraries selection by introducing a new configuration option. This breaks existing configurations that were relying on disable_libs='' for enabling deprecated libraries. On the other hand, it will make enabling optional libraries more straightforward by taking the deprecated lib

[PATCH v4 1/4] kni: move IOVA build check

2023-06-21 Thread David Marchand
kni dependency to IOVA configuration does not need to be expressed in the top level lib/meson.build file. Signed-off-by: David Marchand --- lib/kni/meson.build | 5 + lib/meson.build | 3 --- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/lib/kni/meson.build b/lib/kni/mes

[PATCH v4 2/4] build: rename enabled libraries list

2023-06-21 Thread David Marchand
The enabled_libs variable is renamed and moved to the top level meson.build file, for sake of consistency wrt to drivers and applications similar variables. Signed-off-by: David Marchand --- app/test/meson.build | 2 +- buildtools/chkincs/meson.build | 2 +- lib/meson.build

[PATCH v4 0/4] Select optional libraries

2023-06-21 Thread David Marchand
This series is one implementation to try and please users who want to select more easily which parts of DPDK are built. It introduces a change in behavior for enabling deprecated libraries: this series is aimed at the next release but sent early as a demo of what changes are required. If no stron

Re: [PATCH v4 00/34] net/sfc: support HW conntrack assistance

2023-06-21 Thread Ferruh Yigit
On 6/7/2023 2:02 PM, Ivan Malov wrote: > On EF100 hardware, match-action engine (MAE) can be equipped > with an assistance table for connection tracking (CT). In it, > an entry key is a set of exact match fields: an EtherType, a > pair of IP addresses, a L4 protocol ID and a pair of L4 port > numbe

Re: [PATCH v4 01/34] common/sfc_efx/base: update MCDI headers

2023-06-21 Thread Ferruh Yigit
On 6/7/2023 2:02 PM, Ivan Malov wrote: > From: Denis Pryazhennikov > > Pickup new FW interface definitions. > > Signed-off-by: Denis Pryazhennikov > Reviewed-by: Ivan Malov > Reviewed-by: Andy Moreton <...> > @@ -9127,15 +10514,13 @@ > /***/ > /* MC_CMD_DYN

Re: [PATCH v4 27/34] net/sfc: add support for IPv4 NAT offload to MAE backend

2023-06-21 Thread Ferruh Yigit
On 6/7/2023 2:02 PM, Ivan Malov wrote: > For this offload to work, the innermost pattern items must > provide the full set of exact match criteria, which are as > follows: EtherType, IP DST, IP SRC, TP protocol ID, TP DST > and TP SRC, where the protocol types can be autodetected. > > The offload

Re: [PATCH] regex/cn9k: remove rule compiler

2023-06-21 Thread Jerin Jacob
On Wed, Jun 21, 2023 at 7:36 PM Thomas Monjalon wrote: > > Nobody knows how to build the feature. > When the dependency "rxp_compiler" is found, > the header file is not available: > > drivers/regex/cn9k/cn9k_regexdev_compiler.c:12:10: fatal error: > rxp-compiler.h: No such file or directo

[PATCH v4] ethdev: advertise flow restore in mbuf

2023-06-21 Thread David Marchand
As reported by Ilya [1], unconditionally calling rte_flow_get_restore_info() impacts an application performance for drivers that do not provide this ops. It could also impact processing of packets that require no call to rte_flow_get_restore_info() at all. Register a dynamic mbuf flag when an appl

Re: [PATCH] net/nfp: changes to link status reporting

2023-06-21 Thread Ferruh Yigit
On 6/15/2023 4:27 AM, Chaoyong He wrote: > From: James Hershaw > > The NFP PMD driver retrieves the linkspeed by reading the > NFP_NET_CFG_STS_LINK register. This register is not set by all versions > of the firmware. Changes in this patch include: > > Addition of listener function to deal with

[PATCH] crypto/qat: modify NULL algorithm digest placement

2023-06-21 Thread Ciara Power
QAT HW generates bytes of 0x00 digest, even when a digest of len 0 is requested for NULL. This caused test failures when the test vector had digest len 0, as the buffer has unexpected changed bytes. By placing the digest into the cookie for NULL authentication, the buffer remains unchanged as expe

Re: [PATCH v4 03/34] common/sfc_efx/base: add API to list HW tables

2023-06-21 Thread Ferruh Yigit
On 6/21/2023 12:09 PM, Ivan Malov wrote: > Hi Ferruh, > > Thank you so much for your review notes. You suggested to squash > some pairs of "common/sfc_base/efx" and "net/sfc" patches, so > that logical changes would be unified. I see your point. > > On the other hand, however, doing so would be r

[PATCH] regex/cn9k: remove rule compiler

2023-06-21 Thread Thomas Monjalon
Nobody knows how to build the feature. When the dependency "rxp_compiler" is found, the header file is not available: drivers/regex/cn9k/cn9k_regexdev_compiler.c:12:10: fatal error: rxp-compiler.h: No such file or directory It seems that it depends on a proprietay library. According to wh

Re: [PATCH] net/nfp: allow more then one secondary process on the PF

2023-06-21 Thread Ferruh Yigit
On 6/15/2023 2:54 AM, Chaoyong He wrote: > From: Peng Zhang > > When adding support for multiple processes the number of secondary process > on the PF was limited by the way NFP access registers on the device over > the CPP interface. > > The limitation on the CPP interface appears to have been

RE: [RFC PATCH v3] ethdev: advertise flow restore in mbuf

2023-06-21 Thread Ori Kam
> -Original Message- > From: Slava Ovsiienko > Sent: Tuesday, June 20, 2023 7:44 PM > > > -Original Message- > > From: David Marchand > > Sent: Tuesday, June 20, 2023 2:10 PM > > To: dev@dpdk.org > > Cc: NBU-Contact-Thomas Monjalon (EXTERNAL) ; > > i.maxim...@ovn.org; Ali Alnub

Re: [PATCH] net/nfp: fix getting firmware version

2023-06-21 Thread Ferruh Yigit
On 6/15/2023 2:30 AM, Chaoyong He wrote: > The VF PMD can not get a valid 'cpp' data filed in the 'struct > nfp_net_hw', the value of which will be NULL always. This cause any > logic which use of 'cpp' will make the app crash. > It is not fixing getting FW version, but fixing crash by removing F

Re: [PATCH v14 1/6] memarea: introduce memarea library

2023-06-21 Thread Burakov, Anatoly
On 2/9/2023 6:36 AM, Chengwen Feng wrote: The memarea library is an allocator of variable-size object which based on a memory region. This patch provides rte_memarea_create() and rte_memarea_destroy() API. Signed-off-by: Chengwen Feng Reviewed-by: Dongdong Liu Acked-by: Morten Brørup ---

RE: [PATCH v3] build: select optional libraries

2023-06-21 Thread Morten Brørup
I haven't followed this discussion in detail, so this might have been mentioned already... Omitting deprecated libs when building will not omit deprecated functions in other libs. In other words: Omitting deprecated libs only achieves part of what we really want to achieve (omitting everything

Re: [PATCH v2 1/5] app/testpmd: add trace save command

2023-06-21 Thread Ferruh Yigit
On 6/13/2023 5:58 PM, Viacheslav Ovsiienko wrote: > The "save_trace" CLI command is added to trigger > saving the trace dumps to the trace directory. > Hi Viacheslav, Trace is already saved when dpdk application terminated, I guess this is to save the trace before exiting the application, what i

Re: [PATCH v4 03/34] common/sfc_efx/base: add API to list HW tables

2023-06-21 Thread Ivan Malov
Hi Ferruh, Thank you so much for your review notes. You suggested to squash some pairs of "common/sfc_base/efx" and "net/sfc" patches, so that logical changes would be unified. I see your point. On the other hand, however, doing so would be rather unusual from our internal process standpoint. Ty

Re: [PATCH v14 2/6] test/memarea: support memarea test

2023-06-21 Thread Burakov, Anatoly
On 2/9/2023 6:36 AM, Chengwen Feng wrote: This patch supports memarea test of rte_memarea_create() and rte_memarea_destroy() API. Signed-off-by: Chengwen Feng Reviewed-by: Dongdong Liu Acked-by: Morten Brørup --- Hi, + +static int +test_memarea(void) +{ + test_memarea_prepare(); + +

Re: [PATCH v14 1/6] memarea: introduce memarea library

2023-06-21 Thread Burakov, Anatoly
On 2/9/2023 6:36 AM, Chengwen Feng wrote: The memarea library is an allocator of variable-size object which based on a memory region. This patch provides rte_memarea_create() and rte_memarea_destroy() API. Signed-off-by: Chengwen Feng Reviewed-by: Dongdong Liu Acked-by: Morten Brørup ---

Re: [PATCH] doc: fix link to AF XDP PMD in CNI howto

2023-06-21 Thread Bruce Richardson
On Wed, Jun 21, 2023 at 11:57:18AM +0200, David Marchand wrote: > Having an explicit link to the main repository documentation breaks > other repositories documentation (like for LTS releases). > > Fixes: 7fc6ae50369d ("net/af_xdp: support CNI Integration") > Cc: sta...@dpdk.org > > Signed-off-by

Re: [PATCH] devtools: forbid reference to doc.dpdk.org/guides

2023-06-21 Thread Bruce Richardson
On Wed, Jun 21, 2023 at 10:09:20AM +0200, David Marchand wrote: > Putting links to doc.dpdk.org/guides in our documentation should be > avoided because it makes the documentation point at the current state of > the DPDK tree regardless of the version it is generated against. > > Note: it should be

Re: [PATCH v3] build: select optional libraries

2023-06-21 Thread Bruce Richardson
On Wed, Jun 21, 2023 at 11:54:31AM +0200, David Marchand wrote: > On Tue, Jun 20, 2023 at 5:05 PM Bruce Richardson > wrote: > > > > On Tue, Jun 20, 2023 at 04:33:15PM +0200, Thomas Monjalon wrote: > > > 20/06/2023 11:03, Bruce Richardson: > > > > On Tue, Jun 20, 2023 at 10:48:50AM +0200, David Mar

RE: [PATCH v3] bitmap: add scan from offset function

2023-06-21 Thread Dumitrescu, Cristian
> -Original Message- > From: Volodymyr Fialko > Sent: Wednesday, June 21, 2023 11:01 AM > To: dev@dpdk.org; Dumitrescu, Cristian > Cc: jer...@marvell.com; ano...@marvell.com; tho...@monjalon.net; > Volodymyr Fialko > Subject: [PATCH v3] bitmap: add scan from offset function > > Curre

[PATCH v3] bitmap: add scan from offset function

2023-06-21 Thread Volodymyr Fialko
Currently, in the case when we search for a bit set after a particular value, the bitmap has to be scanned from the beginning and rte_bitmap_scan() has to be called multiple times until we hit the value. Add a new rte_bitmap_scan_from_offset() function to initialize scan state at the given offset

[PATCH] doc: fix link to net/bnxt flow capabilities

2023-06-21 Thread David Marchand
Having an explicit link to the main repository documentation breaks other repositories documentation (like for LTS releases). Besides, the tables numerotation may change so add an explicit anchor to those tables and refer to them. Fixes: b845c295cd13 ("doc: update Broadcom bnxt guide") Cc: sta...

[PATCH] doc: fix link to AF XDP PMD in CNI howto

2023-06-21 Thread David Marchand
Having an explicit link to the main repository documentation breaks other repositories documentation (like for LTS releases). Fixes: 7fc6ae50369d ("net/af_xdp: support CNI Integration") Cc: sta...@dpdk.org Signed-off-by: David Marchand --- doc/guides/howto/af_xdp_cni.rst | 6 ++ 1 file chan

Re: [PATCH v3] build: select optional libraries

2023-06-21 Thread David Marchand
On Tue, Jun 20, 2023 at 5:05 PM Bruce Richardson wrote: > > On Tue, Jun 20, 2023 at 04:33:15PM +0200, Thomas Monjalon wrote: > > 20/06/2023 11:03, Bruce Richardson: > > > On Tue, Jun 20, 2023 at 10:48:50AM +0200, David Marchand wrote: > > > > On Tue, Jun 20, 2023 at 10:45 AM Bruce Richardson > > >

[PATCH] net/ice: revert mark action in switch filter

2023-06-21 Thread Zhichao Zeng
This implementation has some problem, the function did not work properly, and it broke the mark action in FDir filter, so revert this commit. Fixes: e24f43f2c824 ("net/ice: support flow mark action in switch") Signed-off-by: Zhichao Zeng --- drivers/net/ice/ice_switch_filter.c | 9 - 1 f

Re: [PATCH v5] gro : fix reordering of packets in GRO library

2023-06-21 Thread kumaraparameshwaran rathinavel
Hi Jiayu, Thanks for the comments. I have replied inline below. Will address the review comments, but I think this would be a good patch to have in general. Please let me know your thoughts. On Tue, Jun 20, 2023 at 1:06 PM Hu, Jiayu wrote: > Hi Kumara, > > Please see replies inline. > > Thanks,

[PATCH v11 2/2] gro : add support for IPv6 GRO

2023-06-21 Thread Kumara Parameshwaran
Add support for IPv6 GRO for TCP packets Signed-off-by: Kumara Parameshwaran --- v1: * Changes to support GRO for TCP/ipv6 packets. This does not include vxlan changes. * The GRO is performed only for ipv6 packets that does not contain extension headers.

[PATCH v11 1/2] gro : refactor IPv4 to add GRO support for IPv6

2023-06-21 Thread Kumara Parameshwaran
Refactor the existing code to reuse data strutures and functions to add support for IPv6 GRO Signed-off-by: Kumara Parameshwaran --- v1: * Changes to support GRO for TCP/ipv6 packets. This does not include vxlan changes. * The GRO is performed only for ipv6 packets that

Re: [PATCH v2] eal: fix prompt info when remap_segment failed

2023-06-21 Thread David Marchand
On Thu, Jun 15, 2023 at 9:08 AM Fengnan Chang wrote: > > When there is not enough space to memsegs, we should prompt > which configuration should be modified instead of printing > some numbers. > > Signed-off-by: Fengnan Chang This lgtm, but I have a question: $ git grep 'RTE_STR(RTE_MAX' app/t

[PATCH v10 2/2] gro : add support for IPv6 GRO

2023-06-21 Thread Kumara Parameshwaran
Signed-off-by: Kumara Parameshwaran --- v1: * Changes to support GRO for TCP/ipv6 packets. This does not include vxlan changes. * The GRO is performed only for ipv6 packets that does not contain extension headers. * The logic for the TCP coalescing rem

[PATCH v10 1/2] gro : refactor IPv4 to add GRO support for IPv6

2023-06-21 Thread Kumara Parameshwaran
Refactor the existing code to reuse data strutures and functions to add support for IPv6 GRO Signed-off-by: Kumara Parameshwaran --- v1: * Changes to support GRO for TCP/ipv6 packets. This does not include vxlan changes. * The GRO is performed only for ipv6 packets that

Re: [PATCH v3] eal: add tracepoints to track lcores and services

2023-06-21 Thread David Marchand
On Fri, May 12, 2023 at 4:30 PM Arnaud Fiorini wrote: > > The tracepoints added are used to track lcore role and status, > as well as service mapping and service runstates. These > tracepoints are then used in analyses in Trace Compass. > > Signed-off-by: Arnaud Fiorini Acked-by: Harry van Haaren

net/mlx:mlx5 mlx_flow_create failed when set bond_mode_8023

2023-06-21 Thread compile_success
Hi, When I create bond4 with ConnectX-4 , mlx_flow_create return error; When bond_port is opened, slave_port  will be closed to sync bond_port config  ??bond_ethdev_start -> slave_configure->rte_eth_dev_stop?? ?6?7slave_configure(struct rte_eth_dev *bonded_eth_dev,

[PATCH] devtools: forbid reference to doc.dpdk.org/guides

2023-06-21 Thread David Marchand
Putting links to doc.dpdk.org/guides in our documentation should be avoided because it makes the documentation point at the current state of the DPDK tree regardless of the version it is generated against. Note: it should be acceptable to mention previous versions of DPDK (like in old release note

[PATCH] net/iavf: fix duplicate reset done check with large VF

2023-06-21 Thread Zhichao Zeng
This patch fixes duplicate VF reset done check in dev_reset with large VF, which cause some errors when starting testpmd with large VF. Fixes: 7a93cd3575eb ("net/iavf: add VF reset check") Signed-off-by: Zhichao Zeng --- drivers/net/iavf/iavf_ethdev.c | 20 +++- 1 file changed, 1

RE: [RFC PATCH v3] ethdev: advertise flow restore in mbuf

2023-06-21 Thread Ali Alnubani
> -Original Message- > From: David Marchand > Sent: Tuesday, June 20, 2023 2:10 PM > To: dev@dpdk.org > Cc: NBU-Contact-Thomas Monjalon (EXTERNAL) ; > i.maxim...@ovn.org; Ali Alnubani ; Aman Singh > ; Yuying Zhang ; > Matan Azrad ; Slava Ovsiienko > ; Ori Kam ; Suanming Mou > ; David Chris

Re: [RFC PATCH v3] ethdev: advertise flow restore in mbuf

2023-06-21 Thread David Marchand
Hello, On Tue, Jun 20, 2023 at 6:44 PM Slava Ovsiienko wrote: > > As reported by Ilya [1], unconditionally calling > > rte_flow_get_restore_info() impacts an application performance for drivers > > that do not provide this ops. > > It could also impact processing of packets that require no call t

[PATCH] net/mlx5: support bus socket with no hugepages

2023-06-21 Thread Hari Sasank
When a Mellanox NIC is attached to a bus on a numa socket, it tries to allocate rte memory in that socket. If hugepages are not configured/available on that rte socket mlx5_common_pci_probe fails with ENOMEM. In this patch, a memflag MLX5_MEM_FALLBACK_ANY_SOCKET is introduced which when set on mlx

Re: [PATCH] eal: add notes to SMP memory barrier APIs

2023-06-21 Thread Thomas Monjalon
21/06/2023 08:44, Ruifeng Wang: > + * @note > + * This function is deprecated. It adds complexity to the memory model > + * used by this project. C11 memory model should always be used. > + * rte_atomic_thread_fence() should be used instead. > */ > static inline void rte_smp_mb(void); I thin