[PATCH] Skip vfio in the scenario of non-privileged mode

2025-01-16 Thread Yang Ming
DPDK detect vfio container according the existence of vfio module. But for container with non-privileged mode, there is possibility that no VFIO_DIR(/dev/vfio) mapping from host to container when host have both Intel NIC and Mellanox NIC but this conntainer only allocate VFs from Mellanox NIC. In t

RE: [PATCH] net/af_packet: provide packet drop stats

2025-01-16 Thread Stefan Lässer
> -Original Message- > From: Stephen Hemminger > Sent: Thursday, January 16, 2025 5:25 PM > To: Stefan Lässer > Cc: John W. Linville ; dev@dpdk.org > Subject: Re: [PATCH] net/af_packet: provide packet drop stats > > On Thu, 16 Jan 2025 17:17:03 +0100 > Stefan Laesser wrote: > > > The L

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

2025-01-16 Thread Andre Muezerie
On Thu, Jan 16, 2025 at 10:08:07AM +0100, Morten Brørup wrote: > > From: Andre Muezerie [mailto:andre...@linux.microsoft.com] > > Sent: Thursday, 16 January 2025 02.55 > > > > It was a common pattern to have "GCC diagnostic ignored" pragmas > > sprinkled over the code and only activate these pragm

Re: [PATCH v5 01/15] net/xsc: add xsc PMD framework

2025-01-16 Thread WanRenyong
On 2025/1/17 2:18, Stephen Hemminger wrote: > On Tue, 07 Jan 2025 10:49:40 +0800 > "WanRenyong" wrote: > >> diff --git a/drivers/net/xsc/xsc_ethdev.c b/drivers/net/xsc/xsc_ethdev.c >> new file mode 100644 >> index 00..a7dca46127 >> --- /dev/null >> +++ b/drivers/net/xsc/xsc_ethdev.c >> @@

Re: [PATCH v5 07/15] net/xsc: add ethdev configure and RSS ops

2025-01-16 Thread WanRenyong
On 2025/1/17 2:19, Stephen Hemminger wrote: > On Tue, 07 Jan 2025 10:49:55 +0800 > "WanRenyong" wrote: > >> +static int >> +xsc_ethdev_rss_hash_conf_get(struct rte_eth_dev *dev, >> + struct rte_eth_rss_conf *rss_conf) >> +{ >> +struct xsc_ethdev_priv *priv = TO_XSC_ETHD

Re: [PATCH v5 13/15] net/xsc: add basic stats ops

2025-01-16 Thread WanRenyong
On 2025/1/17 1:58, Stephen Hemminger wrote: >   On Tue, 07 Jan 2025 10:50:09 +0800 > "WanRenyong"  wrote: > > >     Implement xsc ethdev basic statatics ops. > > > Signed-off-by: WanRenyong > --- >  doc/guides/nics/features/xsc.ini |  1 + >  drivers/net/xsc/xsc_ethdev.c     | 75 ++

Re: [PATCH v5 13/15] net/xsc: add basic stats ops

2025-01-16 Thread WanRenyong
On 2025/1/17 1:58, Stephen Hemminger wrote: > On Tue, 07 Jan 2025 10:50:09 +0800 > "WanRenyong" wrote: > >> Implement xsc ethdev basic statatics ops. >> >> Signed-off-by: WanRenyong >> --- >> doc/guides/nics/features/xsc.ini | 1 + >> drivers/net/xsc/xsc_ethdev.c | 75

Re: [PATCH v7 01/15] net/zxdh: zxdh np init implementation

2025-01-16 Thread Junlong Wang
I will fix it and send a new version. Thanks. >> (np)network Processor initialize resources in host, >> and initialize a channel for some tables insert/get/del. >> >> Signed-off-by: Junlong Wang >> --- > This does not apply cleanly to the current main branch because of the > latest changes to

[PATCH v2 2/2] net/af_xdp: Refactor af_xdp_tx_zc()

2025-01-16 Thread Ariel Otilibili
Both legs of the loop share the same logic: either to go out of the function, or to fall through to the next instructions. Depends-on: patch-1 ("net/af_xdp: fix use after free in af_xdp_tx_zc()") Bugzilla ID: 1440 Signed-off-by: Ariel Otilibili --- drivers/net/af_xdp/rte_eth_af_xdp.c | 47 ++

[PATCH v2 1/2] net/af_xdp: fix use after free in af_xdp_tx_zc()

2025-01-16 Thread Ariel Otilibili
tx_bytes is computed after both legs are tested. This might produce a use after memory free. The computation is now moved into each leg. Bugzilla ID: 1440 Fixes: d8a210774e1d ("net/af_xdp: support unaligned umem chunks") Signed-off-by: Ariel Otilibili --- drivers/net/af_xdp/rte_eth_af_xdp.c | 4

[PATCH v2 0/2] Fix use after free, and refactor af_xdp_tx_zc()

2025-01-16 Thread Ariel Otilibili
Hello, The series addresses Bugzilla ID 1440 in two steps; 1. Fix use after free. 2. Refactor af_xdp_tx_zc(). Thank you, --- v2 * reworded commit messages * addressed feedback from Stephen Hemminger v1 (http://inbox.dpdk.org/dev/20250116195640.68885-1-ariel.otilib...@6wind.com/) Ariel Otilibili

Re: [PATCH 2/2] net/af_xdp: Refactor af_xdp_tx_zc()

2025-01-16 Thread Ariel Otilibili
On Thu, Jan 16, 2025 at 11:26 PM Stephen Hemminger < step...@networkplumber.org> wrote: > On Thu, 16 Jan 2025 23:20:06 +0100 > Ariel Otilibili wrote: > > > Hi Stephen, > > > > On Thu, Jan 16, 2025 at 10:47 PM Stephen Hemminger < > > step...@networkplumber.org> wrote: > > > > > On Thu, 16 Jan 2025

Re: [PATCH 2/2] net/af_xdp: Refactor af_xdp_tx_zc()

2025-01-16 Thread Stephen Hemminger
On Thu, 16 Jan 2025 23:20:06 +0100 Ariel Otilibili wrote: > Hi Stephen, > > On Thu, Jan 16, 2025 at 10:47 PM Stephen Hemminger < > step...@networkplumber.org> wrote: > > > On Thu, 16 Jan 2025 20:56:39 +0100 > > Ariel Otilibili wrote: > > > > > Both branches of the loop share the same logic

Re: [PATCH 2/2] net/af_xdp: Refactor af_xdp_tx_zc()

2025-01-16 Thread Ariel Otilibili
Hi Stephen, On Thu, Jan 16, 2025 at 10:47 PM Stephen Hemminger < step...@networkplumber.org> wrote: > On Thu, 16 Jan 2025 20:56:39 +0100 > Ariel Otilibili wrote: > > > Both branches of the loop share the same logic. Now each one is a > > goto dispatcher; either to out (end of function), or to >

Re: [PATCH 2/2] net/af_xdp: Refactor af_xdp_tx_zc()

2025-01-16 Thread Stephen Hemminger
On Thu, 16 Jan 2025 20:56:39 +0100 Ariel Otilibili wrote: > Both branches of the loop share the same logic. Now each one is a > goto dispatcher; either to out (end of function), or to > stats (continuation of the loop). > > Bugzilla ID: 1440 > Depends-on: patch-1 ("net/af_xdp: fix use after free

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

2025-01-16 Thread Dean Marx
On Wed, Jan 15, 2025 at 9:19 AM Luca Vizzarro wrote: > > 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

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

2025-01-16 Thread Dean Marx
On Wed, Jan 15, 2025 at 9:19 AM Luca Vizzarro wrote: > > 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

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

2025-01-16 Thread Dean Marx
On Wed, Jan 15, 2025 at 9:19 AM Luca Vizzarro wrote: > > 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 configurat

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

2025-01-16 Thread Dean Marx
On Wed, Jan 15, 2025 at 9:19 AM Luca Vizzarro wrote: > > 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. > Ideall

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

2025-01-16 Thread Dean Marx
On Wed, Jan 15, 2025 at 9:19 AM Luca Vizzarro wrote: > > 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 I

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

2025-01-16 Thread Dean Marx
On Wed, Jan 15, 2025 at 9:19 AM Luca Vizzarro wrote: > > 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 Vizzarr

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

2025-01-16 Thread Dean Marx
On Wed, Jan 15, 2025 at 9:19 AM Luca Vizzarro wrote: > > 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 > Re

RE: [PATCH v4 00/24] Reduce code duplication across Intel NIC drivers

2025-01-16 Thread Morten Brørup
> From: Bruce Richardson [mailto:bruce.richard...@intel.com] > Sent: Thursday, 16 January 2025 18.46 > > On Thu, Jan 16, 2025 at 11:10:47PM +0530, Jerin Jacob wrote: > > On Thu, Jan 16, 2025 at 10:50 PM Bruce Richardson > > wrote: > > > > > > On Fri, Dec 20, 2024 at 02:38:57PM +, Bruce Richar

[PATCH 2/2] net/af_xdp: Refactor af_xdp_tx_zc()

2025-01-16 Thread Ariel Otilibili
Both branches of the loop share the same logic. Now each one is a goto dispatcher; either to out (end of function), or to stats (continuation of the loop). Bugzilla ID: 1440 Depends-on: patch-1 ("net/af_xdp: fix use after free in af_xdp_tx_zc()") Signed-off-by: Ariel Otilibili --- drivers/net/af

[PATCH 1/2] net/af_xdp: fix use after free in af_xdp_tx_zc()

2025-01-16 Thread Ariel Otilibili
tx_bytes is computed after both branches are tested. This might produce a use after memory free. The computation is now moved into both branches. Bugzilla ID: 1440 Fixes: d8a210774e1d ("net/af_xdp: support unaligned umem chunks") Signed-off-by: Ariel Otilibili --- drivers/net/af_xdp/rte_eth_af_

[PATCH 0/2] Fix use after free, and refactor af_xdp_tx_zc()

2025-01-16 Thread Ariel Otilibili
Hello, The series addresses Bugzilla ID 1440 in two steps; 1. Fix use after free. 2. Refactor af_xdp_tx_zc(). Thank you, Ariel Otilibili (2): net/af_xdp: fix use after free in af_xdp_tx_zc() net/af_xdp: Refactor af_xdp_tx_zc() drivers/net/af_xdp/rte_eth_af_xdp.c | 53 ++---

[PATCH v1] dts: fix multicast set function in testpmd shell

2025-01-16 Thread Dean Marx
Fixes verification method in multicast set function by changing the stats capture to use show_port_info_all(). This way, the method will continue to work even after DTS lifts the restriction on port topologies. Fixes: abf8a3bc793b ("dts: add multicast set function to shell") Signed-off-by: Dean M

[PATCH v1] dts: fix checksum suite docstring/variable format

2025-01-16 Thread Dean Marx
Fixes checksum offload test suite docstring format by adding steps and verify sections. Changes variables formatted in camel case to snake case to fit python standards. Fixes: 8c9a7471a0e6 ("dts: add checksum offload test suite") Signed-off-by: Dean Marx --- dts/tests/TestSuite_checksum_offload

Re: [PATCH v2 1/2] ethdev: clarify something about the new event

2025-01-16 Thread Stephen Hemminger
On Thu, 16 Jan 2025 19:40:33 +0800 Huisong Li wrote: > 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. > > In case of similar confusion, this patch have to clarify something about > RTE_ETH_EV

[PATCH v1] dts: fix attribute error in checksum offload suite

2025-01-16 Thread Dean Marx
Fix a variable naming error within the verify method that was causing an attribute error during runtime. Fixes: 05d7ad873798 ("dts: resolve mypy type errors") Signed-off-by: Dean Marx --- dts/tests/TestSuite_checksum_offload.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --g

Re: [PATCH v5 13/15] net/xsc: add basic stats ops

2025-01-16 Thread Stephen Hemminger
On Tue, 07 Jan 2025 10:50:09 +0800 "WanRenyong" wrote: > Implement xsc ethdev basic statatics ops. > > Signed-off-by: WanRenyong > --- > doc/guides/nics/features/xsc.ini | 1 + > drivers/net/xsc/xsc_ethdev.c | 75 > 2 files changed, 76 insertions(+) > > d

Re: [PATCH] .mailmap: resort entries

2025-01-16 Thread Stephen Hemminger
On Thu, 16 Jan 2025 18:49:27 +0100 Thomas Monjalon wrote: > Sorting depends on your locale, > and how you want to consider space and accents. > > Also we need a command to reproduce how sort is supposed to be done. > > 16/01/2025 18:10, Stephen Hemminger: > > Tomer Shmilovich > > +Tomáš Ďurov

Re: [PATCH] .mailmap: resort entries

2025-01-16 Thread Bruce Richardson
On Thu, Jan 16, 2025 at 06:49:27PM +0100, Thomas Monjalon wrote: > Sorting depends on your locale, > and how you want to consider space and accents. > Yes, looking at the changes, the corrections for dealing with spaces all look correct to me. However, moving the accents to the end seems wrong. /

Re: [PATCH] .mailmap: resort entries

2025-01-16 Thread Thomas Monjalon
Sorting depends on your locale, and how you want to consider space and accents. Also we need a command to reproduce how sort is supposed to be done. 16/01/2025 18:10, Stephen Hemminger: > Tomer Shmilovich > +Tomáš Ďurovec > Tone Zhang I don't think we should move accent at the end of the al

Re: [PATCH v4 00/24] Reduce code duplication across Intel NIC drivers

2025-01-16 Thread Bruce Richardson
On Thu, Jan 16, 2025 at 11:10:47PM +0530, Jerin Jacob wrote: > On Thu, Jan 16, 2025 at 10:50 PM Bruce Richardson > wrote: > > > > On Fri, Dec 20, 2024 at 02:38:57PM +, Bruce Richardson wrote: > > > This RFC attempts to reduce the amount of code duplication across a > > > number of Intel NIC dr

Re: [PATCH v4 00/24] Reduce code duplication across Intel NIC drivers

2025-01-16 Thread Jerin Jacob
On Thu, Jan 16, 2025 at 10:50 PM Bruce Richardson wrote: > > On Fri, Dec 20, 2024 at 02:38:57PM +, Bruce Richardson wrote: > > This RFC attempts to reduce the amount of code duplication across a > > number of Intel NIC drivers, specifically: ixgbe, i40e, iavf, and ice. > > > > The first patch

Re: [RFC PATCH] net: move intel drivers to intel subdirectory

2025-01-16 Thread Bruce Richardson
On Thu, Jan 16, 2025 at 05:22:21PM +, Bruce Richardson wrote: > Consolidate all Intel HW NIC drivers into a driver/net/intel This > matches the layout used for drivers in the kernel, and potentially > enabling easier sharing among drivers. > > Signed-off-by: Bruce Richardson > --- Apologies,

[RFC PATCH] net: move intel drivers to intel subdirectory

2025-01-16 Thread Bruce Richardson
Consolidate all Intel HW NIC drivers into a driver/net/intel This matches the layout used for drivers in the kernel, and potentially enabling easier sharing among drivers. Signed-off-by: Bruce Richardson --- drivers/meson.build | 6 +- drivers/net/{ => intel}/cpfl

Re: [PATCH v4 00/24] Reduce code duplication across Intel NIC drivers

2025-01-16 Thread Bruce Richardson
On Fri, Dec 20, 2024 at 02:38:57PM +, Bruce Richardson wrote: > This RFC attempts to reduce the amount of code duplication across a > number of Intel NIC drivers, specifically: ixgbe, i40e, iavf, and ice. > > The first patch extract a function from the Rx side, otherwise the > majority of the

[PATCH] .mailmap: resort entries

2025-01-16 Thread Stephen Hemminger
The mailmap file is supposed to be in alphabetic order but it has gotten out of order in several spots over time. Signed-off-by: Stephen Hemminger --- .mailmap | 366 +++ 1 file changed, 183 insertions(+), 183 deletions(-) diff --git a/.mailma

Re: [PATCH v7 01/15] net/zxdh: zxdh np init implementation

2025-01-16 Thread Stephen Hemminger
On Thu, 16 Jan 2025 10:10:46 +0800 Junlong Wang wrote: > (np)network Processor initialize resources in host, > and initialize a channel for some tables insert/get/del. > > Signed-off-by: Junlong Wang > --- This does not apply cleanly to the current main branch because of the latest changes to

Re: [PATCH v5 00/32] Introduce sssnic PMD for 3SNIC's 9x0 serials Ethernet adapters

2025-01-16 Thread Thomas Monjalon
Hello, Is there any plan to resume this work? 31/07/2024 19:32, Thomas Monjalon: > 29/03/2024 12:32, Ferruh Yigit: > > On 9/26/2023 2:13 PM, Ferruh Yigit wrote: > > > On 9/4/2023 5:56 AM, wa...@3snic.com wrote: > > >> From: Renyong Wan > > >> > > >> The sssnic PMD (**librte_pmd_sssnic**) provid

Re: [PATCH v6 0/8] [v6]drivers/net Add Support mucse N10 Pmd Driver

2025-01-16 Thread Thomas Monjalon
Hello, Is there any plan to resume this work? 01/09/2023 04:30, Wenbo Cao: > For This patchset just to support the basic chip init work > and user can just found the eth_dev, but can't control more. > For Now just support 2*10g nic,the chip can support > 2*10g,4*10g,4*1g,8*1g,8*10g. > The Featur

2025 DPDK Summit in Prague

2025-01-16 Thread Thomas Monjalon
Hello, The first DPDK Summit of the year is confirmed: 8 & 9 May 2025 in Prague You can prepare your talk proposals now, the website with full instructions will be ready next week. It is planned to close the CFP period after the end of February, so the program will be announced in mid-Mar

Re: [PATCH] net/af_packet: provide packet drop stats

2025-01-16 Thread Stephen Hemminger
On Thu, 16 Jan 2025 17:17:03 +0100 Stefan Laesser wrote: > The Linux kernel provides the ability to query the packet drop counter > of a socket. This information can be provided when the user requests > stats. > > It is important to note that each call to getsockopt with > PACKET_STATISTICS rese

[PATCH] net/af_packet: provide packet drop stats

2025-01-16 Thread Stefan Laesser
The Linux kernel provides the ability to query the packet drop counter of a socket. This information can be provided when the user requests stats. It is important to note that each call to getsockopt with PACKET_STATISTICS resets the internal counters. So the caller needs to keep track of the tota

RE: [PATCH v11 0/7] Stage-Ordered API and other extensions for ring library

2025-01-16 Thread Konstantin Ananyev
> 06/12/2024 19:35, Konstantin Ananyev: > > Testing coverage (passed): > > x86_64, i686, PPC, ARM > > > > Would like to express my gratitude to all community members who helped > > with testing it on different platforms, in particular: > > David Christensen > > Cody Cheng > > Patrick Robb > > P

Re: [PATCH v2 2/2] ethdev: fix some functions are available in the new event

2025-01-16 Thread Thomas Monjalon
16/01/2025 12:40, Huisong Li: > During probing, before the port becomes generally available, the > rte_eth_dev_socket_id() and rte_eth_dev_owner_*() are available to > application. > > Fixes: 7dcd73e37965 ("drivers/bus: set device NUMA node to unknown by > default") > Fixes: 53ef1b34776b ("ethdev

Re: [PATCH v2 1/2] ethdev: clarify something about the new event

2025-01-16 Thread Thomas Monjalon
16/01/2025 12:40, 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. > > In case of similar confusion, this patch have to clarify something about > RTE_ETH_EVENT_NEW in code. > > Sig

Re: [PATCH 2/2] dts: clear out Python syntax warnings

2025-01-16 Thread Luca Vizzarro
Reviewed-by: Luca Vizzarro

Re: [PATCH v11 0/7] Stage-Ordered API and other extensions for ring library

2025-01-16 Thread Thomas Monjalon
06/12/2024 19:35, Konstantin Ananyev: > Testing coverage (passed): > x86_64, i686, PPC, ARM > > Would like to express my gratitude to all community members who helped > with testing it on different platforms, in particular: > David Christensen > Cody Cheng > Patrick Robb > Phanendra Vukkisal

[PATCH v1 2/2] dts: add verify to match all packets

2025-01-16 Thread Thomas Wilks
Added verify to match_all_packets function that if False and there are missing packets causes the function to return False, if all packets are present it returns True. Signed-off-by: Thomas Wilks --- Reviewed-by: Luca Vizzarro Reviewed-by: Paul Szczepanek --- dts/framework/test_suite.py | 23 +

[PATCH v1 1/2] dts: add promiscuous mode verification test

2025-01-16 Thread Thomas Wilks
Added verification that enables promiscuous mode, sends a packet with a different destination mac address and then disables promiscuous mode, sends the same packet and checks if the packet was filtered out. Signed-off-by: Thomas Wilks --- Reviewed-by: Luca Vizzarro Reviewed-by: Paul Szczepanek

[PATCH v1 0/2] dts: add promiscuous mode verification test

2025-01-16 Thread Thomas Wilks
v1: - Added testsuite that verifies promiscuous mode. - Added verify to match_all_packets function. Depends-on: patch-149773 ("dts: allow expected packets to come from the TG") Thomas Wilks (2): dts: add promiscuous mode verification test dts: add verify to match all packets dts/framework/t

Re: [PATCH v3 3/3] vhost: improve RARP handling in dequeue paths

2025-01-16 Thread David Marchand
On Thu, Jan 16, 2025 at 10:54 AM 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 Recheck-request: github-robot -- David Marchand

Re: [PATCH] base/thunderx: fix build with Gcc 15

2025-01-16 Thread David Marchand
On Fri, Jan 10, 2025 at 6:27 PM Stephen Hemminger wrote: > > Gcc 15 now produces warning with the base code of Thunderx driver. > The issue is that Gcc now defaults to C23 mode, and the standards > gods have decided that partial initialization of a union has changed. > > The fix is to use an empty

Re: [PATCH v3 3/3] vhost: improve RARP handling in dequeue paths

2025-01-16 Thread Chenbo Xia
> On Jan 16, 2025, at 17:54, Maxime Coquelin wrote: > > External email: Use caution opening links or attachments > > > 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 > --- >

Re: [PATCH v3 2/3] vhost: rework dequeue paths error handling

2025-01-16 Thread Chenbo Xia
> On Jan 16, 2025, at 17:54, Maxime Coquelin wrote: > > External email: Use caution opening links or attachments > > > This patch refactors the error handling in the Vhost > dequeue paths to ease its maintenance and readability. > > Suggested-by: David Marchand > Signed-off-by: Maxime Coqu

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

2025-01-16 Thread Chenbo Xia
> On Jan 16, 2025, at 17:54, Maxime Coquelin wrote: > > External email: Use caution opening links or attachments > > > 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 th

[PATCH v2 2/2] ethdev: fix some functions are available in the new event

2025-01-16 Thread Huisong Li
During probing, before the port becomes generally available, the rte_eth_dev_socket_id() and rte_eth_dev_owner_*() are available to application. Fixes: 7dcd73e37965 ("drivers/bus: set device NUMA node to unknown by default") Fixes: 53ef1b34776b ("ethdev: add sanity checks in control APIs") Cc: sta

[PATCH v2 1/2] ethdev: clarify something about the new event

2025-01-16 Thread 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. In case of similar confusion, this patch have to clarify something about RTE_ETH_EVENT_NEW in code. Signed-off-by: Huisong Li --- lib/ethdev/rte_

[PATCH v2 0/2] ethdev: clarify something about new event

2025-01-16 Thread Huisong Li
I've had some issues when I add the verification of the port id in the event callback, which are discussed in another patch series[1]. So this series clarify something about RTE_ETH_EVENT_NEW based on the previous discussion. [1] https://patches.dpdk.org/project/dpdk/cover/20250113025521.32703-1-

Re: [PATCH v3 3/3] vhost: improve RARP handling in dequeue paths

2025-01-16 Thread David Marchand
On Thu, Jan 16, 2025 at 10:54 AM 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 Reviewed-by: David Marchand -- David Marchand

Re: [PATCH v3 2/3] vhost: rework dequeue paths error handling

2025-01-16 Thread David Marchand
On Thu, Jan 16, 2025 at 10:54 AM Maxime Coquelin wrote: > > This patch refactors the error handling in the Vhost > dequeue paths to ease its maintenance and readability. > > Suggested-by: David Marchand > Signed-off-by: Maxime Coquelin Reviewed-by: David Marchand -- David Marchand

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

2025-01-16 Thread David Marchand
On Thu, Jan 16, 2025 at 10:54 AM 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 4/4] vhost: improve RARP handling in dequeue paths

2025-01-16 Thread Maxime Coquelin
On 1/15/25 5:46 PM, David Marchand wrote: 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 +++

[PATCH v3 3/3] vhost: improve RARP handling in dequeue paths

2025-01-16 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 | 72 ++ 1 file changed, 30 insertions(+), 42 deletions(-) diff --git a/l

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

2025-01-16 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 v3 2/3] vhost: rework dequeue paths error handling

2025-01-16 Thread Maxime Coquelin
This patch refactors the error handling in the Vhost dequeue paths to ease its maintenance and readability. Suggested-by: David Marchand Signed-off-by: Maxime Coquelin --- lib/vhost/virtio_net.c | 58 +++--- 1 file changed, 26 insertions(+), 32 deletions(-)

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

2025-01-16 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 v3: == - Squashed patches 2 & 3 (David) - Simplify RARP handling further (David Changes in v

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

2025-01-16 Thread Maxime Coquelin
On 1/15/25 5:49 PM, David Marchand wrote: 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 Mar

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

2025-01-16 Thread lihuisong (C)
在 2025/1/16 17:09, Thomas Monjalon 写道: 16/01/2025 07:14, 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

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

2025-01-16 Thread lihuisong (C)
在 2025/1/16 17:15, Thomas Monjalon 写道: 16/01/2025 07:16, 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.

Tech Board Meeting Minutes - 2024-Dec-11

2025-01-16 Thread Kevin Traynor
Members Attending - Aaron Conole Bruce Richardson Hemant Agrawal Honnappa Nagarahalli Jerin Jacob Kevin Traynor (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

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

2025-01-16 Thread Thomas Monjalon
16/01/2025 07:16, 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 app

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

2025-01-16 Thread Thomas Monjalon
16/01/2025 07:14, 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: >

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

2025-01-16 Thread Morten Brørup
> From: Andre Muezerie [mailto:andre...@linux.microsoft.com] > Sent: Thursday, 16 January 2025 02.55 > > 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 f

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

2025-01-16 Thread Bruce Richardson
On Wed, Jan 15, 2025 at 05:55:08PM -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 v13 3/3] drivers/net: add diagnostics macros to make code portable

2025-01-16 Thread Bruce Richardson
On Wed, Jan 15, 2025 at 05:55:11PM -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

[PATCH] test/crypto: fix the bug of AES-ECB test

2025-01-16 Thread Shaokai Zhang
The test vector aes_test_data_19 plaintext is 192 bytes and this vector is used to test 192-byte plaintext, but test vector plaintext.len value is incorrectly assigned to 64. The test vector aes_test_data_20 plaintext length is 256 bytes, but testcase comment incorrectly describes it as "192-byte