RE: [RFC PATCH] eventdev: adapter API to configure multiple Rx queues

2025-01-15 Thread Shijith Thotton
>> >>> This RFC introduces a new API, >> >>> rte_event_eth_rx_adapter_queues_add(), >> >>> designed to enhance the flexibility of configuring multiple Rx >> >>> queues in eventdev Rx adapter. >> >>> >> >>> The existing rte_event_eth_rx_adapter_queue_add() API supports >> >>> adding multiple queues

Re: [PATCH v1 1/2] ethdev: clarify do not something in the new event

2025-01-15 Thread lihuisong (C)
在 2025/1/15 19:31, Thomas Monjalon 写道: 15/01/2025 04:41, Huisong Li: If application verify the validity of the port id or configure this port in the new event callback, application may happen to the port id is invalid. Actually, when application receive a new event from one port, the port is

Re: [PATCH v1 2/2] ethdev: fix some APIs can be used in the new event

2025-01-15 Thread lihuisong (C)
在 2025/1/15 19:36, Thomas Monjalon 写道: 15/01/2025 04:41, Huisong Li: The rte_eth_dev_socket_id() and rte_eth_dev_owner_*() can be used after allocating an ethdev. So this patch relaxes the conditions for using them. You should be more explicit: "during probing, before it becomes generally ava

Re: [PATCH v8 2/2] dts: port over dynamic config test suite

2025-01-15 Thread Patrick Robb
Thanks, applied to next-dts with the git fixup.

Re: [PATCH v8 1/2] dts: add multicast set function to shell

2025-01-15 Thread Patrick Robb
Thanks, applied to next-dts.

Re: [PATCH v8 1/2] dts: add multicast set function to shell

2025-01-15 Thread Patrick Robb
Hi Dean. This looks good to me, though I agree Luca's point about show_port_info_all() is compelling. We are enforcing the paired topology today but may not always. I don't view it as something which should block the testsuite, but this is worth tracking. Can you make a Bugzilla ticket for this, a

Re: [PATCH v8 2/2] dts: port over dynamic config test suite

2025-01-15 Thread Patrick Robb
On Wed, Jan 15, 2025 at 11:30 AM Dean Marx wrote: > +def disable_promisc_setup(self, testpmd: TestPmdShell, port_id: int) > -> TestPmdShell: > +"""Sets up testpmd shell config for cases where promisc mode is > disabled. > + > +Args: > +testpmd: Testpmd session that

[PATCH v7 08/15] net/zxdh: provided dev simple rx implementations

2025-01-15 Thread Junlong Wang
provided dev simple rx implementations. Signed-off-by: Junlong Wang --- doc/guides/nics/features/zxdh.ini | 1 + doc/guides/nics/zxdh.rst | 1 + drivers/net/zxdh/zxdh_ethdev.c| 1 + drivers/net/zxdh/zxdh_rxtx.c | 313 ++ drivers/net/zxdh/zxdh_r

[PATCH v7 13/15] net/zxdh: rss hash config/update, reta update/get

2025-01-15 Thread Junlong Wang
provided rss hash config/update, reta update/get ops. Signed-off-by: Junlong Wang --- doc/guides/nics/features/zxdh.ini | 3 + doc/guides/nics/zxdh.rst | 1 + drivers/net/zxdh/zxdh_ethdev.c | 52 drivers/net/zxdh/zxdh_ethdev.h | 3 + drivers/net/zxdh/zxdh_ethdev_op

[PATCH v7 12/15] net/zxdh: vlan filter/ offload ops implementations

2025-01-15 Thread Junlong Wang
provided vlan filter, vlan offload ops. Signed-off-by: Junlong Wang --- doc/guides/nics/features/zxdh.ini | 3 + doc/guides/nics/zxdh.rst | 3 + drivers/net/zxdh/zxdh_ethdev.c | 40 +- drivers/net/zxdh/zxdh_ethdev_ops.c | 223 + drivers/net/zxd

[PATCH v7 11/15] net/zxdh: promisc/allmulti ops implementations

2025-01-15 Thread Junlong Wang
provided promiscuous/allmulticast ops. Signed-off-by: Junlong Wang --- doc/guides/nics/features/zxdh.ini | 2 + doc/guides/nics/zxdh.rst | 2 + drivers/net/zxdh/zxdh_ethdev.c | 21 ++- drivers/net/zxdh/zxdh_ethdev.h | 2 + drivers/net/zxdh/zxdh_ethdev_ops.c | 128 ++

[PATCH v7 10/15] net/zxdh: mac set/add/remove ops implementations

2025-01-15 Thread Junlong Wang
provided mac set/add/remove ops. Signed-off-by: Junlong Wang --- doc/guides/nics/features/zxdh.ini | 2 + doc/guides/nics/zxdh.rst | 2 + drivers/net/zxdh/zxdh_common.c | 24 +++ drivers/net/zxdh/zxdh_common.h | 1 + drivers/net/zxdh/zxdh_ethdev.c | 33 - drive

[PATCH v7 09/15] net/zxdh: link info update, set link up/down

2025-01-15 Thread Junlong Wang
provided link info update, set link up /down, and link intr. Signed-off-by: Junlong Wang --- doc/guides/nics/features/zxdh.ini | 2 + doc/guides/nics/zxdh.rst | 3 + drivers/net/zxdh/meson.build | 1 + drivers/net/zxdh/zxdh_ethdev.c | 22 +++- drivers/net/zxdh/zxdh_et

[PATCH v7 07/15] net/zxdh: provided dev simple tx implementations

2025-01-15 Thread Junlong Wang
provided dev simple tx implementations. Signed-off-by: Junlong Wang --- drivers/net/zxdh/meson.build | 1 + drivers/net/zxdh/zxdh_ethdev.c | 22 ++ drivers/net/zxdh/zxdh_queue.h | 26 ++- drivers/net/zxdh/zxdh_rxtx.c | 396 + drivers/net/zxdh/zxdh_rxtx.h

[PATCH v7 06/15] net/zxdh: dev start/stop ops implementations

2025-01-15 Thread Junlong Wang
dev start/stop implementations, start/stop the rx/tx queues. Signed-off-by: Junlong Wang --- doc/guides/nics/features/zxdh.ini | 2 + doc/guides/nics/zxdh.rst | 2 + drivers/net/zxdh/zxdh_ethdev.c| 71 drivers/net/zxdh/zxdh_pci.c | 21 +++ driver

[PATCH v7 05/15] net/zxdh: rx/tx queue setup and intr enable

2025-01-15 Thread Junlong Wang
rx/tx queue setup and intr enable implementations. Signed-off-by: Junlong Wang --- drivers/net/zxdh/zxdh_ethdev.c | 4 + drivers/net/zxdh/zxdh_queue.c | 149 + drivers/net/zxdh/zxdh_queue.h | 33 3 files changed, 186 insertions(+) diff --git a/drive

[PATCH v7 04/15] net/zxdh: port tables unint implementations

2025-01-15 Thread Junlong Wang
delete port tables in host. Signed-off-by: Junlong Wang --- drivers/net/zxdh/zxdh_ethdev.c | 18 ++ drivers/net/zxdh/zxdh_msg.h| 1 + drivers/net/zxdh/zxdh_np.c | 103 + drivers/net/zxdh/zxdh_np.h | 9 +++ drivers/net/zxdh/zxdh_tables.c | 33

[PATCH v7 02/15] net/zxdh: zxdh np uninit implementation

2025-01-15 Thread Junlong Wang
(np)network processor release resources in host. Signed-off-by: Junlong Wang --- drivers/net/zxdh/zxdh_ethdev.c | 48 drivers/net/zxdh/zxdh_np.c | 470 + drivers/net/zxdh/zxdh_np.h | 107 3 files changed, 625 insertions(+) diff --git a/driv

[PATCH v7 00/15] net/zxdh: updated net zxdh driver

2025-01-15 Thread Junlong Wang
V7: - resolved warning '-Waddress-of-packed-member' in function 'zxdh_dev_rss_reta_update'. V6: - Remove unnecessary __rte_packed in the virtqueue structure and others. - Remove Some blank before or after log message, and remove some end with period in log message. V5: - Simplify

[PATCH v13 3/3] drivers/net: add diagnostics macros to make code portable

2025-01-15 Thread Andre Muezerie
It was a common pattern to have "GCC diagnostic ignored" pragmas sprinkled over the code and only activate these pragmas for certain compilers (gcc and clang). Clang supports GCC's pragma for compatibility with existing source code, so #pragma GCC diagnostic and #pragma clang diagnostic are synonym

[PATCH v13 2/3] drivers/common: add diagnostics macros to make code portable

2025-01-15 Thread Andre Muezerie
It was a common pattern to have "GCC diagnostic ignored" pragmas sprinkled over the code and only activate these pragmas for certain compilers (gcc and clang). Clang supports GCC's pragma for compatibility with existing source code, so #pragma GCC diagnostic and #pragma clang diagnostic are synonym

[PATCH v13 0/3] add diagnostics macros to make code portable

2025-01-15 Thread Andre Muezerie
It was a common pattern to have "GCC diagnostic ignored" pragmas sprinkled over the code and only activate these pragmas for certain compilers (gcc and clang). Clang supports GCC's pragma for compatibility with existing source code, so #pragma GCC diagnostic and #pragma clang diagnostic are synonym

[PATCH v13 1/3] eal: add diagnostics macros to make code portable

2025-01-15 Thread Andre Muezerie
It was a common pattern to have "GCC diagnostic ignored" pragmas sprinkled over the code and only activate these pragmas for certain compilers (gcc and clang). Clang supports GCC's pragma for compatibility with existing source code, so #pragma GCC diagnostic and #pragma clang diagnostic are synonym

Tech Board Meeting Minutes - 2025-Jan-08

2025-01-15 Thread Konstantin Ananyev
Members Attending - Aaron Conole Bruce Richardson Hemant Agrawal Kevin Traynor Konstantin Ananyev (chair) Maxime Coquelin Morten Brørup Stephen Hemminger Thomas Monjalon NOTE: The technical board meetings are on every second Wednesday at 3pm UTC. Meetings are public, and

[PATCH v4 0/2] dts: port over unified packet type suite

2025-01-15 Thread Dean Marx
Port over unified packet type flag testing suite from old DTS. According to DPDK documentation, each Poll Mode Driver should reserve 32 bits of packet headers for unified packet type flags. These flags serve as an identifier for user applications, and are divided into subcategories: L2, L3, L4, tu

[PATCH v4 2/2] dts: port over unified packet suite

2025-01-15 Thread Dean Marx
Port over unified packet testing suite from old DTS. This suite tests the ability of the PMD to recognize valid or invalid packet flags. Signed-off-by: Dean Marx Reviewed-by: Jeremy Spewock --- dts/tests/TestSuite_uni_pkt.py | 300 + 1 file changed, 300 insertion

[PATCH v4 1/2] dts: add VXLAN port method to testpmd shell

2025-01-15 Thread Dean Marx
Add rx_vxlan_port add/rm method to testpmd shell for adding or removing a vxlan id to the specified port filter list. Signed-off-by: Dean Marx Reviewed-by: Jeremy Spewock --- dts/framework/remote_session/testpmd_shell.py | 21 +++ 1 file changed, 21 insertions(+) diff --git a/d

[DPDK/other Bug 1608] dpdk-dumpcap not allowed to do multiple invocations on the same interface

2025-01-15 Thread bugzilla
https://bugs.dpdk.org/show_bug.cgi?id=1608 Kevin Traynor (ktray...@redhat.com) changed: What|Removed |Added CC||ktray...@redhat.com

[DPDK/other Bug 1610] dpdk-dumpcap does not support packet capture on vhost-user-client interfaces.

2025-01-15 Thread bugzilla
https://bugs.dpdk.org/show_bug.cgi?id=1610 Kevin Traynor (ktray...@redhat.com) changed: What|Removed |Added Resolution|--- |WONTFIX Status|

RE: [RFC PATCH] eventdev: adapter API to configure multiple Rx queues

2025-01-15 Thread Naga Harish K, S V
> -Original Message- > From: Shijith Thotton > Sent: Monday, January 13, 2025 5:36 PM > To: Shijith Thotton ; Naga Harish K, S V > ; dev@dpdk.org > Cc: Pavan Nikhilesh Bhagavatula ; Pathak, > Pravin ; Hemant Agrawal > ; Sachin Saxena ; > Mattias R_nnblom ; Jerin Jacob > ; Liang Ma ; Mcca

Re: [PATCH v11 00/30] fix packing of structs when building with MSVC

2025-01-15 Thread Andre Muezerie
On Wed, Jan 15, 2025 at 05:13:22PM +0100, David Marchand wrote: > Hello Andre, > > On Fri, Jan 10, 2025 at 11:17 PM Andre Muezerie > wrote: > > > > MSVC struct packing is not compatible with GCC. Different alternatives > > were considered: > > > > 1) Have a macro __RTE_PACKED(decl) to which the s

Re: [PATCH v2 3/4] vhost: rework async dequeue path error handling

2025-01-15 Thread David Marchand
On Wed, Jan 15, 2025 at 5:42 PM David Marchand wrote: > > On Wed, Jan 15, 2025 at 1:59 PM Maxime Coquelin > wrote: > > > > This patch refactors the error handling in the Vhost async > > dequeue path to ease its maintenance and readability. > > > > Suggested-by: David Marchand > > Signed-off-by:

Re: [PATCH v2 4/4] vhost: improve RARP handling in dequeue paths

2025-01-15 Thread David Marchand
On Wed, Jan 15, 2025 at 1:59 PM Maxime Coquelin wrote: > > With previous refactoring, we can now simplify the RARP > packet injection handling in both the sync and async > dequeue paths. > > Signed-off-by: Maxime Coquelin > --- > lib/vhost/virtio_net.c | 42 ++

Re: [PATCH v2 3/4] vhost: rework async dequeue path error handling

2025-01-15 Thread David Marchand
On Wed, Jan 15, 2025 at 1:59 PM Maxime Coquelin wrote: > > This patch refactors the error handling in the Vhost async > dequeue path to ease its maintenance and readability. > > Suggested-by: David Marchand > Signed-off-by: Maxime Coquelin Reviewed-by: David Marchand -- David Marchand

Re: [PATCH v2 2/4] vhost: rework dequeue path error handling

2025-01-15 Thread David Marchand
On Wed, Jan 15, 2025 at 1:59 PM Maxime Coquelin wrote: > > This patch refactors the error handling in the Vhost > dequeue path to ease its maintenance and readability. > > Suggested-by: David Marchand > Signed-off-by: Maxime Coquelin Reviewed-by: David Marchand -- David Marchand

Re: [PATCH v2 1/4] vhost: fix missing packets count reset when not ready

2025-01-15 Thread David Marchand
On Wed, Jan 15, 2025 at 1:59 PM Maxime Coquelin wrote: > > This patch fixes the rte_vhost_dequeue_burst return value > when the virtqueue is not ready. Without it, a discrepancy > between the packet array and its size is faced by the caller > of this API when the virtqueue is not ready. > > Fixes:

Re: [PATCH v2] dts: fix pass rate edge case in results json

2025-01-15 Thread Luca Vizzarro
lgtm. thanks! Reviewed-by: Luca Vizzarro

[PATCH v8 2/2] dts: port over dynamic config test suite

2025-01-15 Thread Dean Marx
Suite for testing ability of Poll Mode Driver to turn promiscuous mode on/off, allmulticast mode on/off, and show expected behavior when sending packets with known, unknown, broadcast, and multicast destination MAC addresses. Signed-off-by: Dean Marx --- dts/tests/TestSuite_dynamic_config.py | 1

[PATCH v8 1/2] dts: add multicast set function to shell

2025-01-15 Thread Dean Marx
Add set multicast function for changing allmulticast mode within testpmd shell. Signed-off-by: Dean Marx --- dts/framework/remote_session/testpmd_shell.py | 24 +++ 1 file changed, 24 insertions(+) diff --git a/dts/framework/remote_session/testpmd_shell.py b/dts/framework/remot

Re: [PATCH v1] dts: fix pass rate edge case in results json

2025-01-15 Thread Luca Vizzarro
On 15/01/2025 15:41, Dean Marx wrote: Also, I noticed after submitting this first version that suites where some cases are skipped and the rest pass have a 100% pass rate in the results report. Should this also mean that suites where every case is skipped have a 100% pass rate? Right now this rep

Re: [PATCH v11 00/30] fix packing of structs when building with MSVC

2025-01-15 Thread David Marchand
Hello Andre, On Fri, Jan 10, 2025 at 11:17 PM Andre Muezerie wrote: > > MSVC struct packing is not compatible with GCC. Different alternatives > were considered: > > 1) Have a macro __RTE_PACKED(decl) to which the struct/union is passed >and the macro would define the struct/union with the ap

[PATCH v16] dts: port over queue start/stop suite

2025-01-15 Thread Dean Marx
This suite tests the ability of the Poll Mode Driver to enable and disable Rx/Tx queues on a port. The verify argument in the deferred start method has been excluded due to a bug in testpmd, which renders checking port queue info for deferred start status impossible within a single method. Signed-

[PATCH v6] dts: reform hello world test suite

2025-01-15 Thread Dean Marx
Add a test suite to replace hello_world which simply starts and stops a testpmd session. The user can use this as a confidence check to verify their configuration. Signed-off-by: Dean Marx Reviewed-by: Paul Szczepanek Reviewed-by: Luca Vizzarro --- dts/framework/test_suite.py| 10 +

[PATCH v2] dts: fix pass rate edge case in results json

2025-01-15 Thread Dean Marx
Add condition to results.json pass rate generation method which returns 0 as the pass rate when the suite is skipped, rather than causing a divide by 0 error. Fixes: 9f8a257235ac ("dts: improve test run result statistics") Signed-off-by: Dean Marx --- dts/framework/test_result.py | 11 -

Re: [PATCH v1] dts: fix pass rate edge case in results json

2025-01-15 Thread Dean Marx
Also, I noticed after submitting this first version that suites where some cases are skipped and the rest pass have a 100% pass rate in the results report. Should this also mean that suites where every case is skipped have a 100% pass rate? Right now this reports a 0% when the entire suite is skipp

Re: [PATCH v1] dts: fix pass rate edge case in results json

2025-01-15 Thread Dean Marx
Got it, I can implement this asap

Re: [PATCH v1] dts: fix pass rate edge case in results json

2025-01-15 Thread Dean Marx
Got it, I can implement this asap. I also noticed after submitting that test suites with skipped cases still report a 100% pass rate if the non skipped cases still pass, so I'll probably change the pass rate to 100% for when an entire suite is skipped unless anyone disagrees.

Re: [PATCH v5] dts: reform hello world test suite

2025-01-15 Thread Dean Marx
Makes sense, I'll send out a new version soon

Re: [PATCH v5] dts: reform hello world test suite

2025-01-15 Thread Luca Vizzarro
Alright scratch that then. The only thing I'd change Dean is the name of the method. Saying testsuite is somewhat redundant, I think just log fine.

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

2025-01-15 Thread Luca Vizzarro
This has now been reworked and superseded by series-34355.

DPDK Release Status Meeting 2025-01-14

2025-01-15 Thread Mcnamara, John
Release status meeting minutes 2025-01-14 = Agenda: * Release Dates * Subtrees * Roadmaps * LTS * Defects * Opens Participants: * ARM * Intel * Marvell * Red Hat Release Dates - The following are the proposed working dates for 25.03: - Propo

[PATCH v3 4/7] dts: rework DPDK attributes in SUT node config

2025-01-15 Thread Luca Vizzarro
From: Nicholas Pratte Rework 'lcores' and 'memory_channels' into a new 'dpdk_config' subsection in an effort to make these attributes SUT specific; the traffic generator, more often than not, does not need this information. Ideally, if such information is needed, then it will be listed in the 'tr

[PATCH v3 2/7] dts: simplify build options config

2025-01-15 Thread Luca Vizzarro
From: Nicholas Pratte The build options configuration contained redundant fields that were not in use, and there is no future scope for their use. Bugzilla ID: 1360 Signed-off-by: Nicholas Pratte Signed-off-by: Luca Vizzarro Reviewed-by: Paul Szczepanek --- dts/conf.yaml

[PATCH v3 6/7] dts: split configuration file

2025-01-15 Thread Luca Vizzarro
To avoid the creation of a big monolithic configuration file, nodes and test runs are now split into distinct files. This also allows flexibility to run different test runs on the same nodes. Since there are now 2 distinct configuration files, there are also 2 command line arguments to specify the

[PATCH v3 7/7] dts: run all test suites by default

2025-01-15 Thread Luca Vizzarro
The configuration requires the user to explicitly set the requested test suites in the files. Sometimes we want to run all the test suites and don't want to manually specify all of them. It is therefore reasonable to change the default behaviour to automatically run all the available test suites if

[PATCH v3 5/7] dts: handle CLI overrides in the configuration

2025-01-15 Thread Luca Vizzarro
The current handling of the configuration loading is inconsistent. After the whole configuration is loaded, if there are any CLI or environment overrides set, the code forcefully modifies the frozen configuration to use them. This changes the handling by passing the environment/CLI settings as par

[PATCH v3 1/7] dts: enable arch self-discovery

2025-01-15 Thread Luca Vizzarro
From: Nicholas Pratte The 'arch' attribute in the conf.yaml is unnecessary, as this can be readily discovered directly from any given node. Bugzilla ID: 1360 Signed-off-by: Nicholas Pratte Signed-off-by: Luca Vizzarro Reviewed-by: Paul Szczepanek --- dts/conf.yaml

[PATCH v3 3/7] dts: infer use first core without config

2025-01-15 Thread Luca Vizzarro
From: Nicholas Pratte To further the simplification of the user configuration, use_first_core can be inferred from the lcores. If the user explicitly includes the core 0 in the lcores range, it will only then be used. Bugzilla ID: 1360 Signed-off-by: Nicholas Pratte Signed-off-by: Luca Vizzarr

[PATCH v3 0/7] dts: refactor configuration

2025-01-15 Thread Luca Vizzarro
Hi there, sending in a v3, which also merges the split nodes and test runs configuration into this series. v3: - rebase - rework code for Pydantic - fixed architecture bug for arm - updated doc pages - implemented CLI overrides in Pydantic - changed default behaviour of test suites config field -

[RFC v5 2/2] eventdev: documentation for atomic queue test

2025-01-15 Thread Luka Jankovic
Signed-off-by: Luka Jankovic --- .../tools/img/eventdev_atomic_queue_test.svg | 1701 + doc/guides/tools/testeventdev.rst | 92 + 2 files changed, 1793 insertions(+) create mode 100644 doc/guides/tools/img/eventdev_atomic_queue_test.svg diff --git a/doc/guides/too

[RFC v5 1/2] eventdev: add atomic queue to test-eventdev app

2025-01-15 Thread Luka Jankovic
Add an atomic queue test based on the order queue test that exclusively uses atomic queues. This makes it compatible with event devices such as the distributed software eventdev. The test detects if port maintenance is required. To verify atomicity, a spinlock is set up for each combination of

[PATCH v2 4/4] vhost: improve RARP handling in dequeue paths

2025-01-15 Thread Maxime Coquelin
With previous refactoring, we can now simplify the RARP packet injection handling in both the sync and async dequeue paths. Signed-off-by: Maxime Coquelin --- lib/vhost/virtio_net.c | 42 ++ 1 file changed, 18 insertions(+), 24 deletions(-) diff --git a/l

[PATCH v2 3/4] vhost: rework async dequeue path error handling

2025-01-15 Thread Maxime Coquelin
This patch refactors the error handling in the Vhost async dequeue path to ease its maintenance and readability. Suggested-by: David Marchand Signed-off-by: Maxime Coquelin --- lib/vhost/virtio_net.c | 31 ++- 1 file changed, 14 insertions(+), 17 deletions(-) diff -

[PATCH v2 2/4] vhost: rework dequeue path error handling

2025-01-15 Thread Maxime Coquelin
This patch refactors the error handling in the Vhost dequeue path to ease its maintenance and readability. Suggested-by: David Marchand Signed-off-by: Maxime Coquelin --- lib/vhost/virtio_net.c | 27 --- 1 file changed, 12 insertions(+), 15 deletions(-) diff --git a/lib

[PATCH v2 1/4] vhost: fix missing packets count reset when not ready

2025-01-15 Thread Maxime Coquelin
This patch fixes the rte_vhost_dequeue_burst return value when the virtqueue is not ready. Without it, a discrepancy between the packet array and its size is faced by the caller of this API when the virtqueue is not ready. Fixes: 9fc93a1e2320 ("vhost: fix virtqueue access check in datapath") Cc: s

[PATCH v2 0/4] vhost: fix and improve dequeue error path

2025-01-15 Thread Maxime Coquelin
This series starts with a fix for a regression in the Vhost dequeue error path. The other patches improve the error handling to reduce the chance of such regressions in the future. Changes in v2: == - Add RARP handling refactoring Maxime Coquelin (4): vhost: fix missing packets cou

[PATCH v0 1/1] common/cnxk: fix DPI mailbox structure

2025-01-15 Thread Vamsi Krishna
From: Vamsi Attunuru In the existing DPI mailbox structure, one of the fields spans a 64-bit boundary, making it appear unusual and complicatng extraction using bit operations. Patch enlarges csize fields to ensure that mailbox fields are correctly positioned. Fixes: b6e395692b6d ("common/cnxk:

Re: [PATCH v5] dts: reform hello world test suite

2025-01-15 Thread Paul Szczepanek
I think it makes sense to keep logger private and separate. I can see one reason - we can change the logger in the framework without affecting the tests. We can also decide to not use the logger to print test suites messages - for example save per test artifacts. On 15/01/2025 10:17, Luca Vizzarro

Re: [PATCH v2] mbuf: add fast free bulk function

2025-01-15 Thread huangdengdui
On 2025/1/15 17:38, Morten Brørup wrote: >> From: huangdengdui [mailto:huangdeng...@huawei.com] >> Sent: Wednesday, 15 January 2025 07.52 >> >> On 2025/1/15 0:39, Morten Brørup wrote: >>> mbuf: add fast free bulk function >>> >>> When putting an mbuf back into its mempool, there are certain >> re

[PATCH v2 3/3] Update .mailmap

2025-01-15 Thread Ariel Otilibili
For fixing a warning from devtools/check-git-log.sh Link: https://inbox.dpdk.org/dev/20250114153419.0a2753ab@hermes.local/ Signed-off-by: Ariel Otilibili --- .mailmap | 1 + 1 file changed, 1 insertion(+) diff --git a/.mailmap b/.mailmap index 818798273fe1..735a635fc7f9 100644 --- a/.mailmap ++

[PATCH v2 2/3] drivers/net/sfc: remove unused value

2025-01-15 Thread Ariel Otilibili
Coverity issue: 38 Fixes: a62ec90522a6 ("net/sfc: add port representors infrastructure") Signed-off-by: Ariel Otilibili --- drivers/net/sfc/sfc_repr.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/net/sfc/sfc_repr.c b/drivers/net/sfc/sfc_repr.c index c2e5d4eb9e28..a0712bf9fb90

[PATCH v2 1/3] examples/flow_filtering: remove unused variable

2025-01-15 Thread Ariel Otilibili
Coverity issue: 451221 Fixes: 16158f349000 ("examples/flow_filtering: introduce use cases snippets") Signed-off-by: Ariel Otilibili --- examples/flow_filtering/snippets/snippet_match_ipv4.c | 1 - 1 file changed, 1 deletion(-) diff --git a/examples/flow_filtering/snippets/snippet_match_ipv4.c b

[PATCH v2 0/3] clear out Coverity issues 384444 & 451221

2025-01-15 Thread Ariel Otilibili
Hello, This series clears out the Coverity issues 38 & 451221. Being one-liners, the series is backported onto stable. Thank you, Link: https://inbox.dpdk.org/dev/cajfav8yeawsx2kdianwukx7zsvtenrvovjnzaoq_ocdzm8z...@mail.gmail.com/ --- v2 * fixed the SHAs given for Fixes * added a .mailmap

Re: [PATCH v1 2/2] ethdev: fix some APIs can be used in the new event

2025-01-15 Thread Thomas Monjalon
15/01/2025 04:41, Huisong Li: > The rte_eth_dev_socket_id() and rte_eth_dev_owner_*() can be used after > allocating an ethdev. So this patch relaxes the conditions for using them. You should be more explicit: "during probing, before it becomes generally available and considered as valid". Should

Re: [PATCH v1 1/2] ethdev: clarify do not something in the new event

2025-01-15 Thread Thomas Monjalon
15/01/2025 04:41, Huisong Li: > If application verify the validity of the port id or configure this port in > the new event callback, application may happen to the port id is invalid. > > Actually, when application receive a new event from one port, the port is > not fully probed and is just in al

Re: [PATCH v12 2/3] drivers/common: add diagnostics macros to make code portable

2025-01-15 Thread Bruce Richardson
On Tue, Jan 14, 2025 at 08:27:17PM -0800, Andre Muezerie wrote: > It was a common pattern to have "GCC diagnostic ignored" pragmas > sprinkled over the code and only activate these pragmas for certain > compilers (gcc and clang). Clang supports GCC's pragma for > compatibility with existing source

Re: [PATCH v11 0/3] add diagnostics macros to make code portable

2025-01-15 Thread Bruce Richardson
On Tue, Jan 14, 2025 at 11:20:05AM -0800, Andre Muezerie wrote: > On Wed, Jan 08, 2025 at 09:20:27AM +, Bruce Richardson wrote: > > On Tue, Jan 07, 2025 at 06:46:48PM -0800, Andre Muezerie wrote: > > > On Mon, Jan 06, 2025 at 11:00:15AM +, Bruce Richardson wrote: > > > > On Fri, Jan 03, 202

Re: [PATCH 2/2] drivers/net/sfc: remove unused value

2025-01-15 Thread Thomas Monjalon
15/01/2025 00:34, Stephen Hemminger: > Also, please send a patch to add your address to the .mailmap file. > Right now, check-git-log.sh script is complaining. In general we don't add mailmap entries as a separate commit. You (author or tree maintainer) can add it in the first patch.

[PATCH 3/3] vhost: rework async dequeue path error handling

2025-01-15 Thread Maxime Coquelin
This patch refactors the error handling in the Vhost async dequeue path to ease its maintenance and readability. Suggested-by: David Marchand Signed-off-by: Maxime Coquelin --- lib/vhost/virtio_net.c | 31 ++- 1 file changed, 14 insertions(+), 17 deletions(-) diff -

[PATCH 2/3] vhost: rework dequeue path error handling

2025-01-15 Thread Maxime Coquelin
This patch refactors the error handling in the Vhost dequeue path to ease its maintenance and readability. Suggested-by: David Marchand Signed-off-by: Maxime Coquelin --- lib/vhost/virtio_net.c | 27 --- 1 file changed, 12 insertions(+), 15 deletions(-) diff --git a/lib

[PATCH 1/3] vhost: fix missing packets count reset when not ready

2025-01-15 Thread Maxime Coquelin
This patch fixes the rte_vhost_dequeue_burst return value when the virtqueue is not ready. Without it, a discrepancy between the packet array and its size is faced by the caller of this API when the virtqueue is not ready. Fixes: 9fc93a1e2320 ("vhost: fix virtqueue access check in datapath") Cc: s

[PATCH 0/3] vhost: fix and improve dequeue error path

2025-01-15 Thread Maxime Coquelin
This series starts with a fix for a regression in the Vhost dequeue error path. The other patches improve the error handling to reduce the chance of such regressions in the future. Maxime Coquelin (3): vhost: fix missing packets count reset when not ready vhost: rework dequeue path error hand

Re: [PATCH v5] dts: reform hello world test suite

2025-01-15 Thread Luca Vizzarro
Sorry for the late reply Dean. This is a bit redundant in my opinion, there is no reason not to give full access to the test suite's own logger. I'd just change TestSuite._logger into TestSuite.logger to indicate that it's a public member, and do what you initially did.

Re: [PATCH] dts: fix hugepage configuration bug

2025-01-15 Thread Luca Vizzarro
Looks good. Reviewed-by: Luca Vizzarro

Re: [PATCH v1] dts: fix pass rate edge case in results json

2025-01-15 Thread Luca Vizzarro
Hi Dean, good timing! I actually noticed this issue last week and was going to tackle it soon. On 13/01/2025 21:52, Dean Marx wrote: @@ -324,13 +324,15 @@ def generate_pass_rate_dict(self, test_run_summary) -> dict[str, float]: Returns: A dictionary with the PASS/FAI

RE: [PATCH v2] mbuf: add fast free bulk function

2025-01-15 Thread Morten Brørup
> From: huangdengdui [mailto:huangdeng...@huawei.com] > Sent: Wednesday, 15 January 2025 07.52 > > On 2025/1/15 0:39, Morten Brørup wrote: > > mbuf: add fast free bulk function > > > > When putting an mbuf back into its mempool, there are certain > requirements > > to the mbuf. Specifically, some

RE: [PATCH v12 1/3] lib/eal: add diagnostics macros to make code portable

2025-01-15 Thread Morten Brørup
> +/* > + * Macro to ignore whenever a pointer is cast so as to remove a type > + * qualifier from the target type. > + */ This description could be better, something like the push/pop description: "Macro to disable compiler warnings about ..." > +#if !defined __INTEL_COMPILER && !defined RTE_TOO

[PATCH v1] common/iavf: introduce hardware clock ID in PTP caps

2025-01-15 Thread Soumyadeep Hore
From: Jun Zhang When there are at least two VFs on a single adapter and both are used in the same VM, each of them will register its own PTP clock. However, every E810/E822 adapter has only one PHC clock that we use. In order to register only one PTP clock, VFs need to identify HW and make sure t