RE: [PATCH v2 02/10] net/nfp: fix malloc name problem in secondary process

2024-10-11 Thread Chaoyong He
> On Sat, 12 Oct 2024 10:40:59 +0800 > Chaoyong He wrote: > > > The original logic keeps using the same name parameter when malloc > > memory in secondary process, which may cause error when using multiple > > PF cards. > > > > Fixes: 3b00109d2b65 ("net/nfp: add PF ID used to format symbols") >

Re: [PATCH 1/4] ethdev: verify queue ID when Tx done cleanup

2024-10-11 Thread Ferruh Yigit
On 9/5/2024 8:33 AM, Andrew Rybchenko wrote: > On 9/5/24 09:46, Jie Hai wrote: >> From: Chengwen Feng >> >> Verify queue_id for rte_eth_tx_done_cleanup API. > > If I'm not mistaken the function is considered data path API (fast). > If so, it should not validate it's parameters as in rte_eth_tx_bu

Re: [PATCH v2 2/2] examples/l3fwd: fix read beyond array boundaries in ACL mode

2024-10-11 Thread Stephen Hemminger
On Tue, 30 Jul 2024 13:22:35 +0100 Konstantin Ananyev wrote: > From: Konstantin Ananyev > > With commit: ACL mode now can use send_packets_multi(). > What I missed with that changes: send_packets_multi() can't deal > properly with input dst_port[i] == BAD_PORT (though it can set > it itself), a

[PATCH v2 09/10] net/nfp: modify the comment of some control messages

2024-10-11 Thread Chaoyong He
The comment of some control messages are not right, which conflict with the data structure and may confuse the other developers. Signed-off-by: Chaoyong He Reviewed-by: Long Wu Acked-by: Stephen Hemminger --- drivers/net/nfp/flower/nfp_flower_cmsg.h | 14 +++--- 1 file changed, 7 inser

[PATCH v2 10/10] net/nfp: fix memory leak in VF initialization logic

2024-10-11 Thread Chaoyong He
Fix one memory leak problem in the logic of VF initialization. Fixes: d81e2b514dc9 ("net/nfp: move device info into process private data") Cc: sta...@dpdk.org Signed-off-by: Chaoyong He Reviewed-by: Long Wu Reviewed-by: Peng Zhang Acked-by: Stephen Hemminger --- drivers/net/nfp/nfp_ethdev_vf

[PATCH v2 08/10] net/nfp: fix problem caused by FEC set

2024-10-11 Thread Chaoyong He
The return value of 'nfp_eth_set_fec()' is three ways, the original logic considered it as two ways wrongly. Fixes: 37bd1b843a20 ("net/nfp: support setting FEC mode") Cc: zerun...@corigine.com Cc: sta...@dpdk.org Signed-off-by: Chaoyong He Reviewed-by: Long Wu Reviewed-by: Peng Zhang Acked-by:

Re: [PATCH] devtools: exclude common EAL header from attribute check

2024-10-11 Thread David Marchand
On Thu, Oct 10, 2024 at 7:41 PM Stephen Hemminger wrote: > > With the addition of SKIP_FILES in > > commit 7e421ae345f4 ("devtools: support skipping forbid rule check"), > > it is possible to avoid false positive on adding > > attribute wrapper in rte_common.h. > > > > Signed-off-by: David Marchan

Re: [PATCH v3 1/2] fib: implement RCU rule reclamation

2024-10-11 Thread David Marchand
On Thu, Oct 10, 2024 at 1:27 PM Vladimir Medvedkin wrote: > > Currently, for DIR24-8 algorithm, the tbl8 group is freed even though the > readers might be using the tbl8 group entries. The freed tbl8 group can > be reallocated quickly. As a result, lookup may be performed incorrectly. > > To addre

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

2024-10-11 Thread Thomas Monjalon
11/10/2024 10:04, Mattias Rönnblom: > On 2024-10-10 23:24, Thomas Monjalon wrote: > > Hello, > > > > This new feature looks to bring something interesting to DPDK. > > There was a good amount of discussion and review, > > and there is a real effort of documentation. > > > > However, some choices

RE: [RFC 0/4] ethdev: rework config restore

2024-10-11 Thread Dariusz Sosnowski
> -Original Message- > From: Ferruh Yigit > Sent: Friday, October 11, 2024 02:03 > To: Konstantin Ananyev ; Dariusz Sosnowski > ; NBU-Contact-Thomas Monjalon (EXTERNAL) > ; Andrew Rybchenko > Cc: dev@dpdk.org; Bruce Richardson > Subject: Re: [RFC 0/4] ethdev: rework config restore > >

Re: [PATCH v12 6/7] eal: add unit tests for atomic bit access functions

2024-10-11 Thread David Marchand
On Thu, Oct 10, 2024 at 1:56 PM Mattias Rönnblom wrote: > > On 2024-10-10 12:45, David Marchand wrote: > > On Fri, Sep 20, 2024 at 12:57 PM Mattias Rönnblom > > wrote: > >> + static int \ > >> + run_parallel_test_and_modify ## size(

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

2024-10-11 Thread Morten Brørup
> >> +/** > >> + * Get pointer to lcore variable instance of the current thread. > >> + * > >> + * May only be used by EAL threads and registered non-EAL threads. > >> + */ > >> +#define RTE_LCORE_VAR_VALUE(handle) \ > > > > RTE_LCORE_VAR_LOCAL? > > > > Why is that better? > > Maybe Morten can re

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

2024-10-11 Thread Mattias Rönnblom
Introduce DPDK per-lcore id variables, or lcore variables for short. An lcore variable has one value for every current and future lcore id-equipped thread. The primary use case is for statically allocating small, frequently-accessed data structures, for which one instance should exist for each l

[PATCH v10 2/7] eal: add lcore variable functional tests

2024-10-11 Thread Mattias Rönnblom
Add functional test suite to exercise the API. Signed-off-by: Mattias Rönnblom Acked-by: Morten Brørup Acked-by: Chengwen Feng Acked-by: Stephen Hemminger -- PATCH v6: * Update FOREACH invocations to match new API. RFC v5: * Adapt tests to reflect the removal of the GET() and SET() macro

[PATCH v10 4/7] random: keep PRNG state in lcore variable

2024-10-11 Thread Mattias Rönnblom
Replace keeping PRNG state in a RTE_MAX_LCORE-sized static array of cache-aligned and RTE_CACHE_GUARDed struct instances with keeping the same state in a more cache-friendly lcore variable. Signed-off-by: Mattias Rönnblom Acked-by: Morten Brørup Acked-by: Konstantin Ananyev Acked-by: Chengwen F

[PATCH v10 3/7] eal: add lcore variable performance test

2024-10-11 Thread Mattias Rönnblom
Add basic micro benchmark for lcore variables, in an attempt to assure that the overhead isn't significantly greater than alternative approaches, in scenarios where the benefits aren't expected to show up (i.e., when plenty of cache is available compared to the working set size of the per-lcore dat

[PATCH v10 5/7] power: keep per-lcore state in lcore variable

2024-10-11 Thread Mattias Rönnblom
Replace static array of cache-aligned structs with an lcore variable, to slightly benefit code simplicity and performance. Signed-off-by: Mattias Rönnblom Acked-by: Morten Brørup Acked-by: Konstantin Ananyev Acked-by: Chengwen Feng Acked-by: Stephen Hemminger -- PATCH v6: * Update FOREACH

[PATCH v10 7/7] eal: keep per-lcore power intrinsics state in lcore variable

2024-10-11 Thread Mattias Rönnblom
Keep per-lcore power intrinsics state in a lcore variable to reduce cache working set size and avoid any CPU next-line-prefetching causing false sharing. Signed-off-by: Mattias Rönnblom Acked-by: Morten Brørup Acked-by: Konstantin Ananyev Acked-by: Chengwen Feng Acked-by: Stephen Hemminger --

[PATCH v10 0/7] Lcore variables

2024-10-11 Thread Mattias Rönnblom
This patch set introduces a new API for static per-lcore id data allocation. Please refer to the API documentation for both a rationale for this new API, and a comparison to the alternatives available. The adoption of this API would affect many different DPDK modules, but the author updated onl

RE: [RFC 0/4] ethdev: rework config restore

2024-10-11 Thread Konstantin Ananyev
> > External email: Use caution opening links or attachments > > > On 10/10/2024 1:08 PM, Dariusz Sosnowski wrote: > >> -Original Message- > >> From: Ferruh Yigit > >> Sent: Thursday, October 10, 2024 01:17 > >> To: Dariusz Sosnowski ; Konstantin An

[PATCH v10 6/7] service: keep per-lcore state in lcore variable

2024-10-11 Thread Mattias Rönnblom
Replace static array of cache-aligned structs with an lcore variable, to slightly benefit code simplicity and performance. Signed-off-by: Mattias Rönnblom Acked-by: Morten Brørup Acked-by: Konstantin Ananyev Acked-by: Chengwen Feng Acked-by: Stephen Hemminger -- PATCH v7: * Update to match

[PATCH dpdk v2] checkpatches: verify in-reply-to header when possible

2024-10-11 Thread Robin Jarry
When using checkpatches.sh locally, verify that there is an In-Reply-To header when the patch is a respin (i.e. v2, v3, etc.). This is currently only enforced by the upstream CI but cannot be verified locally. This cannot be verified when checking commit ids since --in-reply-to is a git-format-pat

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

2024-10-11 Thread Thomas Monjalon
11/10/2024 10:09, Morten Brørup: > > > +static void * > > > +lcore_var_alloc(size_t size, size_t align) > > > +{ > > > + void *handle; > > > + unsigned int lcore_id; > > > + void *value; > > > + > > > + offset = RTE_ALIGN_CEIL(offset, align); > > > + > > > + if (offset + size > RTE_MAX_LCORE_VAR) {

Re: [PATCH v2] service: fix deadlock on worker lcore exit

2024-10-11 Thread David Marchand
On Thu, Oct 3, 2024 at 5:50 PM Van Haaren, Harry wrote: > > From: David Marchand > > Sent: Thursday, October 3, 2024 10:13 AM > > To: Mattias Rönnblom ; Van Haaren, Harry > > > > Cc: dev@dpdk.org ; step...@networkplumber.org > > ; suanmi...@nvidia.com ; > > tho...@monjalon.net ; sta...@dpdk.o

[PATCH v5 1/1] dmadev: support strict priority configuration

2024-10-11 Thread Vamsi Krishna
From: Vamsi Attunuru Some DMA controllers offer the ability to configure priority level for the DMA channels, allowing for the prioritization of DMA command execution based on channel importance. This patch supports such strict priority configuration. If the dmadev supports, it should advertise

[PATCH 2/4] ethdev: add get restore flags driver callback

2024-10-11 Thread Dariusz Sosnowski
Before this patch, ethdev layer assumed that all drivers require that it has to forcefully restore: - MAC addresses - promiscuous mode setting - all multicast mode setting upon rte_eth_dev_start(). This patch introduces a new callback to eth_dev_ops - get_restore_flags(). Drivers implementing th

[PATCH 3/4] ethdev: restore config only when requested

2024-10-11 Thread Dariusz Sosnowski
Use get_restore_flags() internal API introduced in previous commits in rte_eth_dev_start(), to restore only the configuration requested by the driver. Signed-off-by: Dariusz Sosnowski --- lib/ethdev/rte_ethdev.c | 31 +-- 1 file changed, 21 insertions(+), 10 deletions

[PATCH 4/4] net/mlx5: disable config restore

2024-10-11 Thread Dariusz Sosnowski
mlx5 PMD does not require configuration restore on rte_eth_dev_start(). Add implementation of get_restore_flags() indicating that. Signed-off-by: Dariusz Sosnowski --- drivers/net/mlx5/mlx5.c| 2 ++ drivers/net/mlx5/mlx5.h| 3 +++ drivers/net/mlx5/mlx5_ethdev.c | 19 +++

[PATCH 1/4] ethdev: rework config restore

2024-10-11 Thread Dariusz Sosnowski
Extract promiscuous and all multicast configuration restore to separate functions. This change will allow easier integration of disabling these procedures for supporting PMDs in follow up commits. Signed-off-by: Dariusz Sosnowski --- lib/ethdev/rte_ethdev.c | 34 +

[PATCH 0/4] ethdev: rework config restore

2024-10-11 Thread Dariusz Sosnowski
This patch series reworks the config restore procedure, so that drivers are able to enable/disable certain parts of it. Drivers can provide get_restore_flags() callback, which will indicate to ethdev library what configuration to restore. If callback is not defined, then ethdev assumes that all co

Re: [PATCH] rcu: refactor rcu register/unregister functions

2024-10-11 Thread David Marchand
On Sun, Sep 8, 2024 at 10:43 AM Doug Foster wrote: > > This simplifies the implementation of rte_rcu_qsbr_thread_register() > and rte_rcu_thread_unregister() functions. The simplified implementation > is easier to read. > > Signed-off-by: Doug Foster > Reviewed-by: Honnappa Nagarahalli > Reviewe

Re: [PATCH v6 2/3] net/ice: add frequency adjustment support for PTP

2024-10-11 Thread Ferruh Yigit
On 10/11/2024 9:02 AM, Bruce Richardson wrote: > On Fri, Oct 11, 2024 at 06:34:06AM +, Mingjin Ye wrote: >> Add ice support for new ethdev API to adjust frequency for IEEE1588 >> PTP. Also, this patch reworks code for converting software update >> to hardware update. >> >> Signed-off-by: Simei

Re: [PATCH v6 0/3] add frequency adjustment support for PTP

2024-10-11 Thread Ferruh Yigit
On 10/11/2024 7:34 AM, Mingjin Ye wrote: > [1/3] ethdev: add frequency adjustment API > [2/3] net/ice: add frequency adjustment support for PTP > [3/3] examples/ptpclient: add frequency adjustment > --- > v2: rte_eth_timesync_adjust_freq marked as experimental. > --- > v3: Add more description for

Re: [PATCH v6 1/3] ethdev: add frequency adjustment API

2024-10-11 Thread Ferruh Yigit
On 10/11/2024 7:34 AM, Mingjin Ye wrote: > This patch adds freq adjustment API for PTP high accuracy. > > Signed-off-by: Simei Su > Signed-off-by: Mingjin Ye > Reviewed-by: Ferruh Yigit Applied to dpdk-next-net/main, thanks.

Re: [PATCH 0/2] enhance the flower service framework

2024-10-11 Thread Ferruh Yigit
On 10/10/2024 8:45 AM, Chaoyong He wrote: > Enhance the NFP service framework when using the flower firmware, we can > using the alarm now when there is no service core. > > Long Wu (2): > net/nfp: rename flower service flag > net/nfp: enhance the flower service framework > Series applied to

Re: [PATCH 0/3] net/tap: queue limit patches

2024-10-11 Thread Ferruh Yigit
On 10/11/2024 6:29 PM, Stephen Hemminger wrote: > Some patches related to recent increase in possible queues. > > Stephen Hemminger (3): > net/tap: handle increase in mp_max_fds > net/tap: add static assert to make sure max queues less than fd limit > net/tap: increase the maximum allowable

Re: [PATCH v3 1/3] ethdev: add traffic manager query function

2024-10-11 Thread Ferruh Yigit
On 10/9/2024 11:32 AM, Bruce Richardson wrote: > Add function to allow querying a node in the scheduler tree. Returns > the parameters as were given to the add function. Adding this function > allows apps to just query the hierarchy rather than having to maintain > their own copies of it internall

Re: [PATCH v3 0/3] add support for querying ethdev TM nodes

2024-10-11 Thread Ferruh Yigit
On 10/9/2024 11:32 AM, Bruce Richardson wrote: > Add support for an ethdev TM query function to allow apps to get details > of the TM nodes they previously configured. This patchset includes: > > * ethdev changes to add the API > * implementation of the function in "ice" pmd > * testpmd command to

Re: [PATCH v6 0/4] fix segment fault when parse args

2024-10-11 Thread fengchengwen
On 2024/10/11 22:13, David Marchand wrote: > On Wed, Oct 9, 2024 at 6:50 AM Chengwen Feng wrote: >> >> The rte_kvargs_process() was used to parse key-value (e.g. socket_id=0), >> it also supports to parse only-key (e.g. socket_id). But many drivers's >> callback can only handle key-value, it will

Re: [PATCH v6 2/3] net/ice: add frequency adjustment support for PTP

2024-10-11 Thread Bruce Richardson
On Fri, Oct 11, 2024 at 06:34:06AM +, Mingjin Ye wrote: > Add ice support for new ethdev API to adjust frequency for IEEE1588 > PTP. Also, this patch reworks code for converting software update > to hardware update. > > Signed-off-by: Simei Su > Signed-off-by: Mingjin Ye > --- > doc/guides/

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

2024-10-11 Thread Mattias Rönnblom
On 2024-10-10 23:24, Thomas Monjalon wrote: Hello, This new feature looks to bring something interesting to DPDK. There was a good amount of discussion and review, and there is a real effort of documentation. However, some choices done in this implementation were not explained or advertised eno

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

2024-10-11 Thread Morten Brørup
Mattias, Please note that most of Thomas' questions are in the interest of the general public, considered requests for further documentation. > Do you have benchmarks results of the modules using such variables > (power, random, service)? > It would be interesting to compare time efficiency and

Re: [PATCH v3 00/50] Provide: flow filter init API, Enable virtual queues, fix ntnic issues for release 24.07

2024-10-11 Thread Ferruh Yigit
On 10/10/2024 3:13 PM, Serhii Iliushyk wrote: > The list of updates provided by the patchset: > * Update the supported version of the FPGA to 9563.55.49 > * Fix Coverity issues > * Fix issues related to release 24.07 > * Extended and fixed the implementation of the logging > * Added NT fl

Re: [PATCH v5 0/2] add two commands for testpmd application

2024-10-11 Thread Ferruh Yigit
On 10/10/2024 7:42 AM, Chaoyong He wrote: > This patch series aims to add two commands for the testpmd application: > - testpmd> set port eeprom magic \ > value offset > - testpmd> set port led > > --- > v5: > * Use 'accept_risk' rather than 'confirm' to make it clear enough. > *

Re: [PATCH v10 0/2] power: introduce PM QoS interface

2024-10-11 Thread lihuisong (C)
Hi Thomas and Ferruh, Kindly ping for merge. /Huisong 在 2024/9/12 11:07, fengchengwen 写道: Series-reviewed-by: Chengwen Feng Thanks chengwen. On 2024/9/12 10:38, Huisong Li wrote: The deeper the idle state, the lower the power consumption, but the longer the resume time. Some service are de

[PATCH v2 1/3] net/tap: handle increase in mp_max_fds

2024-10-11 Thread Stephen Hemminger
Now that max MP fds has increased to 253 it is possible that the number of queues the TAP device can handle is less than that. Therefore the code to handle MP message should only allow the number of queues it can handle. Coverity issue: 445386 Signed-off-by: Stephen Hemminger --- drivers/net/tap

[PATCH v2 3/3] net/tap: remove unnecessary checks in configure

2024-10-11 Thread Stephen Hemminger
The ethdev layer already validates that the number of requested queues is less than the reported max queues. Signed-off-by: Stephen Hemminger --- drivers/net/tap/rte_eth_tap.c | 16 1 file changed, 16 deletions(-) diff --git a/drivers/net/tap/rte_eth_tap.c b/drivers/net/tap/rte

[PATCH v2 2/3] net/tap: increase the maximum allowable queues

2024-10-11 Thread Stephen Hemminger
The default of 16 is too low for larger systems. Upper bound is the maximum number of fd's that can be passed to secondary process (253) and the maximum number of queue's allowed by Linux kernel (256). Both these manifest constants, are not exposed in visible kernel API. Signed-off-by: Stephen He

[PATCH v2 0/3] net/tap: queue limit patches

2024-10-11 Thread Stephen Hemminger
Some patches related to recent queue limit changes. v2 - up the limit to maximum Linux can support dont use static_assert here get rid of unreachable checks in configure Stephen Hemminger (3): net/tap: handle increase in mp_max_fds net/tap: increase the maximum allowable queues ne

Re: [PATCH 0/3] net/tap: queue limit patches

2024-10-11 Thread Stephen Hemminger
On Sat, 12 Oct 2024 02:01:12 +0100 Ferruh Yigit wrote: > On 10/11/2024 6:29 PM, Stephen Hemminger wrote: > > Some patches related to recent increase in possible queues. > > > > Stephen Hemminger (3): > > net/tap: handle increase in mp_max_fds > > net/tap: add static assert to make sure max q

Re: [PATCH v2 1/4] eal: add bitset type

2024-10-11 Thread Mattias Rönnblom
On 2024-10-10 10:30, David Marchand wrote: From: Mattias Rönnblom Introduce a set of functions and macros that operate on sets of bits, kept in arrays of 64-bit words. RTE bitset is designed for bitsets which are larger than what fits in a single machine word (i.e., 64 bits). Tiny detail: th

Re: [PATCH v4 2/5] graph: add node fastpath error counters

2024-10-11 Thread Robin Jarry
, Aug 16, 2024 at 17:09: From: Pavan Nikhilesh Add node fastpath error counters advertised during node registration. Signed-off-by: Pavan Nikhilesh Reviewed-by: Robin Jarry

Re: [PATCH v4 4/5] node: add error stats for ip4 lookup node

2024-10-11 Thread Robin Jarry
Hi Pavan, , Aug 16, 2024 at 17:09: From: Pavan Nikhilesh Add error counters for ip4 LPM lookup failures in ip4_lookup node. Signed-off-by: Pavan Nikhilesh [snip] diff --git a/lib/node/node_private.h b/lib/node/node_private.h index 1de7306792..36b2a733db 100644 --- a/lib/node/node_private

Re: [PATCH v3] fib: network byte order IPv4 lookup

2024-10-11 Thread David Marchand
On Thu, Oct 10, 2024 at 1:26 PM Vladimir Medvedkin wrote: > diff --git a/lib/fib/meson.build b/lib/fib/meson.build > index 6795f41a0a..8c03496cdc 100644 > --- a/lib/fib/meson.build > +++ b/lib/fib/meson.build > @@ -25,40 +25,28 @@ if dpdk_conf.has('RTE_ARCH_X86_64') and binutils_ok > # linked

RE: [PATCH] eal/x86: cache queried CPU flags

2024-10-11 Thread Konstantin Ananyev
> Rather than re-querying the HW each time a CPU flag is requested, we can > just save the return value in the flags array. This should speed up > repeated querying of CPU flags, and provides a workaround for a reported > issue where errors are seen with constant querying of the AVX-512 CPU > fl

Re: [PATCH v2 2/2] test/pcapng: test chained mbufs

2024-10-11 Thread David Marchand
On Sat, Oct 5, 2024 at 6:14 PM Stephen Hemminger wrote: > On Fri, 13 Sep 2024 16:06:00 +0300 > Oleksandr Nahnybida wrote: > > > Adjust test to check if pcapng works with chained mbufs > > > > Signed-off-by: Oleksandr Nahnybida > Acked-by: Stephen Hemminger Series applied, thanks Oleksandr. -

Re: [PATCH] app/dumpcap: fix handling of jumbo frames

2024-10-11 Thread David Marchand
On Fri, Oct 4, 2024 at 12:11 AM Stephen Hemminger wrote: > > If dumpcap (in legacy pcap mode) tried to handle a large segmented > frame it would core dump because rte_pktmbuf_read() would return NULL. > Fix by using same logic as in pcap PMD. > > Fixes: cbb44143be74 ("app/dumpcap: add new packet c

Re: [PATCH] eal/x86: cache queried CPU flags

2024-10-11 Thread Bruce Richardson
On Fri, Oct 11, 2024 at 12:42:01PM +, Konstantin Ananyev wrote: > > > > Rather than re-querying the HW each time a CPU flag is requested, we can > > just save the return value in the flags array. This should speed up > > repeated querying of CPU flags, and provides a workaround for a reported

Re: [PATCH v9] mempool: test performance with larger bursts

2024-10-11 Thread David Marchand
On Tue, Sep 17, 2024 at 10:10 AM Morten Brørup wrote: > > Bursts of up to 64, 128 and 256 packets are not uncommon, so increase the > maximum tested get and put burst sizes from 32 to 256. > For convenience, also test get and put burst sizes of > RTE_MEMPOOL_CACHE_MAX_SIZE. > > Some applications

RE: [PATCH v2 2/4] ethdev: add get restore flags driver callback

2024-10-11 Thread Konstantin Ananyev
> Before this patch, ethdev layer assumed that all drivers require that > it has to forcefully restore: > > - MAC addresses > - promiscuous mode setting > - all multicast mode setting > > upon rte_eth_dev_start(). > > This patch introduces a new callback to eth_dev_ops - > get_restore_flags()

Re: [PATCH v3] fib: network byte order IPv4 lookup

2024-10-11 Thread David Marchand
On Fri, Oct 11, 2024 at 1:29 PM David Marchand wrote: > > @@ -214,6 +215,7 @@ rte_fib_create(const char *name, int socket_id, struct > > rte_fib_conf *conf) > > rte_strlcpy(fib->name, name, sizeof(fib->name)); > > fib->rib = rib; > > fib->type = conf->type; > > + fib

Re: [PATCH v2] doc: announce single-event enqueue/dequeue ABI change

2024-10-11 Thread David Marchand
On Wed, Jul 5, 2023 at 1:18 PM Mattias Rönnblom wrote: > > Announce the removal of the single-event enqueue and dequeue > operations from the eventdev ABI. > > Signed-off-by: Mattias Rönnblom > > --- > PATCH v2: Fix commit subject prefix. > --- > doc/guides/rel_notes/deprecation.rst | 8

Re: [PATCH dpdk] buildtools/cmdline: fix meson error when used as a subproject

2024-10-11 Thread Thomas Monjalon
07/08/2024 15:43, Bruce Richardson: > On Thu, Aug 01, 2024 at 12:01:54PM +0200, Robin Jarry wrote: > > Fix the following error when using dpdk as a subproject: > > > > subprojects/dpdk/buildtools/subproject/meson.build:28:56: > > ERROR: Unknown function "file". > > > > This was obviously never

Re: [PATCH] doc: postpone deprecation of pipeline legacy API

2024-10-11 Thread David Marchand
On Wed, Jul 19, 2023 at 5:13 PM Cristian Dumitrescu wrote: > > Postpone the deprecation of the legacy pipeline, table and port > library API and gradual stabilization of the new API. > > Signed-off-by: Cristian Dumitrescu > --- > doc/guides/rel_notes/deprecation.rst | 21 + >

Re: [PATCH dpdk] graph: make graphviz export more readable

2024-10-11 Thread David Marchand
On Wed, Aug 28, 2024 at 3:42 PM Robin Jarry wrote: > > Change the color of arrows leading to sink nodes to dark orange. Remove > the node oval shape around the sink nodes and make their text dark > orange. This results in a much more readable output for large graphs. > See the link below for an ex

Re: [PATCH dpdk v7] graph: expose node context as pointers

2024-10-11 Thread David Marchand
On Mon, Sep 30, 2024 at 11:28 AM Robin Jarry wrote: > > In some cases, the node context data is used to store two pointers > because the data is larger than the reserved 16 bytes. Having to define > intermediate structures just to be able to cast is tedious. And without > intermediate structures,

Re: [PATCH] eal: increase max file descriptor for secondary process device

2024-10-11 Thread David Marchand
On Thu, Oct 10, 2024 at 11:51 AM David Marchand wrote: > > On Thu, Sep 5, 2024 at 6:22 PM Stephen Hemminger > wrote: > > > > The TAP and XDP driver both are limited to only 8 queues when > > because of the small limit imposed by EAL. Increase the limit > > now since this release allows changing A

Re: [PATCH dpdk v2 03/16] net: add structure for ipv6 addresses

2024-10-11 Thread Stephen Hemminger
On Fri, 11 Oct 2024 14:37:35 +0200 Morten Brørup wrote: > > From: Robin Jarry [mailto:rja...@redhat.com] > > Sent: Thursday, 10 October 2024 22.08 > > > > Morten Brørup, Oct 06, 2024 at 10:18: > > > This has been discussed before, but I want to double check... > > > > > > If - sometime in the

[DPDK/ethdev Bug 1563] Many I219 variants not supported by E1000 druver

2024-10-11 Thread bugzilla
https://bugs.dpdk.org/show_bug.cgi?id=1563 Bug ID: 1563 Summary: Many I219 variants not supported by E1000 druver Product: DPDK Version: 24.11 Hardware: All OS: All Status: UNCONFIRMED Severity: normal

RE: [EXTERNAL] Re: [PATCH v4 3/5] graph: add stats for node specific errors

2024-10-11 Thread Pavan Nikhilesh Bhagavatula
> -Original Message- > From: Robin Jarry > Sent: Friday, October 11, 2024 3:24 PM > To: Pavan Nikhilesh Bhagavatula ; Jerin Jacob > ; Nithin Kumar Dabilpuram > ; Kiran Kumar Kokkilagadda > ; zhirun@intel.com; Zhirun Yan > > Cc: dev@dpdk.org > Subject: [EXTERNAL] Re: [PATCH v4 3/5]

[PATCH 0/9] net/ice: base code update for RC2

2024-10-11 Thread Bruce Richardson
A number of small fixes and other changes to enable Tx scheduler enhancements to our DPDK driver have been added to the base code. Upstream these changes for 24.11 RC2. Most have previously been submitted as part of the scheduler changes [1] [1] https://patches.dpdk.org/project/dpdk/list/?series=3

[PATCH 4/9] net/ice/base: remove 255 limit on sched child nodes

2024-10-11 Thread Bruce Richardson
The Tx scheduler in the ice driver can be configured to have large numbers of child nodes at a given layer, but the driver code implicitly limited the number of nodes to 255 by using a u8 datatype for the number of children. Increase this to a 16-bit value throughout the code. Signed-off-by: Bruce

[PATCH 1/9] net/ice/base: re-enable bypass mode for E822

2024-10-11 Thread Bruce Richardson
From: Jacob Keller When removing bypass mode, the code for E822 bypass was completely removed in error. This code should be maintained in DPDK so re-add the necessary functions. Fixes: ce9ad8c5bc6d ("net/ice/base: remove PHY port timer bypass mode") Cc: sta...@dpdk.org Signed-off-by: Jacob Kell

[PATCH 2/9] net/ice/base: add bounds check

2024-10-11 Thread Bruce Richardson
From: Fabio Pricoco Refactor while loop to add a check that the values read are in the correct range. Fixes: 6c1f26be50a2 ("net/ice/base: add control queue information") Cc: sta...@dpdk.org Signed-off-by: Fabio Pricoco Signed-off-by: Bruce Richardson --- drivers/net/ice/base/ice_controlq.c |

[PATCH 3/9] net/ice/base: fix VLAN replay after reset

2024-10-11 Thread Bruce Richardson
From: Dave Ertman If there is more than one VLAN defined when any reset that affects the PF is initiated, after the reset rebuild, no traffic will pass on any VLAN but the last one created. This is caused by the iteration though the VLANs during replay each clearing the vsi_map bitmap of the VSI

[PATCH 5/9] net/ice/base: set VSI index on newly created nodes

2024-10-11 Thread Bruce Richardson
The ice_sched_node type has got a field for the vsi to which the node belongs. This field was not getting set in "ice_sched_add_node", so add a line configuring this field for each node from its parent node. Similarly, when searching for a qgroup node, we can check for each node that the VSI inform

[PATCH 6/9] net/ice/base: optimize subtree searches

2024-10-11 Thread Bruce Richardson
In a number of places throughout the driver code, we want to confirm that a scheduler node is indeed a child of another node. Currently, this is confirmed by searching down the tree from the base until the desired node is hit, a search which may hit many irrelevant tree nodes when recursing down wr

[PATCH 7/9] net/ice/base: remove flag checks before topology upload

2024-10-11 Thread Bruce Richardson
DPDK should support more than just 9-level or 5-level topologies, so remove the checks for those particular settings. Signed-off-by: Bruce Richardson --- drivers/net/ice/base/ice_ddp.c | 33 - 1 file changed, 33 deletions(-) diff --git a/drivers/net/ice/base/ice_

[PATCH 8/9] net/ice/base: allow init without TC class sched nodes

2024-10-11 Thread Bruce Richardson
If DCB support is disabled via DDP image, there will not be any traffic class (TC) nodes in the scheduler tree immediately above the root level. To allow the driver to work with this scenario, we allow use of the root node as a dummy TC0 node in case where there are no TC nodes in the tree. For use

[PATCH 9/9] net/ice/base: read VSI layer info from VSI

2024-10-11 Thread Bruce Richardson
Rather than computing from the number of HW layers the layer of the VSI, we can instead just read that info from the VSI node itself. This allows the layer to be changed at runtime. Signed-off-by: Bruce Richardson --- drivers/net/ice/base/ice_sched.c | 2 +- 1 file changed, 1 insertion(+), 1 del

RE: [EXTERNAL] Re: [PATCH v4 1/5] graph: add support for node specific errors

2024-10-11 Thread Pavan Nikhilesh Bhagavatula
> On Fri, Aug 16, 2024 at 5:10 PM wrote: > > > > From: Pavan Nikhilesh > > > > Add ability for Nodes to advertise error counters > > during registration. > > > > Signed-off-by: Pavan Nikhilesh > > Such a series deserve a cover letter. > > It also deserves a RN update, and I see no removal of t

[PATCH v3 2/4] ethdev: add get restore flags driver callback

2024-10-11 Thread Dariusz Sosnowski
Before this patch, ethdev layer assumed that all drivers require that it has to forcefully restore: - MAC addresses - promiscuous mode setting - all multicast mode setting upon rte_eth_dev_start(). This patch introduces a new callback to eth_dev_ops - get_restore_flags(). Drivers implementing th

[PATCH v3 3/4] ethdev: restore config only when requested

2024-10-11 Thread Dariusz Sosnowski
Use get_restore_flags() internal API introduced in previous commits in rte_eth_dev_start(), to restore only the configuration requested by the driver. Signed-off-by: Dariusz Sosnowski --- lib/ethdev/rte_ethdev.c | 31 +-- 1 file changed, 21 insertions(+), 10 deletions

[PATCH v3 0/4] ethdev: rework config restore

2024-10-11 Thread Dariusz Sosnowski
This patch series reworks the config restore procedure, so that drivers are able to enable/disable certain parts of it. Drivers can provide get_restore_flags() callback, which will indicate to ethdev library what configuration to restore. If callback is not defined, then ethdev assumes that all co

[PATCH v3 4/4] net/mlx5: disable config restore

2024-10-11 Thread Dariusz Sosnowski
mlx5 PMD does not require configuration restore on rte_eth_dev_start(). Add implementation of get_restore_flags() indicating that. Signed-off-by: Dariusz Sosnowski --- drivers/net/mlx5/mlx5.c| 2 ++ drivers/net/mlx5/mlx5.h| 2 ++ drivers/net/mlx5/mlx5_ethdev.c | 18

[PATCH v3 1/4] ethdev: rework config restore

2024-10-11 Thread Dariusz Sosnowski
Extract promiscuous and all multicast configuration restore to separate functions. This change will allow easier integration of disabling these procedures for supporting PMDs in follow up commits. Signed-off-by: Dariusz Sosnowski --- lib/ethdev/rte_ethdev.c | 34 +

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

2024-10-11 Thread Ferruh Yigit
On 10/11/2024 7:34 AM, Mingjin Ye wrote: > This patch adds PI servo controller to support frequency > adjustment API for IEEE1588 PTP. > > For example, the command for starting ptpclient with PI controller is: > dpdk-ptpclient -a :81:00.0 -c 1 -n 3 -- -T 0 -p 0x1 -c 1 > > Signed-off-by: Simei

Re: [PATCH] doc: correct definition of Stats per queue feature

2024-10-11 Thread Ferruh Yigit
On 10/11/2024 2:38 AM, Stephen Hemminger wrote: > Change the documentation to match current usage of this feature > in the NIC table. Moved this sub heading to be after basic > stats because the queue stats reported now are in the same structure. > > Although the "Stats per Queue" feature was orig

Re: [PATCH v3 0/4] ethdev: rework config restore

2024-10-11 Thread Ferruh Yigit
On 10/11/2024 7:51 PM, Dariusz Sosnowski wrote: > This patch series reworks the config restore procedure, > so that drivers are able to enable/disable certain parts of it. > Drivers can provide get_restore_flags() callback, > which will indicate to ethdev library what configuration to restore. > >

Re: [PATCH] net/nfb: fix use after free

2024-10-11 Thread Martin Spinler
On Thu, 2024-10-10 at 19:17 +0200, David Marchand wrote: > On Thu, Oct 10, 2024 at 7:16 PM Thomas Monjalon wrote: > > > > With the annotations added to the allocation functions, > > more issues are detected at compilation time: > > > > nfb_rx.c:133:28: error: pointer 'rxq' used after 'rte_free'

RE: [PATCH v14 1/4] lib: add generic support for reading PMU events

2024-10-11 Thread Konstantin Ananyev
> Add support for programming PMU counters and reading their values > in runtime bypassing kernel completely. > > This is especially useful in cases where CPU cores are isolated > i.e run dedicated tasks. In such cases one cannot use standard > perf utility without sacrificing latency and perfo

RE: [PATCH dpdk v2 16/16] ipv6: add function to check ipv6 version

2024-10-11 Thread Morten Brørup
> From: Robin Jarry [mailto:rja...@redhat.com] > Sent: Thursday, 10 October 2024 22.01 > > Hi Morten, > > Morten Brørup, Oct 06, 2024 at 11:02: > > Personally, I would prefer following the convention of rte_ether > functions to return boolean (as int)... > > > > static inline int > rte_is_ signed

[PATCH v1] net/ice: fix incorrect reading of PHY timestamp

2024-10-11 Thread Soumyadeep Hore
In ICE PMD, previously the ready bitmap checking before reading PHY timestamp was not present. This caused incorrect Tx timestamping. The ready bitmap checking is enabled and PHY timestamp is read once the ready bitmap gives positive value. Fixes: 881169950d80 ("net/ice/base: implement initial PT

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

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

Re: [PATCH v6 0/4] fix segment fault when parse args

2024-10-11 Thread David Marchand
On Wed, Oct 9, 2024 at 6:50 AM Chengwen Feng wrote: > > The rte_kvargs_process() was used to parse key-value (e.g. socket_id=0), > it also supports to parse only-key (e.g. socket_id). But many drivers's > callback can only handle key-value, it will segment fault if handles > only-key. so the patch

Re: [PATCH v5 1/1] dmadev: support strict priority configuration

2024-10-11 Thread fengchengwen
Acked-by: Chengwen Feng On 2024/10/11 17:13, Vamsi Krishna wrote: > From: Vamsi Attunuru > > Some DMA controllers offer the ability to configure priority > level for the DMA channels, allowing for the prioritization > of DMA command execution based on channel importance. > > This patch support

Re: [PATCH v4 1/5] graph: add support for node specific errors

2024-10-11 Thread Robin Jarry
Hi Pavan, , Aug 16, 2024 at 17:09: From: Pavan Nikhilesh Add ability for Nodes to advertise error counters during registration. Signed-off-by: Pavan Nikhilesh --- v2 Changes: - Fix compilation. v3 Changes: - Resend as 1/5 didn't make it through. v4 Changes: - Address review comments. - Rebas

Re: [PATCH v3] fib: network byte order IPv4 lookup

2024-10-11 Thread Robin Jarry
Hi Vladimir, Vladimir Medvedkin, Oct 10, 2024 at 13:26: Previously when running rte_fib_lookup IPv4 addresses must have been in host byte order. This patch adds a new flag RTE_FIB_FLAG_LOOKUP_BE that can be passed on fib create, which will allow to have IPv4 in network byte order on lookup. Si

Re: [PATCH v14 1/4] lib: add generic support for reading PMU events

2024-10-11 Thread Stephen Hemminger
On Fri, 11 Oct 2024 11:56:04 + Konstantin Ananyev wrote: > > + * > > + * @return > > + * 0 in case of success, negative value otherwise. > > + */ > > +__rte_experimental > > +int > > +rte_pmu_init(void); > > + > > +/** > > + * @warning > > + * @b EXPERIMENTAL: this API may change without pr

Re: [PATCH v10 0/7] Lcore variables

2024-10-11 Thread Stephen Hemminger
On Fri, 11 Oct 2024 10:18:54 +0200 Mattias Rönnblom wrote: > This patch set introduces a new API for static > per-lcore id data allocation. > > Please refer to the API documentation for both a > rationale for this new API, and a comparison to the alternatives > available. > > The adoption of

  1   2   >