RE: [EXTERNAL] [PATCH] event/dlb2: fix event weight handling in SSE code path

2025-02-04 Thread Jerin Jacob
> -Original Message- > From: Bruce Richardson > Sent: Tuesday, January 21, 2025 10:42 PM > To: dev@dpdk.org > Cc: Pravin Pathak ; Bruce Richardson > ; sta...@dpdk.org > Subject: [EXTERNAL] [PATCH] event/dlb2: fix event weight handling in SSE code > path > > Commit 6e2e98d6775b ("event/

RE: [PATCH] common/cnxk: check MACsec HW capability

2025-02-04 Thread Jerin Jacob
> -Original Message- > From: Akhil Goyal > Sent: Friday, January 24, 2025 11:52 PM > To: dev@dpdk.org > Cc: Jerin Jacob ; Akhil Goyal > Subject: [PATCH] common/cnxk: check MACsec HW capability > > Added ROC API to check if hardware has capability to perform MACsec > operations. > Skip

RE: [EXTERNAL] [dpdk-dev] [PATCH v4 1/2] common/cnxk: support NPC flow on cn20k

2025-02-04 Thread Jerin Jacob
> -Original Message- > From: psathe...@marvell.com > Sent: Thursday, January 23, 2025 11:23 AM > To: Nithin Kumar Dabilpuram ; Kiran Kumar > Kokkilagadda ; Sunil Kumar Kori > ; Satha Koteswara Rao Kottidi > ; Harman Kalra > Cc: dev@dpdk.org; Satheesh Paul Antonysamy > Subject: [EXTERN

[PATCH v2 00/54] Merge Intel IGC and E1000 drivers, and update E1000 base code

2025-02-04 Thread Anatoly Burakov
Intel IGC and E1000 drivers are distinct, but they are actually generated from the same base code. This patchset will merge together all e1000-derived drivers into one common base, with three different ethdev driver frontends (EM, IGB, and IGC). After the merge is done, base code is also updated t

[PATCH v2 01/54] net/e1000/base: copy i225 code into e1000

2025-02-04 Thread Anatoly Burakov
Do a direct copy of i225 code into e1000 directory, replacing all symbol and definition names with e1000_/E1000_ prefix instead of igc_/IGC_ prefix. This is done in preparation for merging the two drivers together. Signed-off-by: Anatoly Burakov --- drivers/net/intel/e1000/base/e1000_api.c

[PATCH v2 02/54] net/e1000: merge igc with e1000

2025-02-04 Thread Anatoly Burakov
IGC and E1000 drivers are derived from the same base code. Now that e1000 code has enabled support for i225 devices, move IGC ethdev code to e1000 directory (renaming references to base code from igc_* to e1000_*). Signed-off-by: Anatoly Burakov --- drivers/net/intel/{igc => e1000}/igc_ethdev.c

[PATCH v2 04/54] net/e1000/base: remove unused parameter workaround

2025-02-04 Thread Anatoly Burakov
Currently, e1000 base code is compiled with removing warning for unused parameters. The e1000 codebase does define a few macros to suppress unused parameters explicitly and dilligently uses them where they are needed, but the definitions for these macros are empty in e1000 osdep file, which is prob

[PATCH v2 05/54] net/e1000: add missing i225 devices

2025-02-04 Thread Anatoly Burakov
Add missing i225 devices to the list of supported devices by IGC driver, as well as resort the device list to match sorting order of definitions in the base code. Signed-off-by: Anatoly Burakov --- drivers/net/intel/e1000/base/e1000_api.c | 5 +++-- drivers/net/intel/e1000/base/e1000_hw.h | 18

[PATCH v2 06/54] net/e1000: add missing hardware support

2025-02-04 Thread Anatoly Burakov
Some hardware device ID's from i210 and i219 series were added over the years, but they were never added to the table of support PCI ID's for EM and IGB drivers respectively. This commit adds the missing device ID's to the table. Signed-off-by: Anatoly Burakov --- Notes: This commit is not c

Re: [PATCH] stack: occasional crash due to uninitialized variable

2025-02-04 Thread David Marchand
On Tue, Feb 4, 2025 at 2:24 AM Andre Muezerie wrote: > > Variable "success" was not being initialized and there was a code > path where the last do/while loop in __rte_stack_lf_pop_elems > looked at the value of this variable before it was set to any. > > Compiling with msvc resulted in stack_lf_a

Re: [PATCH v1 00/42] Merge Intel IGC and E1000 drivers, and update E1000 base code

2025-02-04 Thread Burakov, Anatoly
On 03/02/2025 9:18, David Marchand wrote: Hello Anatoly, On Fri, Jan 31, 2025 at 1:59 PM Anatoly Burakov wrote: Intel IGC and E1000 drivers are distinct, but they are actually generated from the same base code. This patchset will merge together all e1000-derived drivers into one common base,

RE: [PATCH] doc: update ODM dmadev guide

2025-02-04 Thread Jerin Jacob
> -Original Message- > From: Anoob Joseph > Sent: Tuesday, January 28, 2025 1:46 PM > To: Chengwen Feng ; Kevin Laatz > ; Bruce Richardson ; > Thomas Monjalon ; David Marchand > > Cc: Jerin Jacob ; Vidya Sagar Velumuri > ; dev@dpdk.org > Subject: [PATCH] doc: update ODM dmadev guide >

Re: [PATCH v3 2/7] drivers/bus: eliminate dependency on non-portable __SIZEOF_LONG__

2025-02-04 Thread Thomas Monjalon
06/12/2024 19:14, Andre Muezerie: > On Fri, Dec 06, 2024 at 04:41:16PM +, Konstantin Ananyev wrote: > > > > > > > Macro __SIZEOF_LONG__ is not standardized and MSVC does not define it. > > > > > Therefore the errors below are seen with MSVC: > > > > > > > > > > ../lib/mldev/mldev_utils_scalar.

Re: [PATCH] devtools: forbid use of compiler pragmas

2025-02-04 Thread Thomas Monjalon
30/01/2025 09:37, David Marchand: > Using pragma must be prevented to avoid breaking builds with other > compilers. > Let EAL use them (like for abstraction macros). > > Signed-off-by: David Marchand > --- > + # forbid use of #pragma > + awk -v FOLDERS='lib drivers app examples' \ > +

Re: [PATCH] net: support Arista L2 headers

2025-02-04 Thread Thomas Monjalon
04/02/2025 16:41, Denis Davidoglu: > Packet parsing and type detection fail for packets containing > Arista Vendor Specific Protocol (AVSP) headers. This patch adds > support for three L2 headers: Arista TGen, Arista 64-bit Timestamp > and Arista 48-bit Timestamp. I'm not familiar with these head

[RFC] ci: Add support for Cirrus-CI service to test FreeBSD.

2025-02-04 Thread Aaron Conole
This commit adds preliminary support for developer driven FreeBSD testing via the Cirrus-CI cloud continuous integration system. NOTE: Currently, this does not successfully execute. See the following build result: https://cirrus-ci.com/task/5626189961756672 Full Logs: https://api.cirrus-ci.c

Re: [PATCH 2/3] dts: stop using partial in enums

2025-02-04 Thread Patrick Robb
Tested from a Fedora41/python3.13 container. Tested-by: Patrick Robb Reviewed-by: Patrick Robb Applying to next-dts, thanks for the patch Luca.

Re: [PATCH 1/3] dts: remove use of field validators

2025-02-04 Thread Patrick Robb
Tested from a Fedora41/python3.13 container. Tested-by: Patrick Robb Reviewed-by: Patrick Robb Applying to next-dts, thanks for the patch Luca.

Re: [PATCH 3/3] dts: bump up fabric version

2025-02-04 Thread Patrick Robb
Tested from a Fedora41/python3.13 container. Tested-by: Patrick Robb Reviewed-by: Patrick Robb Applying to next-dts, thanks for the patch Luca.

Re: [PATCH v4] bus: fix inconsistent representation of PCI numbers

2025-02-04 Thread fengchengwen
On 2025/1/30 2:06, Bruce Richardson wrote: > On Wed, Jan 29, 2025 at 09:17:38AM -0800, Stephen Hemminger wrote: >> On Wed, 29 Jan 2025 10:54:16 +0200 >> Shani Peretz wrote: >> >>> DPDK provides two formats for specifying PCI device numbers: >>> a full version (":08:00.0") and a short version (

[PATCH v2] eal: force compilation of RTE_ASSERT expression

2025-02-04 Thread Stephen Hemminger
Even if RTE_ENABLE_ASSERT is not enabled, the expression used should still be checked for compiler warnings. Use sizeof() and ternary operator in same manner as the assert() macro to cause the expression to be evaluated but not generate code. This was motivated by detection of problems in a driver

[dpdk-dev] [PATCH v5 1/2] common/cnxk: support NPC flow on cn20k

2025-02-04 Thread psatheesh
From: Satheesh Paul ROC changes to support NPC flow on cn20k. Signed-off-by: Satheesh Paul Reviewed-by: Kiran Kumar K --- v2: * Fixed generic platform compiler error. v3: * Removed compile time macros. v4: * Rebased the patches. v5: * Updated release notes. * Fixed '__io' label for mbox field.

[dpdk-dev] [PATCH v5 2/2] net/cnxk: support rte flow on cn20k

2025-02-04 Thread psatheesh
From: Satheesh Paul Support for rte flow in cn20k. Signed-off-by: Satheesh Paul Reviewed-by: Kiran Kumar K --- doc/guides/rel_notes/release_25_03.rst | 4 + drivers/net/cnxk/cn10k_flow.c | 227 ++--- drivers/net/cnxk/cn10k_flow.h | 10 +- drivers/net/c

RE: [EXTERNAL] [PATCH v2] drivers/net: use intrinsic to access content of __m128i

2025-02-04 Thread Vamsi Krishna Attunuru
>-Original Message- >From: Andre Muezerie >Sent: Saturday, December 28, 2024 6:53 AM >To: andre...@linux.microsoft.com >Cc: bruce.richard...@intel.com; dev@dpdk.org; >konstantin.v.anan...@yandex.ru; Vamsi Krishna Attunuru > >Subject: [EXTERNAL] [PATCH v2] drivers/net: use intrinsic to a

Re: [RFC 0/3] Vhost: fix FD entries cleanup

2025-02-04 Thread Chenbo Xia
Hi David, > On Feb 4, 2025, at 21:18, David Marchand wrote: > > External email: Use caution opening links or attachments > > > Hello vhost maintainers, > > On Tue, Dec 24, 2024 at 4:50 PM Maxime Coquelin > wrote: >> >> The vhost FD manager provides a way for the read/write >> callbacks to r

Re: Testing dpdk application using openNIC driver

2025-02-04 Thread David Marchand
Hello, Please don't go private, as I tend to just ignore such mail. Re-adding ml and others. And don't top post. On Wed, Feb 5, 2025 at 8:06 AM Nafiah Siddiqha wrote: > > Hi, > I'm able to run testpmd with the given set of instructions you had mentioned > and tried it with pktgen fir which I'm

Re: [PATCH v2 1/2] dts: remove 'requires_forwarding_restart' from framework

2025-02-04 Thread Luca Vizzarro
Reviewed-by: Luca Vizzarro

Re: Testing dpdk application using openNIC driver

2025-02-04 Thread David Marchand
Hello, Adding pktgen maintainer in the loop. On Tue, Feb 4, 2025 at 2:42 PM Nafiah Siddiqha wrote: > > Hi, > I'm testing pktgen application using OpenNIC driver, but I face device cannot > parse issue , > What do I need to pass in my vdev parameter for it to run > > Below are the logs of the er

[DPDK/DTS Bug 1659] Softnic should be implemented as a proper VirtualDevice

2025-02-04 Thread bugzilla
https://bugs.dpdk.org/show_bug.cgi?id=1659 Bug ID: 1659 Summary: Softnic should be implemented as a proper VirtualDevice Product: DPDK Version: unspecified Hardware: All OS: All Status: UNCONFIRM

DPDK Release Status Meeting 2025-02-04

2025-02-04 Thread Mcnamara, John
Release status meeting minutes 2025-02-04 = Agenda: * Release Dates * Subtrees * Roadmaps * LTS * Defects * Opens Participants: * Broadcom * ARM * Intel * Marvell * Microsoft * Nvidia * Red Hat Release Dates - The following are the proposed w

[PATCH v2 13/54] net/e1000/base: remove unused function

2025-02-04 Thread Anatoly Burakov
From: Nir Efrati Integrated NVM is not supported on i225 and can be removed. Signed-off-by: Nir Efrati Signed-off-by: Anatoly Burakov --- drivers/net/intel/e1000/base/e1000_i225.c | 98 +-- drivers/net/intel/e1000/base/e1000_i225.h | 2 - 2 files changed, 1 insertion(+),

[PATCH v2 23/54] net/e1000/base: fix unused value

2025-02-04 Thread Anatoly Burakov
From: Dima Ruinskiy Static analysis has reported that when there is no get link status callback function, the value set in the if condition is not used and gets overwritten in the "out" section of the code. Fix by not seting the variable. Signed-off-by: Dima Ruinskiy Signed-off-by: Anatoly Bura

[PATCH v2 20/54] net/e1000/base: reset loop variable

2025-02-04 Thread Anatoly Burakov
From: Sasha Neftin When writing to Shadow RAM, we set rev_val on success, but since the value is already set to success initially, it is possible for none of the writes to be successful, yet ret_val will still be set to success. Fix it by resetting the ret_val to failure before every loop iterati

[PATCH v2 29/54] net/e1000/base: workaround for packet loss

2025-02-04 Thread Anatoly Burakov
From: Nir Efrati On some MAC types, packet loss is observed due to wake DMA clock gating. Disable wake DMA clock for some MAC types to avoid packet loss. Signed-off-by: Nir Efrati Signed-off-by: Anatoly Burakov --- drivers/net/intel/e1000/base/e1000_ich8lan.c | 7 +++ drivers/net/intel/e1

[PATCH v2 28/54] net/e1000/base: correct disable k1 logic

2025-02-04 Thread Anatoly Burakov
From: Vitaly Lifshits Starting from MTP PHY type there is a synchronization issue between the PHY's clock and PCH's synopsis PHY. This causes Tx packets corruptions. The workaround to this issue is to change P0s power down state from P0/P0s to P1 prior to disabling K1. Signed-off-by: Vitaly Lif

[PATCH v2 24/54] net/e1000/base: make set_ltr for i225 non-static

2025-02-04 Thread Anatoly Burakov
From: Nir Efrati Some tools need access to the function, so make it non-static. Signed-off-by: Nir Efrati Signed-off-by: Anatoly Burakov --- drivers/net/intel/e1000/base/e1000_i225.c | 2 +- drivers/net/intel/e1000/base/e1000_i225.h | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff

[PATCH v2 22/54] net/e1000/base: fix typo in LTR calculation

2025-02-04 Thread Anatoly Burakov
From: Dima Ruinskiy The LTR maximum value was incorrectly written using the scale from the LTR minimum value. This would cause incorrect values to be sent, in cases where the initial calculation lead to different min/max scales. Fix the typo to correctly calculate the LTR maximum value. Signed-o

[PATCH v2 25/54] net/e1000/base: fix semaphore timeout value

2025-02-04 Thread Anatoly Burakov
From: Pawel Malinowski According to datasheet software ownership of SWSM.SWESMBI bit should not exceed 100ms. Current implementation caused incorrect timeout counter values, where each iteration equals 50us delay. Because of that driver was allowed to wait for semaphore even for 1,5s. This might

[PATCH v2 21/54] net/e1000/base: fix LTR for i225

2025-02-04 Thread Anatoly Burakov
From: Sasha Neftin i225 specification recommends minus 1 microsecond from a value calculated for a LTR. Fix the calculation to match spec. Signed-off-by: Sasha Neftin Signed-off-by: Anatoly Burakov --- drivers/net/intel/e1000/base/e1000_i225.c | 2 ++ 1 file changed, 2 insertions(+) diff --g

[PATCH v2 27/54] net/e1000/base: skip MANC check for 82575

2025-02-04 Thread Anatoly Burakov
From: Carolyn Wyborny On 82575, driver is not supposed to check if managegement control is enabled, and flush the Rx FIFO unconditionally. Signed-off-by: Carolyn Wyborny Signed-off-by: Anatoly Burakov --- drivers/net/intel/e1000/base/e1000_base.c | 3 ++- 1 file changed, 2 insertions(+), 1 de

[PATCH v2 43/54] net/e1000/base: remove non-inclusive language

2025-02-04 Thread Anatoly Burakov
From: Marcin Jurczak This patch removes non-inclusive language from the e1000 shared code and comments. Signed-off-by: Marcin Jurczak Signed-off-by: Anatoly Burakov --- .../net/intel/e1000/base/e1000_80003es2lan.c | 8 ++-- drivers/net/intel/e1000/base/e1000_82571.c| 4 +- drivers/net/

[PATCH v2 45/54] net/e1000/base: add PHY read/write retry mechanism

2025-02-04 Thread Anatoly Burakov
From: Nir Efrati Sporadic MDI errors are observed on some platforms. To address them, a read/write retry mechanism is introduced. Set the initial retry counter to 3 with an option to disable/enable the mechanism for some specific flows that errors are expected. Signed-off-by: Nir Efrati Signed-

[PATCH v2 41/54] net/e1000/base: improve NVM checksum handling

2025-02-04 Thread Anatoly Burakov
From: Sasha Neftin When reading NVM checksum, we may encounter the following scenarios: - Checksum may be invalid, and can be updated - Checksum may be invalid but cannot be updated because NVM is read-only For the latter case, we should just ignore invalid checksum and not attempt to update it

[PATCH v2 38/54] net/e1000/base: make debug prints more informative

2025-02-04 Thread Anatoly Burakov
From: Dima Ruinskiy PHY page and register notation traditionally uses decimal numbering. This patch aligns the debug prints to this notation, as well as moves prints to after we get a value of interest to us. Signed-off-by: Dima Ruinskiy Signed-off-by: Anatoly Burakov --- drivers/net/intel/e1

[PATCH v2 39/54] net/e1000/base: add WoL definitions

2025-02-04 Thread Anatoly Burakov
From: Adam Ludkiewicz Define constants for WoL control on i210 NICs. Signed-off-by: Adam Ludkiewicz Signed-off-by: Anatoly Burakov --- drivers/net/intel/e1000/base/e1000_i210.h | 4 1 file changed, 4 insertions(+) diff --git a/drivers/net/intel/e1000/base/e1000_i210.h b/drivers/net/int

[PATCH v2 42/54] net/e1000/base: remove redundant access to RO register

2025-02-04 Thread Anatoly Burakov
From: Nir Efrati Remove workaround for hardware synchronization before reset. The original bug that was fixed by this workaround was root caused later and fixed in other ways. Signed-off-by: Nir Efrati Signed-off-by: Anatoly Burakov --- drivers/net/intel/e1000/base/e1000_ich8lan.c | 17 --

[PATCH v2 07/54] net/e1000: add support for more I219 devices

2025-02-04 Thread Anatoly Burakov
From: Vitaly Lifshits Add support for new hardware ID's from the I219 series. Signed-off-by: Lifshits, Vitaly Signed-off-by: Anatoly Burakov --- drivers/net/intel/e1000/base/e1000_api.c | 32 + drivers/net/intel/e1000/base/e1000_hw.h | 36 +--- drivers

[PATCH v2 15/54] net/e1000/base: increase PHY power up delay

2025-02-04 Thread Anatoly Burakov
From: Sasha Neftin PHY specification for i225 requires 300 microsecond delay after power up sequence, so increase the delay after power up to 300 microseconds. Signed-off-by: Sasha Neftin Signed-off-by: Anatoly Burakov --- drivers/net/intel/e1000/base/e1000_phy.c | 1 + 1 file changed, 1 inse

[PATCH v2 19/54] net/e1000/base: fix bitwise op type mismatch

2025-02-04 Thread Anatoly Burakov
From: Przemyslaw Ciesielski Static analysis has found type mismatch between mask and register value. Fix the bitwise operation type to avoid potential issues. Signed-off-by: Przemyslaw Ciesielski Signed-off-by: Anatoly Burakov --- drivers/net/intel/e1000/base/e1000_i225.c | 2 +- 1 file chang

[PATCH v2 09/54] net/e1000/base: add missing definitions

2025-02-04 Thread Anatoly Burakov
Some definitions that are present in the base code are missing from DPDK. This patch adds the following definitions: - EEPROM R/W v2 modes - BAR ctrl CSR shift size - I225 flash access register - EEE-related registers Signed-off-by: Anatoly Burakov --- drivers/net/intel/e1000/base/e1000_defines

[PATCH v2 17/54] net/e1000/base: add PHY reset support for i225

2025-02-04 Thread Anatoly Burakov
From: Evgeny Efimov Use PHY reset generic implementation for i225. Signed-off-by: Evgeny Efimov Signed-off-by: Anatoly Burakov --- drivers/net/intel/e1000/base/e1000_i225.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/intel/e1000/base/e1000_i225.c b/drivers/net/intel/e1000

[PATCH v2 16/54] net/e1000/base: fix deadlock in i225

2025-02-04 Thread Anatoly Burakov
From: Dima Ruinskiy Currently, when writing GPY PHY registers, semaphor is acquired before writing. However, if writing fails, semaphor is not released, causing a deadlock down the line. Fix the issue by removing premature return. Signed-off-by: Dima Ruinskiy Signed-off-by: Anatoly Burakov ---

[PATCH v2 18/54] net/e1000/base: fix infinite loop

2025-02-04 Thread Anatoly Burakov
From: Dima Ruinskiy When the driver fails to acquire HW semaphore, there is nothing that can be done to address it, so just leave to avoid an infinite loop. Signed-off-by: Dima Ruinskiy Signed-off-by: Anatoly Burakov --- drivers/net/intel/e1000/base/e1000_i225.c | 11 +-- 1 file chang

[PATCH v2 12/54] net/e1000/base: add PHY power management control

2025-02-04 Thread Anatoly Burakov
From: Sasha Neftin It is expected that PHY power management control should provide a reliable and accurate indication of PHY reset completion and decrease the delay time after a PHY reset. Signed-off-by: Sasha Neftin Signed-off-by: Anatoly Burakov --- drivers/net/intel/e1000/base/e1000_define

[PATCH v2 10/54] net/e1000/base: read PCIe bus info in i225

2025-02-04 Thread Anatoly Burakov
From: Dima Ruinskiy Call e1000_get_bus_info_pcie_generic from i225 to read PCIe bus info. Signed-off-by: Dima Ruinskiy Signed-off-by: Anatoly Burakov --- drivers/net/intel/e1000/base/e1000_i225.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/net/intel/e1000/bas

[PATCH v2 34/54] net/e1000/base: improve code flow in ICH8LAN

2025-02-04 Thread Anatoly Burakov
From: Piotr Pietruszewski This change rearranges the ICH8LAN code to have less indentation levels. Signed-off-by: Piotr Pietruszewski Signed-off-by: Anatoly Burakov --- drivers/net/intel/e1000/base/e1000_ich8lan.c | 84 ++-- 1 file changed, 43 insertions(+), 41 deletions(-) d

[PATCH v2 37/54] net/e1000/base: make e1000_access_phy_wakeup_reg_bm non-static

2025-02-04 Thread Anatoly Burakov
From: Dima Ruinskiy Mark e1000_access_phy_wakeup_reg_bm as non-static. Signed-off-by: Dima Ruinskiy Signed-off-by: Anatoly Burakov --- drivers/net/intel/e1000/base/e1000_phy.c | 6 ++ drivers/net/intel/e1000/base/e1000_phy.h | 2 ++ 2 files changed, 4 insertions(+), 4 deletions(-) diff -

[PATCH v2 26/54] net/e1000/base: correct mPHY access logic

2025-02-04 Thread Anatoly Burakov
The original code had incorrect indentation, and the fix was applied to follow the indentation, i.e. adding brackets making the indentation valid. However, the actual issue was incorrect indentation and not missing braces, so the fix was incorrect. This fix restores the original logic and corrects

[PATCH v2 36/54] net/e1000/base: use longer ULP exit timeout on more HW

2025-02-04 Thread Anatoly Burakov
From: Nir Efrati Add some definitions related to ULP WoL, and set longer ULP exit timeout on more MAC types. Signed-off-by: Nir Efrati Signed-off-by: Anatoly Burakov --- drivers/net/intel/e1000/base/e1000_hw.h | 1 + drivers/net/intel/e1000/base/e1000_ich8lan.c | 2 +- drivers/net/intel/

[PATCH v2 35/54] net/e1000/base: add definition for EXFWSM register

2025-02-04 Thread Anatoly Burakov
From: Nir Efrati Add Extended Firmware Semaphore (EXFWSM) register definition. Signed-off-by: Nir Efrati Signed-off-by: Anatoly Burakov --- drivers/net/intel/e1000/base/e1000_defines.h | 3 ++- drivers/net/intel/e1000/base/e1000_regs.h| 1 + 2 files changed, 3 insertions(+), 1 deletion(-)

[PATCH v2 30/54] net/e1000/base: add EEE common API function

2025-02-04 Thread Anatoly Burakov
Add enable/disable EEE API to base code. Signed-off-by: Evgeny Efimov Signed-off-by: Anatoly Burakov --- drivers/net/intel/e1000/base/e1000_api.c | 17 + drivers/net/intel/e1000/base/e1000_api.h | 1 + drivers/net/intel/e1000/base/e1000_hw.h | 1 + drivers/net/intel/e1000/

[PATCH v2 32/54] net/e1000/base: add profile information field

2025-02-04 Thread Anatoly Burakov
From: Sasha Neftin Some tools require device profile information to be present, so add it. Signed-off-by: Sasha Neftin Signed-off-by: Anatoly Burakov --- drivers/net/intel/e1000/base/e1000_hw.h | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/intel/e1000/base/e1000_hw.h b/driv

[PATCH v2 33/54] net/e1000/base: add LPI counters

2025-02-04 Thread Anatoly Burakov
From: Sasha Neftin Add new fields in structure to indicate if EEE LPI entries have been observed on Tx and Rx path. Signed-off-by: Sasha Neftin Signed-off-by: Anatoly Burakov --- drivers/net/intel/e1000/base/e1000_hw.h | 2 ++ drivers/net/intel/e1000/base/e1000_mac.c | 2 ++ 2 files changed,

[PATCH v2 31/54] net/e1000/base: add queue select definitions

2025-02-04 Thread Anatoly Burakov
From: Sasha Neftin Add definitions for address select mask (selects source address to be used in the address filtering), as well as queue select (indicates which Rx queue should get the packet matching this MAC address). Signed-off-by: Sasha Neftin Signed-off-by: Anatoly Burakov --- drivers/n

[PATCH v2 52/54] net/e1000/base: fix data type in MAC hash

2025-02-04 Thread Anatoly Burakov
From: Barbara Skobiej One of the bit shifts in MAC hash calculation triggers a static analysis warning about a potential overflow. Fix the data type to avoid this. Fixes: af75078fece3 ("first public release") Cc: sta...@dpdk.org Signed-off-by: Barbara Skobiej Signed-off-by: Anatoly Burakov --

[PATCH v2 51/54] net/e1000/base: fix unchecked return

2025-02-04 Thread Anatoly Burakov
From: Dima Ruinskiy Static analysis has detected a write that is not checked for errors, leading to ignored error return value. Add a check. Fixes: edcdb3c5f71b ("e1000/base: fix link flap on 82579") Cc: sta...@dpdk.org Signed-off-by: Dima Ruinskiy Signed-off-by: Anatoly Burakov --- drivers/

[PATCH v2 50/54] net/e1000/base: fix uninitialized variable usage

2025-02-04 Thread Anatoly Burakov
From: Jakub Buchocki <101559614+jbuch...@users.noreply.github.com> Coverity has detected potential usage of uninitialized values inside the array. Fix the warning by initializing array. Fixes: af75078fece3 ("first public release") Cc: sta...@dpdk.org Signed-off-by: Jakub Buchocki Signed-off-by:

[PATCH v2 47/54] net/e1000/base: fix static analysis warnings

2025-02-04 Thread Anatoly Burakov
From: Przemysław Ciesielski There are some static analysis warnings due to wrong data types being used for various operations. Fix them with explicit typecasts. Fixes: 5a32a257f957 ("e1000: more NICs in base driver") Fixes: 38db3f7f50bd ("e1000: update base driver") Cc: sta...@dpdk.org Signed-o

[PATCH v2 49/54] net/e1000/base: fix mac addr hash bit_shift

2025-02-04 Thread Anatoly Burakov
From: Loktionov Aleksandr In e1000_hash_mc_addr_generic() the expression: "mc_addr[4] >> 8 - bit_shift", right shifting "mc_addr[4]" shift by more than 7 bits always yields zero, so hash becomes not so different. Add initialization with bit_shift = 1, and add a loop condition to ensure

[PATCH v2 48/54] net/e1000/base: fix reset for 82580

2025-02-04 Thread Anatoly Burakov
From: Barbara Skobiej Fix setting device reset status bit in e1000_reset_hw_82580() function for 82580 by first reading the register value, and then setting the device reset bit. Fixes: af75078fece3 ("first public release") Cc: sta...@dpdk.org Signed-off-by: Barbara Skobiej Signed-off-by: Anat

[PATCH v2 46/54] net/e1000/base: fix iterator type

2025-02-04 Thread Anatoly Burakov
From: Amir Avivi Fix static analysis warning about comparison between types of incompatible width, which might lead to an infinite loop due to overflow. Fixes: af75078fece3 ("first public release") Cc: sta...@dpdk.org Signed-off-by: Amir Avivi Signed-off-by: Anatoly Burakov --- drivers/net/i

[PATCH v2 08/54] net/e1000/base: correct formatting differences

2025-02-04 Thread Anatoly Burakov
There are some mismatches between what's in the base driver, and what is in DPDK version of it. This patch fixes the following issues: - Unneeded #ifndef clause - Missing comments - Duplicate definitions - Moved definitions - Extraneous fall-through comments - Function comments not matching functi

[PATCH v2 53/54] net/e1000/base: rename NVM version variable

2025-02-04 Thread Anatoly Burakov
From: Piotr Kubaj Rename version to nvm_version to avoid shadowing global variables on some systems. Signed-off-by: Piotr Kubaj Signed-off-by: Anatoly Burakov --- drivers/net/intel/e1000/base/e1000_i210.c | 14 +++--- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/drive

[PATCH v2 54/54] net/e1000/base: update readme

2025-02-04 Thread Anatoly Burakov
Update README with more up-to-date information. Signed-off-by: Anatoly Burakov --- drivers/net/intel/e1000/base/README | 8 +--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/drivers/net/intel/e1000/base/README b/drivers/net/intel/e1000/base/README index b84ee5ad6e..2a0696f3

[PATCH v2 40/54] net/e1000/base: hardcode bus parameters for ICH8

2025-02-04 Thread Anatoly Burakov
From: Dima Ruinskiy Current implementation of e1000_get_bus_info_ich8lan first attempts to call e1000_get_bus_info_pcie_generic, and hard codes the bus width if the latter does not return a valid value. However, e1000_get_bus_info_pcie_generic will always fail on an ICH device, since no PCIe cap

[PATCH v2 14/54] net/e1000/base: add LED blink support for i225

2025-02-04 Thread Anatoly Burakov
From: Menachem Fogel Implement LED blinking for i225. Signed-off-by: Fogel Menachem Signed-off-by: Anatoly Burakov --- drivers/net/intel/e1000/base/e1000_i225.c | 44 +++ drivers/net/intel/e1000/base/e1000_i225.h | 8 + 2 files changed, 52 insertions(+) diff --git a/

[PATCH v2 11/54] net/e1000/base: rename VLAN PQF macros

2025-02-04 Thread Anatoly Burakov
From: Sasha Neftin Align VLAN PQF naming convention to base code usage, as well as fix typos. Signed-off-by: Sasha Neftin Signed-off-by: Anatoly Burakov --- drivers/net/intel/e1000/base/e1000_defines.h | 6 +++--- drivers/net/intel/e1000/base/e1000_regs.h| 2 +- 2 files changed, 4 inserti

Re: [PATCH v3 2/2] stack: enable build with MSVC

2025-02-04 Thread Andre Muezerie
On Tue, Feb 04, 2025 at 10:30:03AM +, Bruce Richardson wrote: > On Mon, Feb 03, 2025 at 05:58:38PM -0800, Andre Muezerie wrote: > > An implementation compatible with MSVC is provided for > > atomic128_cmp_exchange in rte_stack_lf_c11.h. > > > > Now that the issues preventing the code needed to

[PATCH v2 44/54] net/e1000/base: introduce PHY ID retry mechanism

2025-02-04 Thread Anatoly Burakov
From: Nir Efrati On some customer platforms it was observed that invalid PHY ID (0x) was returned on first try. This patch introduces PHY ID retry mechanism to perform retries on PHY ID read for up to a second. Because the original code was intentionally not checking PHY ID due to a different

[PATCH] net: support Arista L2 headers

2025-02-04 Thread Denis Davidoglu
Packet parsing and type detection fail for packets containing Arista Vendor Specific Protocol (AVSP) headers. This patch adds support for three L2 headers: Arista TGen, Arista 64-bit Timestamp and Arista 48-bit Timestamp. Signed-off-by: Denis Davidoglu --- lib/net/rte_ether.h | 31 ++

Re: [PATCH v19 00/27] remove use of VLAs for Windows

2025-02-04 Thread Patrick Robb
It looks like this failed the check-meson script which we incorporated into our apply/build pipeline recently, which is why this series got a "build failure." It is indicating there are issues with lib/vhost/meson.build and app/test/meson.build. Obviously we need to provide an email body which mak

[PATCH v20 09/27] gro: remove use of VLAs

2025-02-04 Thread Andre Muezerie
From: Konstantin Ananyev ../lib/gro/rte_gro.c:182:34: warning: variable length array used [-Wvla] ../lib/gro/rte_gro.c:363:34: warning: variable length array used [-Wvla] In both cases the pattern is the same: we use unprocess_pkts[nb_pkts] to collect un-used by GRO packets, and then cop

[PATCH v20 08/27] gro: fix overwrite unprocessed packets

2025-02-04 Thread Andre Muezerie
From: Konstantin Ananyev gro_vxlan_tcp4_tbl_timeout_flush() is called without taking into account that first entries in pkts[] can be already occupied by un-processed packets. Fixes: 74080d7dcf31 ("gro: support IPv6 for TCP") Cc: sta...@dpdk.org Signed-off-by: Konstantin Ananyev Acked-by: Ferr

[PATCH v20 07/27] rcu: remove use of VLAs for Windows built code

2025-02-04 Thread Andre Muezerie
From: Konstantin Ananyev 1) ./lib/rcu/rte_rcu_qsbr.c:359:9 : warning: ISO C90 forbids variable length array ‘data’ [-Wvla] 2) ./lib/rcu/rte_rcu_qsbr.c:422:9 : warning: ISO C90 forbids variable length array ‘data’ [-Wvla] In both cases we allocate VLA for one element from RCU deferred que

[PATCH v20 04/27] ethdev: remove use of VLAs for Windows built code

2025-02-04 Thread Andre Muezerie
From: Konstantin Ananyev 1) ./lib/ethdev/rte_ethdev.c:3244:16 : warning: ISO C90 forbids variable length array ‘xstats_names’ 2) ./lib/ethdev/rte_ethdev.c:3345:17 : warning: ISO C90 forbids variable length array ‘ids_copy’ 3) ./lib/ethdev/rte_ethdev.c:3538:16 : warning: ISO C90 forbid

[PATCH v20 12/27] app/testpmd: remove use of VLAs for Windows built

2025-02-04 Thread Andre Muezerie
From: Tyler Retzlaff MSVC does not support VLAs, replace VLAs with standard C arrays or alloca(). alloca() is available for all toolchain/platform combinations officially supported by DPDK. Signed-off-by: Tyler Retzlaff Acked-by: Chengwen Feng --- app/test-pmd/cmdline.c | 2 +- app/test

[PATCH v20 11/27] net/ice: remove use of VLAs

2025-02-04 Thread Andre Muezerie
From: Konstantin Ananyev ../drivers/net/ice/ice_rxtx.c:1871:29: warning: variable length array used [-Wvla] Here VLA is used as a temp array for mbufs that will be used as a split RX data buffers. As at any given time only one thread can do RX from particular queue, at rx_queue_setup() we ca

[PATCH v20 05/27] hash: remove use of VLAs for Windows built code

2025-02-04 Thread Andre Muezerie
From: Konstantin Ananyev 1) ./lib/hash/rte_cuckoo_hash.c:2362:9 : warning: ISO C90 forbids variable length array ‘positions’ 2) ../lib/hash/rte_cuckoo_hash.c:2478:9 : warning: ISO C90 forbids variable length array ‘positions’ Both rte_hash_lookup_bulk_data() and rte_hash_lookup_with_hash

[PATCH v20 10/27] net/ixgbe: remove use of VLAs

2025-02-04 Thread Andre Muezerie
From: Konstantin Ananyev 1) ../drivers/net/ixgbe/ixgbe_ethdev.c:3556:46: warning: variable length array used [-Wvla] 2) ../drivers/net/ixgbe/ixgbe_ethdev.c:3739:23: warning: variable length array used [-Wvla] 3) ../drivers/net/ixgbe/ixgbe_rxtx_vec_common.h:17:24: warning: variable len

[PATCH v20 14/27] common/idpf: remove use of VLAs for Windows built code

2025-02-04 Thread Andre Muezerie
From: Tyler Retzlaff MSVC does not support VLAs, replace VLAs with standard C arrays or alloca(). alloca() is available for all toolchain/platform combinations officially supported by DPDK. Signed-off-by: Tyler Retzlaff Acked-by: Bruce Richardson --- drivers/common/idpf/idpf_common_rxtx.c

[PATCH v20 06/27] hash/thash: remove use of VLAs for Windows built

2025-02-04 Thread Andre Muezerie
From: Konstantin Ananyev 1) ./lib/hash/rte_thash.c:774:9 : warning: ISO C90 forbids variable length array ‘tmp_tuple’ The tuple can exceed sizeof(union rte_thash_tuple), for example if any tunneling header is used in the RSS hash calculation. The longest RSS hash key currently supported is

[PATCH v20 02/27] eal/linux: remove use of VLAs

2025-02-04 Thread Andre Muezerie
From: Konstantin Ananyev 1) ./lib/eal/linux/eal_interrupts.c:1073:16 : warning: ISO C90 forbids variable length array 'events' MSVC does not support VLAs. Use alloca() to allocate the memory on the stack. 2) ./lib/eal/linux/eal_interrupts.c:1319:16 : warning: ISO C90 forbids variable le

[PATCH v20 00/27] remove use of VLAs for Windows

2025-02-04 Thread Andre Muezerie
As per guidance technical board meeting 2024/04/17. This series removes the use of VLAs from code built for Windows for all 3 toolchains. If there are additional opportunities to convert VLAs to regular C arrays please provide the details for incorporation into the series. MSVC does not support VL

[PATCH v20 03/27] eal/common: remove use of VLAs

2025-02-04 Thread Andre Muezerie
From: Konstantin Ananyev 1) ../lib/eal/common/eal_common_proc.c:695:15 : warning: variable length array used As msg->num_fds should not exceed RTE_MP_MAX_FD_NUM, replaced it with fixed size array. Signed-off-by: Konstantin Ananyev Acked-by: Stephen Hemminger --- lib/eal/common/eal_common

[PATCH v20 01/27] eal: include header required for alloca

2025-02-04 Thread Andre Muezerie
From: Tyler Retzlaff Include alloca.h for Linux and malloc.h for Windows to get declaration of alloca(). Signed-off-by: Tyler Retzlaff --- lib/eal/freebsd/include/rte_os.h | 1 + lib/eal/linux/include/rte_os.h | 1 + lib/eal/windows/include/rte_os.h | 1 + 3 files changed, 3 insertions(+) d

[PATCH v20 23/27] drivers: add no_wvla_cflag to directories that are not VLA-free

2025-02-04 Thread Andre Muezerie
The no_wvla_cflag is added to meson.build files in directories that are not yet VLA-free. Signed-off-by: Andre Muezerie --- drivers/common/cnxk/meson.build | 2 ++ drivers/common/mlx5/meson.build | 2 ++ drivers/common/qat/meson.build | 2 ++ drivers/crypto/ccp/meson.build

[PATCH v20 19/27] app/testpmd: remove use of VLAs for Windows built code in shared_rxq_fwd

2025-02-04 Thread Andre Muezerie
MSVC does not support VLAs, replace VLAs with standard C arrays or alloca(). alloca() is available for all toolchain/platform combinations officially supported by DPDK. Signed-off-by: Andre Muezerie Acked-by: Chengwen Feng --- app/test-pmd/shared_rxq_fwd.c | 2 +- 1 file changed, 1 insertion(+)

[PATCH v20 17/27] net/mlx5: remove use of VLAs for Windows built code

2025-02-04 Thread Andre Muezerie
From: Tyler Retzlaff MSVC does not support VLAs, replace VLAs with standard C arrays or alloca(). alloca() is available for all toolchain/platform combinations officially supported by DPDK. Signed-off-by: Tyler Retzlaff --- drivers/net/mlx5/mlx5.c | 5 ++--- drivers/net/mlx5/mlx5_flow.c |

[PATCH v20 24/27] lib: add no_wvla_cflag to directories that are not VLA-free

2025-02-04 Thread Andre Muezerie
The no_wvla_cflag is added to meson.build files in directories that are not yet VLA-free. Signed-off-by: Andre Muezerie --- lib/acl/meson.build| 2 ++ lib/bpf/meson.build| 2 ++ lib/dispatcher/meson.build | 2 ++ lib/eventdev/meson.build | 2 ++ lib/ipsec/meson.build |

[PATCH v20 20/27] hash: remove use of VLAs by using standard arrays

2025-02-04 Thread Andre Muezerie
MSVC does not support VLAs, replace VLAs with standard C arrays. Signed-off-by: Andre Muezerie --- lib/hash/rte_thash_gf2_poly_math.c | 9 - 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/lib/hash/rte_thash_gf2_poly_math.c b/lib/hash/rte_thash_gf2_poly_math.c index 1c6297

  1   2   >