RE: [PATCH v2] net/af_xdp: fix umem map size for zero copy

2024-05-22 Thread Morten Brørup
> From: Du, Frank [mailto:frank...@intel.com] > Sent: Wednesday, 22 May 2024 03.25 > > > From: Ferruh Yigit > > Sent: Wednesday, May 22, 2024 1:58 AM > > > > On 5/11/2024 6:26 AM, Frank Du wrote: > > > The current calculation assumes that the mbufs are contiguous. > > > However, this assumption i

[DPDK/other Bug 1447] segfault while running dpdk app test ( event_crypto_adapter_autotest )

2024-05-22 Thread bugzilla
https://bugs.dpdk.org/show_bug.cgi?id=1447 Bug ID: 1447 Summary: segfault while running dpdk app test ( event_crypto_adapter_autotest ) Product: DPDK Version: 22.11 Hardware: All OS: All Status:

RE: [PATCH v9 1/8] eal: generic 64 bit counter

2024-05-22 Thread Morten Brørup
> From: Stephen Hemminger [mailto:step...@networkplumber.org] > Sent: Tuesday, 21 May 2024 22.17 > > This header implements 64 bit counters using atomic > operations but with a weak memory ordering so that > they are safe against load/store splits on 32 bit platforms. > > Signed-off-by: Stephen H

RE: [PATCH v2] hash: provide crc32 functions based on intrinsics

2024-05-22 Thread Morten Brørup
> From: Stephen Hemminger [mailto:step...@networkplumber.org] > Sent: Wednesday, 22 May 2024 04.21 > > On Tue, 21 May 2024 17:02:14 -0700 > Tyler Retzlaff wrote: > > > MSVC does not support inline asm so replace crc32 inline function > > implementations with intrinsics compatible with all toolch

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

2024-05-22 Thread Kundapura, Ganapati
Hi Akhil, 2 acked for this patch but it's still not yet accepted. Anything more required for this patch? Thanks, Ganapati > -Original Message- > From: Power, Ciara > Sent: Wednesday, April 17, 2024 5:11 PM > To: Kundapura, Ganapati ; dev@dpdk.org > Cc: Gujjar, Abhinandan S ; > gak...@ma

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

2024-05-22 Thread Akhil Goyal
> Subject: [EXTERNAL] RE: [PATCH v1] crypto: fix build issues on crypto > callbacks > macro undefined > > Hi Akhil, > 2 acked for this patch but it's still not yet accepted. > Anything more required for this patch? > Hi Ganapati, I haven't started picking patches on crypto tree yet. Will start

Re: [PATCH v2] net/af_xdp: fix umem map size for zero copy

2024-05-22 Thread Ferruh Yigit
On 5/22/2024 2:25 AM, Du, Frank wrote: >> -Original Message- >> From: Ferruh Yigit >> Sent: Wednesday, May 22, 2024 1:58 AM >> To: Du, Frank ; dev@dpdk.org; Andrew Rybchenko >> ; Morten Brørup >> >> Cc: Loftus, Ciara ; Burakov, Anatoly >> >> Subject: Re: [PATCH v2] net/af_xdp: fix umem m

Re: [PATCH v2] net/af_xdp: fix umem map size for zero copy

2024-05-22 Thread Ferruh Yigit
On 5/22/2024 8:26 AM, Morten Brørup wrote: >> From: Du, Frank [mailto:frank...@intel.com] >> Sent: Wednesday, 22 May 2024 03.25 >> >>> From: Ferruh Yigit >>> Sent: Wednesday, May 22, 2024 1:58 AM >>> >>> On 5/11/2024 6:26 AM, Frank Du wrote: The current calculation assumes that the mbufs are

RE: [PATCH v2] net/af_xdp: fix umem map size for zero copy

2024-05-22 Thread Morten Brørup
> From: Ferruh Yigit [mailto:ferruh.yi...@amd.com] > Sent: Wednesday, 22 May 2024 12.01 > > On 5/22/2024 2:25 AM, Du, Frank wrote: > >> From: Ferruh Yigit > >> Sent: Wednesday, May 22, 2024 1:58 AM > >> > >> Isn't there a mempool flag that can help us figure out mempool is not IOVA > >> contiguou

Re: [PATCH v1 1/4] dts: improve starting and stopping interactive shells

2024-05-22 Thread Patrick Robb
Reviewed-by: Patrick Robb

[PATCH] test/crypto: fix enqueue dequeue callback case

2024-05-22 Thread Akhil Goyal
The enqueue/dequeue callback test cases were using the test_null_burst_operation() for doing enqueue/dequeue. But this function is only designed to be run for NULL PMD. Hence for other PMDs, the callback was not getting called. Now, used a function test_AES_CBC_HMAC_SHA1_encrypt_digest() which is n

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

2024-05-22 Thread Akhil Goyal
> Subject: RE: [PATCH v1] crypto: fix build issues on crypto callbacks macro > undefined > > > Subject: [EXTERNAL] RE: [PATCH v1] crypto: fix build issues on crypto > > callbacks > > macro undefined > > > > Hi Akhil, > > 2 acked for this patch but it's still not yet accepted. > > Anything more re

Re: [PATCH v1 2/4] dts: add context manager for interactive shells

2024-05-22 Thread Patrick Robb
Reviewed-by: Patrick Robb I don't have any comments beyond Luca's suggestions, but saw the typo below. On Tue, May 14, 2024 at 4:15 PM wrote: > +def __exit__(self, type: BaseException, value: BaseException, traceback: > TracebackType) -> None: > +"""Exit the context block. > + > +

Re: [PATCH v12 09/12] net/tap: simplify internals

2024-05-22 Thread Ferruh Yigit
On 5/21/2024 4:44 PM, Stephen Hemminger wrote: > On Mon, 20 May 2024 18:51:37 +0100 > Ferruh Yigit wrote: > >> On 5/2/2024 10:31 PM, Stephen Hemminger wrote: >>> The names of Linux network devices are IFNAMSIZ(16) not the >>> same as DPDK which has up to 64 characters. Don't need to >>> hold onto

Re: [PATCH v2] net/af_xdp: fix umem map size for zero copy

2024-05-22 Thread Ferruh Yigit
On 5/22/2024 12:03 PM, Morten Brørup wrote: >> From: Ferruh Yigit [mailto:ferruh.yi...@amd.com] >> Sent: Wednesday, 22 May 2024 12.01 >> >> On 5/22/2024 2:25 AM, Du, Frank wrote: From: Ferruh Yigit Sent: Wednesday, May 22, 2024 1:58 AM Isn't there a mempool flag that can help u

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

2024-05-22 Thread Kundapura, Ganapati
Hi Akhil, My patch addresses build issue on setting RTE_CRYPTO_CALLBACKS to 0 and Checks for callback registered or not from the next node instead of head node as callback head node is always valid pointer. Thanks, Ganapati > -Original Message- > From: Akhil Goyal > Sent: Wednesday,

[PATCH] dma/cnxk: add higher chunk size support

2024-05-22 Thread pbhagavatula
From: Pavan Nikhilesh Add support to configure higher chunk size by using the new OPEN_V2 mailbox, this improves performance as the number of mempool allocs are reduced. Signed-off-by: Pavan Nikhilesh Signed-off-by: Amit Prakash Shukla --- drivers/common/cnxk/roc_dpi.c | 39 +

Re: [RFC PATCH v2] dts: skip test cases based on capabilities

2024-05-22 Thread Luca Vizzarro
Hi Juraj, Here's my review. Excuse me for the unordinary format, but I thought it would have just been easier to convey my suggestions through code. Apart from the smaller suggestions, the most important one I think is that we should make sure to enforce type checking (and hinting). Overall I lik

Re: [PATCH v9 1/8] eal: generic 64 bit counter

2024-05-22 Thread Stephen Hemminger
On Wed, 22 May 2024 10:31:39 +0200 Morten Brørup wrote: > > +/** > > + * @warning > > + * @b EXPERIMENTAL: this API may change without prior notice. > > + * > > + * On native 64 bit platform, counter is implemented as basic > > + * 64 bit unsigned integer that only increases. > > + */ > > +typede

Re: [PATCH v9 1/8] eal: generic 64 bit counter

2024-05-22 Thread Stephen Hemminger
On Wed, 22 May 2024 10:31:39 +0200 Morten Brørup wrote: > > +/* On 32 bit platform, need to use atomic to avoid load/store tearing */ > > +typedef RTE_ATOMIC(uint64_t) rte_counter64_t; > > As shown by Godbolt experiments discussed in a previous thread [2], > non-tearing 64 bit counters can be

Re: [PATCH v15 00/11] net/tap: make RSS work again

2024-05-22 Thread Ferruh Yigit
On 5/21/2024 9:12 PM, Stephen Hemminger wrote: > The support of doing RSS for rte_flow_action was a cool idea > but it has been broken for several releases of DPDK as the > underlying kernel and BPF infrastructure changed. > > This series cleans up the BPF program, implements several > features th

Re: [PATCH v2 0/8] dts: add testpmd params

2024-05-22 Thread Nicholas Pratte
In addition to the pmd_scatter suite, I refactored my jumboframes suite to use this new module for testing purposes; everything works great, and the format looks much better too. Tested-by: Nicholas Pratte Reviewed-by: Nicholas Pratte On Thu, May 9, 2024 at 7:21 AM Luca Vizzarro wrote: > > He

Re: [PATCH v1 3/4] dts: add methods for modifying MTU to testpmd shell

2024-05-22 Thread Patrick Robb
Reviewed-by: Patrick Robb

[PATCH v10 0/8] Common statistics for software PMD's

2024-05-22 Thread Stephen Hemminger
Adds common code for collecting basic statistics used by many SW based PMD's such as af_packet, af_xdp, null, tap and ring. This version uses two counters (current and offset) to implement SMP safe reset on 64 bit platforms; this avoids having to do locked operation in the fast path. On 32 bit pl

[PATCH v10 1/8] eal: generic 64 bit counter

2024-05-22 Thread Stephen Hemminger
This header implements 64 bit counters that can be reset. The counter increment in the fast path requires no locked operations. Reading and resetting the counter is handled by keeping track of a zero offset. Signed-off-by: Stephen Hemminger Acked-by: Morten Brørup --- lib/eal/include/meson.buil

[PATCH v10 2/8] ethdev: add common counters for statistics

2024-05-22 Thread Stephen Hemminger
Introduce common helper routines for keeping track of per-queue statistics in SW PMD's. The code in several drivers had copy/pasted the same code for this, but had common issues with 64 bit counters on 32 bit platforms. Signed-off-by: Stephen Hemminger --- lib/ethdev/ethdev_swstats.c | 102 +

[PATCH v10 3/8] net/af_packet: use generic SW stats

2024-05-22 Thread Stephen Hemminger
Use the new generic SW stats. Add a note about how errors and kernel full should be handled. Signed-off-by: Stephen Hemminger --- drivers/net/af_packet/rte_eth_af_packet.c | 78 +-- 1 file changed, 17 insertions(+), 61 deletions(-) diff --git a/drivers/net/af_packet/rte_eth_

[PATCH v10 4/8] net/af_xdp: use generic SW stats

2024-05-22 Thread Stephen Hemminger
Use common code for all SW stats. Signed-off-by: Stephen Hemminger --- drivers/net/af_xdp/rte_eth_af_xdp.c | 85 - 1 file changed, 22 insertions(+), 63 deletions(-) diff --git a/drivers/net/af_xdp/rte_eth_af_xdp.c b/drivers/net/af_xdp/rte_eth_af_xdp.c index 6ba455bb

[PATCH v10 5/8] net/pcap: use generic SW stats

2024-05-22 Thread Stephen Hemminger
Use common statistics for SW drivers. Signed-off-by: Stephen Hemminger --- drivers/net/pcap/pcap_ethdev.c | 100 - 1 file changed, 22 insertions(+), 78 deletions(-) diff --git a/drivers/net/pcap/pcap_ethdev.c b/drivers/net/pcap/pcap_ethdev.c index bfec085045..468

[PATCH v10 6/8] net/ring: use generic SW stats

2024-05-22 Thread Stephen Hemminger
Use generic per-queue infrastructure. Signed-off-by: Stephen Hemminger --- drivers/net/ring/rte_eth_ring.c | 63 +++-- 1 file changed, 20 insertions(+), 43 deletions(-) diff --git a/drivers/net/ring/rte_eth_ring.c b/drivers/net/ring/rte_eth_ring.c index b16f5d55f2..3

[PATCH v10 7/8] net/tap: use generic SW stats

2024-05-22 Thread Stephen Hemminger
Use new common sw statistics. Signed-off-by: Stephen Hemminger --- drivers/net/tap/rte_eth_tap.c | 75 ++- drivers/net/tap/rte_eth_tap.h | 15 ++- 2 files changed, 16 insertions(+), 74 deletions(-) diff --git a/drivers/net/tap/rte_eth_tap.c b/drivers/net/tap/

[PATCH v10 8/8] net/null: use generic SW stats

2024-05-22 Thread Stephen Hemminger
Use the new common code for statistics. This also fixes the bug that this driver was not accounting for bytes. Signed-off-by: Stephen Hemminger --- drivers/net/null/rte_eth_null.c | 83 + 1 file changed, 21 insertions(+), 62 deletions(-) diff --git a/drivers/net/

Re: [PATCH v15 09/11] net/tap: simplify internals

2024-05-22 Thread Stephen Hemminger
On Tue, 21 May 2024 13:12:54 -0700 Stephen Hemminger wrote: > The names of Linux network devices are IFNAMSIZ(16) not the > same as DPDK which has up to 64 characters. Don't need to > hold onto the whole ifreq to save the remote interface flags. > > Make sure packet and byte counters are read on

[PATCH v2] hash: cast away atomic qualification

2024-05-22 Thread Tyler Retzlaff
rte_free accepts only non-cva qualified arguments so cast away RTE_ATOMIC qualification for tbl_chng_cnt and h->tbl_chng_cnt when calling rte_free. Without this change using enable_stdatomic=true with LLVM or MSVC will result in a warning being emitted for discarding the atomic qualification. v2:

[PATCH v2] hash: cast away atomic qualification

2024-05-22 Thread Tyler Retzlaff
rte_free accepts only non-cva qualified arguments so cast away RTE_ATOMIC qualification for tbl_chng_cnt and h->tbl_chng_cnt when calling rte_free. Without this change using enable_stdatomic=true with LLVM or MSVC will result in a warning being emitted for discarding the atomic qualification. Sig

RE: [PATCH v9 1/8] eal: generic 64 bit counter

2024-05-22 Thread Morten Brørup
> From: Stephen Hemminger [mailto:step...@networkplumber.org] > Sent: Wednesday, 22 May 2024 17.38 > > On Wed, 22 May 2024 10:31:39 +0200 > Morten Brørup wrote: > > > > +/* On 32 bit platform, need to use atomic to avoid load/store > tearing */ > > > +typedef RTE_ATOMIC(uint64_t) rte_counter64_t

RE: [PATCH v9 1/8] eal: generic 64 bit counter

2024-05-22 Thread Morten Brørup
> From: Stephen Hemminger [mailto:step...@networkplumber.org] > Sent: Wednesday, 22 May 2024 17.33 > > On Wed, 22 May 2024 10:31:39 +0200 > Morten Brørup wrote: > > > > +/** > > > + * @warning > > > + * @b EXPERIMENTAL: this API may change without prior notice. > > > + * > > > + * On native 64 b

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

2024-05-22 Thread Akhil Goyal
> Hi Akhil, >My patch addresses build issue on setting RTE_CRYPTO_CALLBACKS to 0 and > Checks for callback registered or not from the next node instead of head node > as > callback head node is always valid pointer. > Agreed but your patch cannot be verified without the fix as the callbacks a

Re: [PATCH v9 1/8] eal: generic 64 bit counter

2024-05-22 Thread Tyler Retzlaff
On Wed, May 22, 2024 at 07:57:01PM +0200, Morten Brørup wrote: > > From: Stephen Hemminger [mailto:step...@networkplumber.org] > > Sent: Wednesday, 22 May 2024 17.38 > > > > On Wed, 22 May 2024 10:31:39 +0200 > > Morten Brørup wrote: > > > > > > +/* On 32 bit platform, need to use atomic to avoi

Re: [PATCH v9 1/8] eal: generic 64 bit counter

2024-05-22 Thread Stephen Hemminger
On Wed, 22 May 2024 12:01:12 -0700 Tyler Retzlaff wrote: > On Wed, May 22, 2024 at 07:57:01PM +0200, Morten Brørup wrote: > > > From: Stephen Hemminger [mailto:step...@networkplumber.org] > > > Sent: Wednesday, 22 May 2024 17.38 > > > > > > On Wed, 22 May 2024 10:31:39 +0200 > > > Morten Brørup

Re: [PATCH v9 1/8] eal: generic 64 bit counter

2024-05-22 Thread Stephen Hemminger
On Wed, 22 May 2024 20:09:23 +0200 Morten Brørup wrote: > > There are no size_bins in the current version of the patch. > > And the number of counters in ethdev part are small so it is less of a > > concern. > > The code is easier to maintain if the counter object is self contained. > > I agre

Re: [PATCH v2 1/6] ethdev: support setting lanes

2024-05-22 Thread Ferruh Yigit
On 4/1/2024 11:29 PM, Damodharam Ammepalli wrote: > On Mon, Apr 1, 2024 at 1:07 PM Thomas Monjalon wrote: >> >> 30/03/2024 12:38, huangdengdui: >>> But, there are different solutions for the device to report the setting >>> lane capability, as following: >>> 1. Like the current patch, reporting de

Re: [PATCH v2 0/6] support setting lanes

2024-05-22 Thread Ferruh Yigit
On 5/16/2024 1:48 PM, huangdengdui wrote: > Hi, Ferruh > Sorry for replying your email very late. > The answers to your questions are as follows. Please correct me if I am wrong. > > On 2024/4/4 21:58, Ferruh Yigit wrote: >> >> Hi Dengdui, Damodharam, >> >> As details of the implementation under d

RE: [PATCH v9 1/8] eal: generic 64 bit counter

2024-05-22 Thread Morten Brørup
> From: Stephen Hemminger [mailto:step...@networkplumber.org] > Sent: Wednesday, 22 May 2024 21.54 > > On Wed, 22 May 2024 20:09:23 +0200 > Morten Brørup wrote: > > > > There are no size_bins in the current version of the patch. > > > And the number of counters in ethdev part are small so it is

Re: [RFC 0/2] Add support for link speed lanes

2024-05-22 Thread Ferruh Yigit
On 3/22/2024 10:25 PM, Damodharam Ammepalli wrote: > BRCM576xx NIC modules support speeds with different lanes configuration. > This is an alternate proposal to > https://patchwork.dpdk.org/project/dpdk/list/?series=31593 > > Please provide your review. Broadcom driver patches will follow. > > Da

[PATCH 1/2] net/nfp: fix xstats problem for multi PF firmware

2024-05-22 Thread Chaoyong He
When using multi PF firmware, the other ports always get the xstats of the first port. Fix it by adding the offset for other ports. Fixes: 8ad2cc8fec37 ("net/nfp: add flag for multiple PFs support") Cc: peng.zh...@corigine.com Cc: sta...@dpdk.org Signed-off-by: Chaoyong He Reviewed-by: Long Wu

[PATCH 2/2] net/nfp: add support of xstats for flower firmware

2024-05-22 Thread Chaoyong He
Add support the extend stats for flower firmware, include the stats for each queue. Signed-off-by: Chaoyong He Reviewed-by: Long Wu Reviewed-by: Peng Zhang --- .../net/nfp/flower/nfp_flower_representor.c | 47 ++- .../net/nfp/flower/nfp_flower_representor.h | 4 ++ drivers/net

[PATCH 0/2] NFP extend stats

2024-05-22 Thread Chaoyong He
This patch series related with NFP xstats logic: - Fix one bug about xstats when using coreNIC firmware with multi-PF. - Add the support of xstats for flower firmware. Chaoyong He (2): net/nfp: fix xstats problem for multi PF firmware net/nfp: add support of xstats for flower firmware .../ne

[PATCH v2] net/cpfl: get running host ID for CPFL PMD

2024-05-22 Thread Shaiq Wani
Check whether CPFL PMD runs on Host or ACC Signed-off-by: Shaiq Wani --- drivers/net/cpfl/cpfl_ethdev.c | 21 + drivers/net/cpfl/cpfl_ethdev.h | 5 - 2 files changed, 25 insertions(+), 1 deletion(-) diff --git a/drivers/net/cpfl/cpfl_ethdev.c b/drivers/net/cpfl/cpfl_eth

RE: [PATCH v2] net/af_xdp: fix umem map size for zero copy

2024-05-22 Thread Du, Frank
> -Original Message- > From: Morten Brørup > Sent: Wednesday, May 22, 2024 3:27 PM > To: Du, Frank ; Ferruh Yigit ; > dev@dpdk.org; Andrew Rybchenko ; Burakov, > Anatoly > Cc: Loftus, Ciara > Subject: RE: [PATCH v2] net/af_xdp: fix umem map size for zero copy > > > From: Du, Frank [mail