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

2024-09-10 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 --- lib/eal/x86/rte_power_intrinsics.c | 17 +++-- 1 file changed, 11 ins

[PATCH 4/6] power: keep per-lcore state in lcore variable

2024-09-10 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 -- RFC v3: * Replace for loop with FOREACH macro. --- lib/power/rte_power_pmd_mgmt.c | 34 ---

[PATCH 0/6] Lcore variables

2024-09-10 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

[PATCH 2/6] eal: add lcore variable test suite

2024-09-10 Thread Mattias Rönnblom
Add test suite to exercise the API. Signed-off-by: Mattias Rönnblom Acked-by: Morten Brørup -- RFC v5: * Adapt tests to reflect the removal of the GET() and SET() macros. RFC v4: * Check all lcore id's values for all variables in the many variables test case. * Introduce test case for

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

2024-09-10 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 -- RFC v6: * Remove a now-redundant lcore variable value memset(). RFC v5: * Fix lcore value pointer bug introdu

[PATCH 3/6] random: keep PRNG state in lcore variable

2024-09-10 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 -- RFC v3: * Remove cache alignment on unregist

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

2024-09-10 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

Re: [PATCH v2] service: extend service function call statistics

2024-09-10 Thread Mattias Rönnblom
On 2024-09-10 03:19, fengchengwen wrote: Acked-by: Chengwen Feng Thanks. Harry, could we have a maintainer opinion on this patch? On 2024/9/10 3:11, Mattias Rönnblom wrote: Add two new per-service counters. RTE_SERVICE_ATTR_IDLE_CALL_COUNT tracks the number of service function invocation

[PATCH] net/mlx5: add hairpin counter per queue

2024-09-10 Thread Shani Peretz
Currently mlx5 PMD exposes hairpin_out_of_buffer counter that specifically tracks packets dropped when hairpin Rx queue is full. This patch allows the user to choose whether they want to track packet drops at a per-port level or a per-queue level. If the user chooses to have a counter per queue,

[PATCH V1 0/3] Error report improvement and fix

2024-09-10 Thread Gavin Li
This patch set is to improve error handling in pmd and under layer. Gavin Li (3): net/mlx5: set rte errno if malloc failed --- changelog: v0->v1 - Fix typo in commit message --- net/mlx5/hws: add log for failing to create rule in HWS net/mlx5/hws: print CQE error syndrome and more informati

[PATCH V1 2/3] net/mlx5/hws: add log for failing to create rule in HWS

2024-09-10 Thread Gavin Li
From: "Minggang Li (Gavin)" Signed-off-by: Gavin Li Acked-by: Alex Vesker --- drivers/net/mlx5/hws/mlx5dr_rule.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/drivers/net/mlx5/hws/mlx5dr_rule.c b/drivers/net/mlx5/hws/mlx5dr_rule.c index 1edb7eac74..5d66d81ea5 100644 --- a/drivers/

[PATCH V1 1/3] net/mlx5: set rte errno if malloc failed

2024-09-10 Thread Gavin Li
From: "Minggang Li (Gavin)" rte_errno should be set if anything wrong happened in under layer so that user can figure out what's going on. There were some cases that did not set it when ipool allocation failed. To fix the issue, set rte_errno to ENOMEM if mlx5_ipool_malloc failed to allocate ID.

[PATCH V1 3/3] net/mlx5/hws: print CQE error syndrome and more information

2024-09-10 Thread Gavin Li
From: "Minggang Li (Gavin)" Signed-off-by: Gavin Li Acked-by: Alex Vesker --- drivers/net/mlx5/hws/mlx5dr_send.c | 9 - 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/drivers/net/mlx5/hws/mlx5dr_send.c b/drivers/net/mlx5/hws/mlx5dr_send.c index 3022c50260..c931896a79 100

Re: [PATCH v1] dts: correct typos in conf.yaml

2024-09-10 Thread Juraj Linkeš
The subject should be more specific. We don't want a bunch of commits with the same subject. On 13. 8. 2024 19:17, Dean Marx wrote: correct docstring error in conf.yaml showing incorrect example pci address for TG nodes This should be a regular sentence that starts with a capital letter and

[RFC 0/3] Introduce event prefetching

2024-09-10 Thread pbhagavatula
From: Pavan Nikhilesh Event prefetching improves scheduling performance by pre-scheduling events to event ports when dequeues are issued. This series introduces various types and levels of prefetching to the eventdev library. Prefetching Types: * RTE_EVENT_DEV_PREFETCH_NONE: No prefetching. *

[RFC 1/3] eventdev: introduce event prefetching

2024-09-10 Thread pbhagavatula
From: Pavan Nikhilesh Event prefetching enhances scheduling performance by pre-scheduling events to event ports when dequeues are issued. The dequeue operation initiates the prefetch operation, which completes in parallel without affecting the dequeued event flow contexts and dequeue latency. Ev

[RFC 2/3] eventdev: allow event ports to modified prefetches

2024-09-10 Thread pbhagavatula
From: Pavan Nikhilesh Some event devices allow prefetch types to be modified at runtime on an event port. Add `RTE_EVENT_DEV_CAP_EVENT_PER_PORT_PREFETCH` capability to indicate that the event device supports this feature. Add `rte_event_port_prefetch_modify()` API to modify the prefetch type at

[RFC 3/3] eventdev: add SW event prefetch hint

2024-09-10 Thread pbhagavatula
From: Pavan Nikhilesh Add a new eventdev API to provide a hint to the eventdev PMD to prefetch the next event into the event port, without releasing the current flow context. Event device that support this feature advertises the capability using the RTE_EVENT_DEV_CAP_SW_PREFETCH capability flag.

[PATCH v6 0/6] Improve EAL bit operations API

2024-09-10 Thread Mattias Rönnblom
This patch set represent an attempt to improve and extend the RTE bitops API, in particular for functions that operate on individual bits. All new functionality is exposed to the user as generic selection macros, delegating the actual work to private (__-marked) static inline functions. Public fun

[PATCH v6 5/6] eal: add unit tests for atomic bit access functions

2024-09-10 Thread Mattias Rönnblom
Extend bitops tests to cover the rte_bit_atomic_*() family of functions. Signed-off-by: Mattias Rönnblom Acked-by: Morten Brørup Acked-by: Tyler Retzlaff Acked-by: Jack Bond-Preston -- RFC v4: * Add atomicity test for atomic bit flip. RFC v3: * Rename variable 'main' to make ICC happy. --

[PATCH v6 6/6] eal: extend bitops to handle volatile pointers

2024-09-10 Thread Mattias Rönnblom
Have rte_bit_[test|set|clear|assign|flip]() and rte_bit_atomic_*() handle volatile-marked pointers. Signed-off-by: Mattias Rönnblom Acked-by: Morten Brørup Acked-by: Jack Bond-Preston -- PATCH v3: * Updated to reflect removed 'fun' parameter in __RTE_GEN_BIT_*() (Jack Bond-Preston). PATC

[PATCH v6 2/6] eal: extend bit manipulation functionality

2024-09-10 Thread Mattias Rönnblom
Add functionality to test and modify the value of individual bits in 32-bit or 64-bit words. These functions have no implications on memory ordering, atomicity and does not use volatile and thus does not prevent any compiler optimizations. Signed-off-by: Mattias Rönnblom Acked-by: Morten Brørup

[PATCH v6 3/6] eal: add unit tests for bit operations

2024-09-10 Thread Mattias Rönnblom
Extend bitops tests to cover the rte_bit_[test|set|clear|assign|flip]() functions. The tests are converted to use the test suite runner framework. Signed-off-by: Mattias Rönnblom Acked-by: Morten Brørup Acked-by: Tyler Retzlaff Acked-by: Jack Bond-Preston -- RFC v6: * Test rte_bit_*test()

[PATCH v6 4/6] eal: add atomic bit operations

2024-09-10 Thread Mattias Rönnblom
Add atomic bit test/set/clear/assign/flip and test-and-set/clear/assign/flip functions. All atomic bit functions allow (and indeed, require) the caller to specify a memory order. Signed-off-by: Mattias Rönnblom Acked-by: Morten Brørup Acked-by: Tyler Retzlaff Acked-by: Jack Bond-Preston --

Re: [PATCH v1] dts: Testbed And Node Configuration Split

2024-09-10 Thread Juraj Linkeš
On 14. 6. 2024 20:32, Jeremy Spewock wrote: On Mon, Jun 10, 2024 at 3:37 PM Nicholas Pratte wrote: -def load_config(config_file_path: Path) -> Configuration: +def load_config(node_config_file_path: Path, exec_config_file_path: Path) -> Configuration: """Load DTS test run configura

[PATCH 01/33] mempool/cnxk: add cn20k PCI device ids

2024-09-10 Thread Nithin Dabilpuram
From: Ashwin Sekhar T K Add cn20k PCI device ids. Signed-off-by: Ashwin Sekhar T K --- drivers/mempool/cnxk/cnxk_mempool.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/mempool/cnxk/cnxk_mempool.c b/drivers/mempool/cnxk/cnxk_mempool.c index 1181b6f265..6ff11d8004 100644 --- a/

[PATCH 02/33] common/cnxk: accommodate change in aura field width

2024-09-10 Thread Nithin Dabilpuram
From: Ashwin Sekhar T K Aura field width has changed from 20 bits to 17 bits in cn20k. Adjust the bit fields accordingly for register reads/writes. Signed-off-by: Ashwin Sekhar T K --- drivers/common/cnxk/roc_npa.h | 24 1 file changed, 16 insertions(+), 8 deletions(-)

[PATCH 04/33] mempool/cnxk: initialize mempool ops for cn20k

2024-09-10 Thread Nithin Dabilpuram
From: Ashwin Sekhar T K Initialize mempool ops for cn20k. Signed-off-by: Ashwin Sekhar T K --- drivers/mempool/cnxk/cnxk_mempool_ops.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mempool/cnxk/cnxk_mempool_ops.c b/drivers/mempool/cnxk/cnxk_mempool_ops.c index a1

[PATCH 05/33] net/cnxk: added telemetry support do dump SA information

2024-09-10 Thread Nithin Dabilpuram
From: Rakesh Kudurumalla Added new telemetry command to dump SA taking portid and SA index as parameters. Ex: /cnxk/ipsec/sa_info,0,3 dumps inbound and outbound SA information of SA index 3 Signed-off-by: Rakesh Kudurumalla --- drivers/net/cnxk/cnxk_ethdev_sec_telemetry.c | 145 ++

[PATCH 06/33] net/cnxk: handle timestamp correctly for VF

2024-09-10 Thread Nithin Dabilpuram
From: Rakesh Kudurumalla When timestamp is enabled on PF in kernel and respective VF is attached to application in DPDK mbuf_addr is getting corrupted in cnxk_nix_timestamp_dynfield() as "tstamp_dynfield_offset" is zero for PTP enabled PF This patch fixes the same Signed-off-by: Rakesh Kudurumal

[PATCH 07/33] net/cnxk: update Rx offloads to handle timestamp

2024-09-10 Thread Nithin Dabilpuram
From: Rakesh Kudurumalla RX offloads flags are updated to handle timestamp in VF when ptp is enabled in respective PF in kernle Signed-off-by: Rakesh Kudurumalla --- drivers/net/cnxk/cn10k_ethdev.c | 6 +- drivers/net/cnxk/cn9k_ethdev.c | 5 - drivers/net/cnxk/cnxk_ethdev.h | 7 +

[PATCH 10/33] common/cnxk: remove restriction to clear RPM stats

2024-09-10 Thread Nithin Dabilpuram
From: Sunil Kumar Kori Linux does not support clearing RPM stats on cn10k platform. Hence restriction is added that when user requests to clear xstats then request is discarded silently. Hence removing restriction for cn10k. Signed-off-by: Sunil Kumar Kori --- drivers/common/cnxk/roc_nix_mac.

[PATCH 08/33] event/cnxk: handle timestamp for event mode

2024-09-10 Thread Nithin Dabilpuram
From: Rakesh Kudurumalla handle timestamp correctly for VF when ptp is enabled before running application in event mode by updating RX offload flags in link up notification Signed-off-by: Rakesh Kudurumalla --- drivers/event/cnxk/cn10k_eventdev.c | 32 drivers/eve

[PATCH 00/33] add Marvell cn20k SOC support for mempool and net

2024-09-10 Thread Nithin Dabilpuram
This series adds support for Marvell cn20k SOC for mempool and net PMD's. This series also adds few net/cnxk PMD updates to expose IPsec features supported by HW that are very custom in nature and some enhancements for cn10k. Depends-on: series-32878 ("Marvell cn20K SOC base code") Ashwin Sekhar

[PATCH 09/33] net/cnxk: update mbuf and rearm data for Rx inject packets

2024-09-10 Thread Nithin Dabilpuram
From: Rakesh Kudurumalla When nix receives second pass packets injected to CPT next segments of primary mbuf are accessed directly using mbuf next pointer since we do not know at what offset mbuf is available.To achieve this we do no update mbut next pointer to NULL for Rx injected packets. Sign

[PATCH 15/33] common/cnxk: support bandwidth profile for cn20k

2024-09-10 Thread Nithin Dabilpuram
From: Satha Rao Add support to setup bandwidth profile config for cn20k for Rx policier. Signed-off-by: Satha Rao --- drivers/common/cnxk/roc_nix_bpf.c | 528 ++-- drivers/common/cnxk/roc_nix_queue.c | 136 --- 2 files changed, 425 insertions(+), 239 deletions(-)

[PATCH 11/33] common/cnxk: allow MAC address set/add with active VFs

2024-09-10 Thread Nithin Dabilpuram
From: Sunil Kumar Kori If device is in reconfigure state then it throws error while changing default MAC or adding new MAC in LMAC filter table if there are active VFs on a PF. Allowing MAC address set/add even active VFs are present on PF. Signed-off-by: Sunil Kumar Kori --- drivers/common/c

[PATCH 14/33] common/cnxk: support NIX queue config for cn20k

2024-09-10 Thread Nithin Dabilpuram
From: Satha Rao Add support to setup NIX RQ, SQ, CQ for cn20k. Signed-off-by: Satha Rao --- drivers/common/cnxk/roc_nix_fc.c | 52 ++- drivers/common/cnxk/roc_nix_inl.c| 2 + drivers/common/cnxk/roc_nix_priv.h | 1 + drivers/common/cnxk/roc_nix_queue.c | 532 +++

[PATCH 03/33] common/cnxk: use new NPA aq enq mbox for cn20k

2024-09-10 Thread Nithin Dabilpuram
From: Ashwin Sekhar T K A new mbox npa_cn20k_aq_enq_req has been added for cn20k. Use this mbox for NPA configurations. Note that the size of these new mbox request and response remains same when compared to the older mboxes. Also the new contexts npa_cn20k_aura_s/ npa_cn20k_pool_s which has bee

[PATCH 17/33] common/cnxk: add RSS support for cn20k

2024-09-10 Thread Nithin Dabilpuram
From: Satha Rao Add RSS configuration support for cn20k. Signed-off-by: Satha Rao --- drivers/common/cnxk/roc_nix_rss.c | 74 +-- 1 file changed, 70 insertions(+), 4 deletions(-) diff --git a/drivers/common/cnxk/roc_nix_rss.c b/drivers/common/cnxk/roc_nix_rss.c in

[PATCH 16/33] common/cnxk: support NIX debug for cn20k

2024-09-10 Thread Nithin Dabilpuram
From: Satha Rao Add support to dump cn20k queue structs and also provide the same in telemetry data. Signed-off-by: Satha Rao --- drivers/common/cnxk/cnxk_telemetry_nix.c | 260 ++- drivers/common/cnxk/roc_nix_debug.c | 234 +++- drivers/common/cnxk/roc

Re: [PATCH v1] dts: Testbed And Node Configuration Split

2024-09-10 Thread Juraj Linkeš
On 14. 6. 2024 20:27, Jeremy Spewock wrote: I think this is definitely a step in the right direction in terms of how we structure the config files. Something that I think could also be a cool improvement for how we handle configs is just making a `conf/` directory and then taking all of the co

[PATCH 18/33] net/cnxk: add cn20k base control path support

2024-09-10 Thread Nithin Dabilpuram
Add cn20k base control path support for ethdev. Signed-off-by: Nithin Dabilpuram Signed-off-by: Sunil Kumar Kori Signed-off-by: Rakesh Kudurumalla Signed-off-by: Satha Rao Signed-off-by: Rahul Bhansali --- drivers/net/cnxk/cn20k_ethdev.c | 553 ++ drivers/net/cn

[PATCH 23/33] net/cnxk: support Tx burst scalar for cn20k

2024-09-10 Thread Nithin Dabilpuram
Add scalar Tx support for cn20k. Signed-off-by: Nithin Dabilpuram Signed-off-by: Jerin Jacob Signed-off-by: Rahul Bhansali Signed-off-by: Pavan Nikhilesh --- drivers/net/cnxk/cn20k_ethdev.c | 127 drivers/net/cnxk/cn20k_tx.h | 987 +++- 2 files changed, 11

[PATCH 20/33] net/cnxk: support Tx function select for cn20k

2024-09-10 Thread Nithin Dabilpuram
Add support to select Tx function based on offload flags for cn20k. Signed-off-by: Nithin Dabilpuram --- drivers/net/cnxk/cn20k_ethdev.c | 80 ++ drivers/net/cnxk/cn20k_ethdev.h | 1 + drivers/net/cnxk/cn20k_tx.h | 237 ++ driv

[PATCH 21/33] net/cnxk: support Rx burst scalar for cn20k

2024-09-10 Thread Nithin Dabilpuram
Add Rx burst support scalar version for cn20k. Signed-off-by: Nithin Dabilpuram Signed-off-by: Jerin Jacob Signed-off-by: Rahul Bhansali Signed-off-by: Pavan Nikhilesh --- drivers/net/cnxk/cn20k_ethdev.c| 126 + drivers/net/cnxk/cn20k_rx.h| 394

[PATCH 24/33] net/cnxk: support Tx multi-seg in cn20k

2024-09-10 Thread Nithin Dabilpuram
Add Tx multi-seg support in scalar for cn20k. Signed-off-by: Nithin Dabilpuram Signed-off-by: Jerin Jacob Signed-off-by: Rahul Bhansali Signed-off-by: Pavan Nikhilesh --- drivers/net/cnxk/cn20k_tx.h | 352 +++- 1 file changed, 347 insertions(+), 5 deletions(-)

[PATCH 22/33] net/cnxk: support Rx burst vector for cn20k

2024-09-10 Thread Nithin Dabilpuram
Add Rx vector support for cn20k Signed-off-by: Nithin Dabilpuram Signed-off-by: Jerin Jacob Signed-off-by: Rahul Bhansali Signed-off-by: Pavan Nikhilesh --- drivers/net/cnxk/cn20k_rx.h | 463 +++- 1 file changed, 459 insertions(+), 4 deletions(-) diff --git a/

[PATCH 25/33] net/cnxk: support Tx burst vector for cn20k

2024-09-10 Thread Nithin Dabilpuram
Signed-off-by: Nithin Dabilpuram Signed-off-by: Jerin Jacob Signed-off-by: Rahul Bhansali Signed-off-by: Pavan Nikhilesh --- drivers/net/cnxk/cn20k_tx.h | 1445 ++- 1 file changed, 1441 insertions(+), 4 deletions(-) diff --git a/drivers/net/cnxk/cn20k_tx.h b/dr

[PATCH 26/33] net/cnxk: support Tx multi-seg in vector for cn20k

2024-09-10 Thread Nithin Dabilpuram
Add Tx multi-seg support for cn20k. Signed-off-by: Nithin Dabilpuram Signed-off-by: Jerin Jacob Signed-off-by: Rahul Bhansali Signed-off-by: Pavan Nikhilesh --- drivers/net/cnxk/cn20k_tx.h | 485 ++-- 1 file changed, 463 insertions(+), 22 deletions(-) diff --g

[PATCH 28/33] common/cnxk: fix CPT HW word size for outbound SA

2024-09-10 Thread Nithin Dabilpuram
Fix the CPT HW word size inited for outbound SA to be two words. Fixes: 5ece02e736c3 ("common/cnxk: use common SA init API for default options") Cc: sta...@dpdk.org Signed-off-by: Nithin Dabilpuram --- drivers/common/cnxk/roc_ie_ot.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/c

[PATCH 27/33] common/cnxk: add flush wait after write of inline ctx

2024-09-10 Thread Nithin Dabilpuram
Reading a CPT_LF_CTX_ERR csr will ensure writes for FLUSH are complete and also tell whether flush is complete or not. Signed-off-by: Nithin Dabilpuram --- drivers/common/cnxk/roc_nix_inl.c | 8 1 file changed, 8 insertions(+) diff --git a/drivers/common/cnxk/roc_nix_inl.c b/drivers/c

[PATCH 29/33] net/cnxk: add PMD APIs for IPsec SA base and flush

2024-09-10 Thread Nithin Dabilpuram
From: Srujana Challa Introduces new PMD APIs for Inline IPsec, including hardware SA flush and obtaining the base address for the inline device sa table. This allows applications to directly manage IPsec SAs. This patch also updates the rte_pmd_cnxk_hw_sa_read|write() API's to get use portid inst

[PATCH 30/33] net/cnxk: add PMD APIs to submit CPT instruction

2024-09-10 Thread Nithin Dabilpuram
From: Srujana Challa Introduces new PMD APIs for submitting CPT instructions to the Inline Device. These APIs allows applications to directly submit CPT instructions to the Inline Device. Signed-off-by: Srujana Challa --- drivers/common/cnxk/roc_nix_inl.h | 12 ++- drivers/common/cnxk

[PATCH 19/33] net/cnxk: support Rx function select for cn20k

2024-09-10 Thread Nithin Dabilpuram
Add support to select Rx function based on offload flags for cn20k. Signed-off-by: Nithin Dabilpuram --- drivers/net/cnxk/cn20k_ethdev.c | 59 - drivers/net/cnxk/cn20k_ethdev.h | 3 + drivers/net/cnxk/cn20k_rx.h | 226 ++ drive

[PATCH 31/33] net/cnxk: add PMD API to retrieve CPT queue statistics

2024-09-10 Thread Nithin Dabilpuram
From: Srujana Challa Introduces a new PMD API to obtain CPT queue statistics, including: - CPT_LF_CTX_ENC_BYTE_CNT - Encrypted byte count on the given queue - CPT_LF_CTX_ENC_PKT_CNT - Encrypted packet count on the given queue - CPT_LF_CTX_DEC_BYTE_CNT - Decrypted byte count on the given queue - C

[PATCH 32/33] net/cnxk: add option to enable custom inbound sa usage

2024-09-10 Thread Nithin Dabilpuram
From: Srujana Challa Introduces a device argument (custom_inb_sa) to activate the usage of custom inbound SA. If inline device is used then this device argument will be required for both inline device and eth device. With custom_inb_sa configuration, application can do the post processing of inli

[PATCH 33/33] net/cnxk: add PMD API to retrieve the model string

2024-09-10 Thread Nithin Dabilpuram
From: Srujana Challa This patch adds PMD API to retrieve the model string. This API allows applications to get the HW model string directly. Signed-off-by: Srujana Challa --- drivers/net/cnxk/cnxk_ethdev.c | 7 +++ drivers/net/cnxk/rte_pmd_cnxk.h | 9 + drivers/net/cnxk/version.ma

Re: [RFC 0/3] Introduce event prefetching

2024-09-10 Thread Mattias Rönnblom
On 2024-09-10 10:31, pbhagavat...@marvell.com wrote: From: Pavan Nikhilesh Event prefetching improves scheduling performance by pre-scheduling events to event ports when dequeues are issued. This series introduces various types and levels of prefetching to the eventdev library. I would avoid

[PATCH v5 1/8] zsda: Introduce zsda device drivers

2024-09-10 Thread Hanxiao Li
Introduce driver support for ZSDA which can help to accelerate storage data process. Signed-off-by: Hanxiao Li --- MAINTAINERS | 4 + config/rte_config.h | 4 + drivers/common/zsda/meson.build | 25 +++ drivers/common/zsda/zsda_common.c | 168 ++

Re: [PATCH v2] dts: Testbed And Node Configuration Split

2024-09-10 Thread Juraj Linkeš
create mode 100644 dts/execution_conf.yaml As Jeremy mentioned, this is a duplicate. I guess this patch needs to be rebased as it mentions executions all over the place. create mode 100644 dts/node_conf.yaml create mode 100644 dts/testbed_conf.yaml And this should be named test_run_c

[PATCH v5 2/8] zsda: add support for zsdadev operations

2024-09-10 Thread Hanxiao Li
Add support for zsdadev operations such as dev_start and dev_stop. Signed-off-by: Hanxiao Li --- drivers/common/zsda/zsda_device.c | 476 ++ drivers/common/zsda/zsda_device.h | 103 +++ 2 files changed, 579 insertions(+) create mode 100644 drivers/common/zsda/zsd

[PATCH v5 6/8] zsda: add zsda crypto-pmd

2024-09-10 Thread Hanxiao Li
Add new file zsda_sym_pmd.c, zsda_sym_pmd.h in drivers/crypto/zsda Signed-off-by: Hanxiao Li --- drivers/crypto/zsda/zsda_sym_capabilities.h | 112 + drivers/crypto/zsda/zsda_sym_pmd.c | 429 drivers/crypto/zsda/zsda_sym_pmd.h | 35 ++ 3 files changed,

[PATCH v5 3/8] zsda: add support for queue operation

2024-09-10 Thread Hanxiao Li
Add queue initialization, release, enqueue, dequeue and other interface. Signed-off-by: Hanxiao Li --- drivers/common/zsda/zsda_qp.c | 720 ++ drivers/common/zsda/zsda_qp.h | 160 2 files changed, 880 insertions(+) create mode 100644 drivers/common/zsda/

[PATCH v5 7/8] zsda: add zsda crypto-sym

2024-09-10 Thread Hanxiao Li
Add new file zsda_sym.c, zsda_sym.h in drivers/crypto/zsda Signed-off-by: Hanxiao Li --- drivers/crypto/zsda/zsda_sym.c | 286 + drivers/crypto/zsda/zsda_sym.h | 25 +++ 2 files changed, 311 insertions(+) create mode 100644 drivers/crypto/zsda/zsda_sym.c create

[PATCH v5 4/8] zsda: add zsda compressdev driver and interface

2024-09-10 Thread Hanxiao Li
Add zsda compressdev driver and enqueue, dequeue interface. Signed-off-by: Hanxiao Li --- drivers/compress/zsda/zsda_comp.c | 361 drivers/compress/zsda/zsda_comp.h | 27 ++ drivers/compress/zsda/zsda_comp_pmd.c | 453 ++ drivers/compress/zsd

[PATCH v5 5/8] zsda: modify files for introducing zsda cryptodev

2024-09-10 Thread Hanxiao Li
It is necessary to make necessary modifications to existing files based on the newly introduced content Signed-off-by: Hanxiao Li --- MAINTAINERS | 3 ++ drivers/common/zsda/zsda_common.h | 50 +++ drivers/common/zsda/zsda_device.c | 42 +++-

[PATCH v5 8/8] zsda: add zsda crypto-session and compile file

2024-09-10 Thread Hanxiao Li
Add new file zsda_sym_session.c, zsda_symsession.h and modify drivers/common/zsda/meson.build Signed-off-by: Hanxiao Li --- drivers/common/zsda/meson.build| 16 +- drivers/crypto/zsda/zsda_sym_session.c | 503 + drivers/crypto/zsda/zsda_sym_session.h | 82

[PATCH 12/33] net/cnxk: move PMD function defines to common code

2024-09-10 Thread Nithin Dabilpuram
Move PMD function definitions to common code for cn9k/cn10k since they are declared commonly. Also remove the reference to 'struct rte_security_session' since it is now a driver internal structure and not exported to application code. Signed-off-by: Nithin Dabilpuram --- drivers/net/cnxk/cn10k_

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

2024-09-10 Thread Morten Brørup
> From: Mattias Rönnblom [mailto:mattias.ronnb...@ericsson.com] > Sent: Tuesday, 10 September 2024 09.04 > > Introduce DPDK per-lcore id variables, or lcore variables for short. Throughout the descriptions and comments, please replace "lcore id" with "lcore" (e.g. "per-lcore variables"), when ref

Re: [PATCH v9 1/2] power: introduce PM QoS API on CPU wide

2024-09-10 Thread lihuisong (C)
Hi Chengwen, Thanks for your review. 在 2024/9/10 10:00, fengchengwen 写道: Hi Huisong Please see comments inline. Thanks On 2024/8/9 17:50, Huisong Li wrote: The deeper the idle state, the lower the power consumption, but the longer the resume time. Some service are delay sensitive and very e

Re: [RFC v1 0/1] dts: separate allowed values from json schema

2024-09-10 Thread Juraj Linkeš
On 7. 8. 2024 17:01, Luca Vizzarro wrote: Hi Nicholas, Thank you for the proposal. The way I see it is that JSON schema can be very developer unfriendly to read, therefore I would not rely on it for this purpose. Adding $refs as well could start making it more complicated for this purpose.

[PATCH 13/33] common/cnxk: add cn20k NIX register definitions

2024-09-10 Thread Nithin Dabilpuram
From: Satha Rao Add cn20k NIX register definitions. Signed-off-by: Satha Rao Signed-off-by: Nithin Dabilpuram --- drivers/common/cnxk/hw/nix.h | 524 + drivers/common/cnxk/hw/rvu.h | 7 +- drivers/common/cnxk/roc_mbox.h | 52 drivers/common/cnxk/roc

[PATCH v2 3/3] examples/ptpclient: add frequency adjustment support

2024-09-10 Thread Mingjin Ye
This patch adds PI servo algorithm to support frequency adjustment API for IEEE1588 PTP. For example, the command for starting ptpclient with PI algorithm is: ./build/examples/dpdk-ptpclient -a :81:00.0 -c 1 -n 3 -- -T 0 -p 0x1 --controller=pi Signed-off-by: Simei Su Signed-off-by: Wenjun Wu

[PATCH v2 0/3] add frequency adjustment support for PTP

2024-09-10 Thread Mingjin Ye
[1/3] ethdev: add frequency adjustment API [2/3] net/ice: add frequency adjustment support for PTP [3/3] examples/ptpclient: add frequency adjustment support --- v2: rte_eth_timesync_adjust_freq marked as experimental. Mingjin Ye (3): ethdev: add frequency adjustment API net/ice: add frequency

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

2024-09-10 Thread Mingjin Ye
This patch adds freq adjustment API for PTP high accuracy. Signed-off-by: Simei Su Signed-off-by: Mingjin Ye --- doc/guides/nics/features.rst | 4 +++- doc/guides/rel_notes/release_24_11.rst | 30 +++--- lib/ethdev/ethdev_driver.h | 5 + lib/ethde

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

2024-09-10 Thread Mingjin Ye
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/nics/ice.rst | 15 +++ drivers/net/ice/ice_ethdev.c | 177

[PATCH] net/r8169: add logging structure

2024-09-10 Thread Howard Wang
Implement logging macros for debug purposes. Signed-off-by: Howard Wang --- drivers/net/r8169/r8169_ethdev.c | 40 drivers/net/r8169/r8169_logs.h | 53 2 files changed, 93 insertions(+) create mode 100644 drivers/net/r8169/r8169_logs.h

Re: [PATCH v1 1/3] dts: rework port attributes in config module

2024-09-10 Thread Juraj Linkeš
As a general note, it's possible we should wait with these changes for the Pydantic changes which could simplify a lot of what we want to do with the config (not just this, but also the split and removing excess attributes). On 21. 8. 2024 20:43, Nicholas Pratte wrote: The current design requ

Re: [PATCH v1 2/3] dts: rework testbed_model Port objects to contain unique identifiers

2024-09-10 Thread Juraj Linkeš
On 21. 8. 2024 20:43, Nicholas Pratte wrote: In order to leverage the usability of unique identifiers on ports, the testbed_model Port object needs some refactoring/trimming of obsolete or needless attributes. Bugzilla ID: 1478 Signed-off-by: Nicholas Pratte --- dts/framework/testbed_mode

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

2024-09-10 Thread Mattias Rönnblom
On 2024-09-10 11:32, Morten Brørup wrote: From: Mattias Rönnblom [mailto:mattias.ronnb...@ericsson.com] Sent: Tuesday, 10 September 2024 09.04 Introduce DPDK per-lcore id variables, or lcore variables for short. Throughout the descriptions and comments, please replace "lcore id" with "lcore" (

Re: [PATCH 11/11] drivers: use per line logging in helpers

2024-09-10 Thread David Marchand
On Sat, Sep 7, 2024 at 4:56 PM David Marchand wrote: > > Use RTE_LOG_LINE in existing macros that append a \n. > > Signed-off-by: David Marchand > --- [snip] > diff --git a/drivers/net/octeon_ep/otx_ep_common.h > b/drivers/net/octeon_ep/otx_ep_common.h > index 7d5dd91a77..ea9788757e 100644 > -

Re: [PATCH v1 3/3] dts: rework test suite and dts runner to include test_run configs

2024-09-10 Thread Juraj Linkeš
On 4. 9. 2024 20:18, Jeremy Spewock wrote: On Wed, Aug 21, 2024 at 2:43 PM Nicholas Pratte wrote: diff --git a/dts/framework/test_suite.py b/dts/framework/test_suite.py index 694b2eba65..fd51796a06 100644 --- a/dts/framework/test_suite.py +++ b/dts/framework/test_suite.py @@ -20,6 +20,7 @@

[PATCH v1 1/9] common/iavf: update the PTP enablement in virtchnl

2024-09-10 Thread Soumyadeep Hore
From: Jacob Keller The virtchnl now supports the PTP Tx Timestamp attributes in iavf. Signed-off-by: Jacob Keller Signed-off-by: Soumyadeep Hore --- drivers/common/iavf/virtchnl.h | 50 ++ 1 file changed, 50 insertions(+) diff --git a/drivers/common/iavf/virtc

[PATCH v1 2/9] common/iavf: add SyncE support over VF

2024-09-10 Thread Soumyadeep Hore
From: Piotr Gardocki This patch enables to VF access to all SyncE related operations. Most of the opcodes in this implementation map directly to the AQ commands. Additionally there is a VIRTCHNL_OP_SYNCE_GET_HW_INFO opcode which should be used by VF to discover all hardware related details requi

[PATCH v1 3/9] common/iavf: add GNSS support over VF

2024-09-10 Thread Soumyadeep Hore
From: Jun Zhang This patch enables VF access to GNSS Console I2C. Most of the opcodes in this implementation map directly to the AQ commands for GNSS Console I2C Read and Write for GNSS status, configuration, and NMEA messages. Additionally there is VF and PF negotiation on GNSS Access Capabili

[PATCH v1 4/9] common/iavf: define the maximum MSIX index

2024-09-10 Thread Soumyadeep Hore
From: Ahmed Zaki The iAVF 1.1 standard defines the maximum number of interrupts to be 64. Following other defines in iavf_resgister.h, define the VFINT_DYN_MAX_INDEX to be 63. This will allow us to check the maximum number of interrupts that we can ask from the OS. Signed-off-by: Ahmed Zaki Sig

[PATCH v1 5/9] common/iavf: add commands for HQOS management

2024-09-10 Thread Soumyadeep Hore
From: Lukasz Plachno Add VIRTCHNL operations for managing scheduling nodes for VSI subtree. E822/E830 adapters allows VNet based scheduling tree configuration. Management of scheduling nodes up to VSIs is done by devlink interface. Signed-off-by: Lukasz Plachno Signed-off-by: Soumyadeep Hore

[PATCH v1 6/9] common/iavf: add flex descriptor fields enum

2024-09-10 Thread Soumyadeep Hore
From: Mateusz Polchlopek Flex descriptor has fields like DD, EOP or RXE defined under other addresses than legacy descriptor. This commit introduces enum with bits definitions for flex one. Signed-off-by: Mateusz Polchlopek Signed-off-by: Soumyadeep Hore --- drivers/common/iavf/iavf_type.h |

[PATCH v1 7/9] common/iavf: add RefSync support

2024-09-10 Thread Soumyadeep Hore
From: Julian Grajkowski Update virtchnl to reflect RefSync implementation. Reading and modifying DPLL input pin configuration, including Esync/RefSync option, is possible on VM using sysfs. The request is passed from the VM via virtchnl message to the host driver and results in an admin command b

[PATCH v1 9/9] common/iavf: add RSS CONFIG hash function

2024-09-10 Thread Soumyadeep Hore
From: Ahmed Zaki Add VIRTCHNL_OP_CONFIG_RSS_HFUNC that allows the iavf to select the VF's hash function. Signed-off-by: Ahmed Zaki Signed-off-by: Soumyadeep Hore --- drivers/common/iavf/virtchnl.h | 19 +++ 1 file changed, 19 insertions(+) diff --git a/drivers/common/iavf/vir

[PATCH v1 8/9] common/iavf: introduce QGRP capabilities to replace ADQ caps

2024-09-10 Thread Soumyadeep Hore
From: Sudheer Mogilappagari Currently VIRTCHNL_VF_OFFLOAD_ADQ cap is used for VF ADQ functionality with i40e PF and VIRTCHNL_VF_OFFLOAD_ADQ_V2 cap is used for functionality with ice PF. Above caps makes the IAVF code complicated with additional checks all around TC configuration and TC filter co

[PATCH v1 0/9] Update IAVF Base Driver

2024-09-10 Thread Soumyadeep Hore
Updated the IAVF Base driver with latest sharedcode patches. Ahmed Zaki (2): common/iavf: define the maximum MSIX index common/iavf: add RSS CONFIG hash function Jacob Keller (1): common/iavf: update the PTP enablement in virtchnl Julian Grajkowski (1): common/iavf: add RefSync support

Re: [PATCH v2 1/6] dts: Remove build target config and list of devices

2024-09-10 Thread Juraj Linkeš
The subject line should be all lowercase (except for abbreviations and maybe some other exceptions). On 5. 7. 2024 19:13, Nicholas Pratte wrote: Remove the list of devices from the schema, as these are unuesed. Typo: unuesed Likewise, removed build-target information since these is not curr

RE: [EXTERNAL] Re: [RFC 0/3] Introduce event prefetching

2024-09-10 Thread Pavan Nikhilesh Bhagavatula
> On 2024-09-10 10:31, pbhagavat...@marvell.com wrote: > > From: Pavan Nikhilesh > > > > Event prefetching improves scheduling performance by pre-scheduling > events to > > event ports when dequeues are issued. This series introduces various types > and > > levels of prefetching to the eventdev li

Re: [PATCH v9 2/2] examples/l3fwd-power: add PM QoS configuration

2024-09-10 Thread lihuisong (C)
Hi chengwen, 在 2024/9/10 10:26, fengchengwen 写道: Hi Huisong, On 2024/8/9 17:50, Huisong Li wrote: Add PM QoS configuration to declease the delay after sleep in case of entering deeper idle state. Signed-off-by: Huisong Li Acked-by: Morten Brørup --- examples/l3fwd-power/main.c | 24 ++

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

2024-09-10 Thread Morten Brørup
> From: Mattias Rönnblom [mailto:hof...@lysator.liu.se] > Sent: Tuesday, 10 September 2024 12.45 > > On 2024-09-10 11:32, Morten Brørup wrote: > >> From: Mattias Rönnblom [mailto:mattias.ronnb...@ericsson.com] > >> Sent: Tuesday, 10 September 2024 09.04 > >> > >> Introduce DPDK per-lcore id variab

[PATCH v2] vfio: check iova if already mapped before do map

2024-09-10 Thread Yunjian Wang
From: Lipei Liang When mapping two adjacent memory areas A and B, the current implementation merges them into one segment, known as area C. However, if areas A and B are mapped again, there will be separate entries for A, C, and B in the memory maps, as C divides A and B. This means that if A and

Re: [PATCH v2 2/6] dts: Use First Core Logic Change

2024-09-10 Thread Juraj Linkeš
On 5. 7. 2024 19:13, Nicholas Pratte wrote: Removed use_first_core from the conf.yaml in favor of determining this within the framework. use_first_core continue to serve a purpose in that it is only enabled when core 0 is explicitly provided in the configuration. Any other configuration, inclu

Re: [PATCH v2 3/6] dts: Self-Discovering Architecture Change

2024-09-10 Thread Juraj Linkeš
On 5. 7. 2024 19:13, Nicholas Pratte wrote: The 'arch' attribute in the conf.yaml is unnecessary, as this can be readily discovered within the constructor of any given node. Since OS is determined within user configuration, finding system arch can be done both reliably and easily within the fr

  1   2   >