[PATCH v2 1/1] net/ixgbe: update base code README

2024-09-09 Thread Anatoly Burakov
When last driver update was performed, README was not updated with data on latest shared code package generation date. Update README to reflect the date of last shared code package generation. Signed-off-by: Anatoly Burakov --- drivers/net/ixgbe/base/README | 4 ++-- 1 file changed, 2

[PATCH v1 1/1] net/ixgbe: update base code README

2024-09-09 Thread Anatoly Burakov
When last driver update was performed, README was not updated with data on latest shared code package generation date. Update README to reflect the date of last shared code package generation. Signed-off-by: Anatoly Burakov --- drivers/net/ixgbe/base/README | 4 ++-- 1 file changed, 2

[RFC PATCH v1 5/5] lcore: store physical package ID internally

2024-09-06 Thread Anatoly Burakov
This patch introduces a new field in the lcore structure that stores the physical package ID of the core. This field is populated during EAL init. It is not exposed through any external API's for now. Signed-off-by: Anatoly Burakov --- lib/eal/common/eal_common_lcore.c

[RFC PATCH v1 4/5] eal: rename --socket-mem/--socket-limit

2024-09-06 Thread Anatoly Burakov
Currently, --socket-mem and --socket-limit EAL flags effectively refer to NUMA nodes, not CPU sockets. Update the flag names to reflect this. Old flag names are still supported for backward compatibility. Signed-off-by: Anatoly Burakov --- Notes: Technically, this is a user-facing change

[RFC PATCH v1 3/5] eal: rename socket ID to NUMA ID in internal config

2024-09-06 Thread Anatoly Burakov
This patch renames socket ID-related fields in internal EAL config structure to refer to NUMA ID instead. No user-facing API's are changed. Signed-off-by: Anatoly Burakov --- lib/eal/common/eal_common_dynmem.c | 14 +++--- lib/eal/common/eal_common_options.c | 16

[RFC PATCH v1 2/5] lcore: rename socket ID to NUMA ID

2024-09-06 Thread Anatoly Burakov
cs of messages generated by these API's. Signed-off-by: Anatoly Burakov --- lib/eal/common/eal_common_lcore.c | 10 +- lib/eal/common/eal_common_thread.c | 12 ++-- lib/eal/common/eal_private.h | 2 +- 3 files changed, 12 insertions(+), 12 deletions(-) diff --git a/lib/

[RFC PATCH v1 1/5] eal: update socket ID API documentation

2024-09-06 Thread Anatoly Burakov
what is already the case (the semantics have changed back when systems started reporting multiple NUMA nodes per physical socket). Signed-off-by: Anatoly Burakov --- doc/guides/prog_guide/glossary.rst | 5 - lib/eal/include/rte_lcore.h| 25 - 2 files changed,

[RFC PATCH v1 0/5] Adjust wording for NUMA vs. socket ID in DPDK

2024-09-06 Thread Anatoly Burakov
ysical package, see e.g. discussion under this patch: https://patches.dpdk.org/project/dpdk/cover/20240827151014.201-1-vipin.vargh...@amd.com/ Anatoly Burakov (5): eal: update socket ID API documentation lcore: rename socket ID to NUMA ID eal: rename socket ID to NUMA

[PATCH v1 1/1] usertools: add DPDK build directory setup script

2024-09-04 Thread Anatoly Burakov
thout interaction, in which case it will pass all its parameters to Meson directly, with added benefit of dependency tracking and producing minimal builds if desired. Signed-off-by: Anatoly Burakov --- usertools/dpdk-setup.py | 669 1 file changed, 669 ins

[PATCH v1 0/1] Add DPDK build directory configuration script

2024-09-04 Thread Anatoly Burakov
uot; DPDK. This is not that, but it's a good start. Anatoly Burakov (1): usertools: add DPDK build directory setup script usertools/dpdk-setup.py | 669 1 file changed, 669 insertions(+) create mode 100755 usertools/dpdk-setup.py -- 2.43.5

[PATCH v3 7/8] build: reduce app dependencies

2024-09-04 Thread Anatoly Burakov
From: Bruce Richardson Remove any unnecessary dependencies from the app dependency lists. This will give each app a near-minimum set of required dependencies. Signed-off-by: Bruce Richardson --- app/dumpcap/meson.build | 2 +- app/graph/meson.build| 2 +- app/pdump/meson.b

[PATCH v3 5/8] build: reduce library dependencies

2024-09-04 Thread Anatoly Burakov
From: Bruce Richardson Rather than having each library depend up on EAL + any extra libs, we can take advantage of recursive dependency support in meson and just assign the dependencies of each directory directly, rather than appending to the array. For libraries which only depend upon EAL, keep

[PATCH v3 4/8] build: remove kvargs from driver class dependencies

2024-09-04 Thread Anatoly Burakov
From: Bruce Richardson The kvargs library is used by EAL, and therefore is implicitly a dependency of every DPDK driver. Remove it from the minimum set of dependencies for each driver class as it's unnecessary to call it out there. Signed-off-by: Bruce Richardson --- drivers/event/meson.build

[PATCH v3 1/8] build: split dependencies into mandatory and optional

2024-09-04 Thread Anatoly Burakov
Allow specifying dependencies as either mandatory or optional. This does not change anything about the build, but it is useful for tooling to know if a dependency is required or not. Signed-off-by: Anatoly Burakov --- app/meson.build | 3 ++- app/proc-info/meson.build

[PATCH v3 3/8] devtools: add script to flag unneeded dependencies

2024-09-04 Thread Anatoly Burakov
From: Bruce Richardson While not a serious problem, DPDK components often list more dependencies than are actually necessary to build, due to the use of recursive dependencies. In extreme cases, such as with core libraries, this can lead to longer configuration times due to meson having to dedupl

[PATCH v3 2/8] build: output a dependency log in build directory

2024-09-04 Thread Anatoly Burakov
hical representation of the DPDK dependency tree if so desired. For example: "dot -Tpng -O build/deps.dot" to produce the image file "build/deps.dot.png". Signed-off-by: Bruce Richardson Acked-by: Konstantin Ananyev Signed-off-by: Anatoly Burakov --- app/meson.build

[PATCH v3 0/8] record and rework component dependencies

2024-09-04 Thread Anatoly Burakov
nal and mandatory - Fixup graph scripts to read and generate graphs that encode optional dependencies into the graph - Python version fixes to avoid using features not available in minimum supported Python version - Formatting with Ruff, and PEP-484 compliance Anatoly Burakov (1): build: sp

[PATCH v3 6/8] build: reduce driver dependencies

2024-09-04 Thread Anatoly Burakov
From: Bruce Richardson Remove any unnecessary dependencies from the driver dependency lists. This will give each driver a near-minimum set of required dependencies. Signed-off-by: Bruce Richardson --- drivers/baseband/fpga_5gnr_fec/meson.build | 2 +- drivers/baseband/fpga_lte_fec/meson.build

[PATCH v3 8/8] devtools: add script to generate DPDK dependency graphs

2024-09-04 Thread Anatoly Burakov
generates an output file that has the nodes categorized, filtering them based off the requested node or category. For example, use "--match net/ice" to show the dependency tree from that driver, or "--match lib" to show just the library dependency tree. Signed-off-by: Bruce Ri

[PATCH v1 1/1] usertools/devbind: allow changing UID/GID for VFIO

2024-09-02 Thread Anatoly Burakov
y` to change the UID/GID of the device when binding it to VFIO. Signed-off-by: Anatoly Burakov --- usertools/dpdk-devbind.py | 41 +-- 1 file changed, 39 insertions(+), 2 deletions(-) diff --git a/usertools/dpdk-devbind.py b/usertools/dpdk-devbind.py index 078e8

[PATCH v1 1/1] buildtools: add VSCode configuration generator

2024-09-02 Thread Anatoly Burakov
included, such as build-on-save (needs an extension), as well as disablement of some default VSCode settings that are not needed for DPDK. Signed-off-by: Anatoly Burakov --- Notes: RFCv3 -> v1: - Format code with Ruff - Use T. as typing alias - Fixed wrong comments in pla

[PATCH v1 0/1] Add Visual Studio Code configuration script

2024-09-02 Thread Anatoly Burakov
arate set of scripts, so this script now concerns itself only with adding build/launch targets to user's configuration and not much else Please feel free to make any suggestions! [1] https://code.visualstudio.com/docs/remote/ssh Anatoly Burakov (1): buildtools: add VSCode configuration ge

[PATCH v1 30/30] net/i40e: update base driver README

2024-09-02 Thread Anatoly Burakov
Update README with the date of when the latest snapshot was generated. Signed-off-by: Anatoly Burakov --- drivers/net/i40e/base/README | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/net/i40e/base/README b/drivers/net/i40e/base/README index 2e4fa5a921

[PATCH v1 29/30] net/i40e/base: add Shadow RAM pointer definition

2024-09-02 Thread Anatoly Burakov
From: Bartosz Jakub Rosadzinski This commit introduces a definition of the 5th Free Provisioning Area pointer in Shadow RAM. 5th PFA is used during NVM update for storing X710-T2L/X710-T4L's Phy Firmware. Signed-off-by: Bartosz Jakub Rosadzinski Signed-off-by: Anatoly Burakov --- driver

[PATCH v1 28/30] net/i40e/base: add trace buffer reading dependencies

2024-09-02 Thread Anatoly Burakov
From: Jedrzej Jagielski Some driver versions need to use "Read alternate - Indirect" command in order to get the content of trace buffer. This patch adds a couple of defines related to that functionality. Signed-off-by: Jedrzej Jagielski Signed-off-by: Anatoly Burakov --- driver

[PATCH v1 27/30] net/i40e/base: change time variables from 64 bit to 32 bit

2024-09-02 Thread Anatoly Burakov
From: Jaroslaw Ilgiewicz Time variables were designed for 32 bit and 64 bit variables are not necessary. Changed all to 32 bit. Signed-off-by: Jaroslaw Ilgiewicz Signed-off-by: Anatoly Burakov --- drivers/net/i40e/base/i40e_common.c| 2 +- drivers/net/i40e/base/i40e_nvm.c | 6

[PATCH v1 26/30] net/i40e/base: add NVM acquire with custom timeout

2024-09-02 Thread Anatoly Burakov
patch adds custom timeout for that case. Signed-off-by: Midde Ajijur Rehaman Signed-off-by: Anatoly Burakov --- drivers/net/i40e/base/i40e_nvm.c | 95 ++ drivers/net/i40e/base/i40e_prototype.h | 5 ++ 2 files changed, 100 insertions(+) diff --git a/drivers/net/i40e

[PATCH v1 25/30] net/i40e/base: add register definitions for FLU

2024-09-02 Thread Anatoly Burakov
From: Piotr Skajewski These registers are relevant to MAC source pruning feature. Signed-off-by: Piotr Skajewski Signed-off-by: Anatoly Burakov --- drivers/net/i40e/base/i40e_register.h | 8 1 file changed, 8 insertions(+) diff --git a/drivers/net/i40e/base/i40e_register.h b

[PATCH v1 24/30] net/i40e/base: make semaphore timeout 32-bit

2024-09-02 Thread Anatoly Burakov
wraps, by checking the sign of substraction of two 32 bit vaues. Signed-off-by: Aleksandr Loktionov Signed-off-by: Anatoly Burakov --- drivers/net/i40e/base/i40e_nvm.c | 8 drivers/net/i40e/base/i40e_type.h | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers

[PATCH v1 23/30] net/i40e/base: check loop bounds

2024-09-02 Thread Anatoly Burakov
y: Barbara Skobiej Signed-off-by: Anatoly Burakov --- drivers/net/i40e/base/i40e_adminq.c | 19 +-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/drivers/net/i40e/base/i40e_adminq.c b/drivers/net/i40e/base/i40e_adminq.c index b670250180..350288269b 100644 --- a/driver

[PATCH v1 22/30] net/i40e/base: fix unchecked return value

2024-09-02 Thread Anatoly Burakov
From: Barbara Skobiej Static analysis tools have reported an unchecked return value warning. Address the warning by checking return value. Signed-off-by: Barbara Skobiej Signed-off-by: Anatoly Burakov --- drivers/net/i40e/base/i40e_common.c | 4 ++-- 1 file changed, 2 insertions(+), 2

[PATCH v1 21/30] net/i40e/base: make register dump read-only

2024-09-02 Thread Anatoly Burakov
From: Radoslaw Tyl Currently, when registers are dumped, the data inside them is changed, so repeated dumps lead to unexpected results. Fix this by making register list read-only. Signed-off-by: Radoslaw Tyl Signed-off-by: Anatoly Burakov --- drivers/net/i40e/base/i40e_diag.c | 12

[PATCH v1 19/30] net/i40e/base: align registers to the specification

2024-09-02 Thread Anatoly Burakov
From: Michal Nowak The I40E_PFPM_APM, I40E_PFPM_WUC, I40E_PFPM_WUFC, and I40E_PFPM_WUS should read bits per PF. Signed-off-by: Michal Nowak Signed-off-by: Anatoly Burakov --- drivers/net/i40e/base/i40e_register.h | 8 drivers/net/i40e/i40e_regs.h | 8 2 files

[PATCH v1 20/30] net/i40e/base: add PHY debug register dump

2024-09-02 Thread Anatoly Burakov
From: Radoslaw Tyl Add definitions for register dump for some PHY registers in order to assist field debugging of link issues. Signed-off-by: Radoslaw Tyl Signed-off-by: Anatoly Burakov --- drivers/net/i40e/base/i40e_register.h | 7 +++ 1 file changed, 7 insertions(+) diff --git a

[PATCH v1 18/30] net/i40e/base: add named and raw structs to rx desc

2024-09-02 Thread Anatoly Burakov
From: Björn Töpel Add i40e_16b_rx_wb_qw0 and raw structs to i40e_16byte_rx_desc, to allow access both as 16-byte descriptor, and as raw data. Signed-off-by: Björn Töpel Signed-off-by: Michal Jaron Signed-off-by: Anatoly Burakov --- drivers/net/i40e/base/i40e_type.h | 5 - 1 file changed

[PATCH v1 17/30] net/i40e/base: improve typecasting

2024-09-02 Thread Anatoly Burakov
From: Vignesh Sridhar Adding typecast to variables to avoid compiler warnings generated on certain platforms and compilers if variables of a particular data type are assigned to ones of a smaller data type. Signed-off-by: Vignesh Sridhar Signed-off-by: Anatoly Burakov --- drivers/net/i40e

[PATCH v1 16/30] net/i40e/base: add X722 defines for input set mask

2024-09-02 Thread Anatoly Burakov
From: Slawomir Laba Add X722 input set mask for RSS and flow director. X722 family is using different shifts on the registers from X710 NIC family. Signed-off-by: Slawomir Laba Signed-off-by: Anatoly Burakov --- drivers/net/i40e/base/i40e_type.h | 4 1 file changed, 4 insertions

[PATCH v1 15/30] net/i40e/base: add DDP package type defines

2024-09-02 Thread Anatoly Burakov
From: Artur Tyminski This patch adds definitions related to DDP package type. Signed-off-by: Artur Tyminski Signed-off-by: Anatoly Burakov --- drivers/net/i40e/base/i40e_type.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/net/i40e/base/i40e_type.h b/drivers/net/i40e/base

[PATCH v1 14/30] net/i40e/base: do not load DDP packages with reserved track ID

2024-09-02 Thread Anatoly Burakov
From: Artur Tyminski Packages with reserved track IDs should not be loaded, yet currently, the driver will only check one of the reserved ID's, but not the other. Fix the DDP package loading to also check for the other reserved track ID. Signed-off-by: Artur Tyminski Signed-off-by: An

[PATCH v1 13/30] net/i40e/base: allow reading LED blink setting

2024-09-02 Thread Anatoly Burakov
From: Dawid Łukwiński Provide an API to allow reading LED blink setting. Signed-off-by: Dawid Łukwiński Signed-off-by: Anatoly Burakov --- drivers/net/i40e/base/i40e_common.c| 29 ++ drivers/net/i40e/base/i40e_prototype.h | 1 + 2 files changed, 30 insertions

[PATCH v1 12/30] net/i40e/base: add VLAN field for input set

2024-09-02 Thread Anatoly Burakov
From: Przemyslaw Patynowski Add VLAN bit used during flow director programming, as a part of input set for HW. Signed-off-by: Przemyslaw Patynowski Signed-off-by: Anatoly Burakov --- drivers/net/i40e/base/i40e_type.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/net/i40e/base

[PATCH v1 11/30] net/i40e/base: fix not blinking X722 with x557 PHY

2024-09-02 Thread Anatoly Burakov
Rybak Signed-off-by: Anatoly Burakov --- drivers/net/i40e/base/i40e_common.c | 32 - 1 file changed, 32 deletions(-) diff --git a/drivers/net/i40e/base/i40e_common.c b/drivers/net/i40e/base/i40e_common.c index be27cc9d0b..80500697ed 100644 --- a/drivers/net/i40e/base

[PATCH v1 10/30] net/i40e/base: add definitions for rx_err1

2024-09-02 Thread Anatoly Burakov
rx_err1 with one from the base driver stats struct. Signed-off-by: Lukasz Cieplicki Signed-off-by: Anatoly Burakov --- drivers/net/i40e/base/i40e_register.h | 12 drivers/net/i40e/base/i40e_type.h | 1 + drivers/net/i40e/i40e_ethdev.c| 21 +++-- drivers

[PATCH v1 08/30] net/i40e/base: add new device ID to 25G device list

2024-09-02 Thread Anatoly Burakov
From: Przemyslaw Gierszynski Added I40E_DEV_ID_XXV710_N3000 (Device ID 0x0D58) as a 25G device to the i40e_is_25G_device macro. Signed-off-by: Przemyslaw Gierszynski Signed-off-by: Anatoly Burakov --- drivers/net/i40e/base/i40e_devids.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion

[PATCH v1 09/30] net/i40e/base: fix setting MAC type for X722

2024-09-02 Thread Anatoly Burakov
ned-off-by: Anatoly Burakov --- drivers/net/i40e/base/i40e_common.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/i40e/base/i40e_common.c b/drivers/net/i40e/base/i40e_common.c index 451cc2c1c7..be27cc9d0b 100644 --- a/drivers/net/i40e/base/i40e_common.c +++ b/drivers/net

[PATCH v1 07/30] net/i40e/base: add missing define to X710TL device check

2024-09-02 Thread Anatoly Burakov
("net/i40e: add new X722 device") Signed-off-by: Anatoly Burakov --- drivers/net/i40e/base/i40e_devids.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/net/i40e/base/i40e_devids.h b/drivers/net/i40e/base/i40e_devids.h index 11e98f1f28..0a323566d1 100644 --

[PATCH v1 06/30] net/i40e/base: fix misleading debug logs and comments

2024-09-02 Thread Anatoly Burakov
From: Aleksandr Loktionov Both comments and debug logs for i40e_read_nvm_aq refer to writing, when in actuality it's a read function. Fix both comments and debug logs. Signed-off-by: Aleksandr Loktionov Signed-off-by: Anatoly Burakov --- drivers/net/i40e/base/i40e_nvm.c

[PATCH v1 05/30] net/i40e/base: don't set flags in i40e_init_shared_code

2024-09-02 Thread Anatoly Burakov
The functionality to set i40e_hw's flags was moved to its own function in AQ a while ago: commit 37b091c75b13 ("net/i40e/base: extend PHY access AQ command") However, the setting of hw->flags for X722 was not removed, even though it has become unnecessary. Signed-off-b

[PATCH v1 04/30] net/i40e/base: remove unused variables

2024-09-02 Thread Anatoly Burakov
registers that were missed during removal. Signed-off-by: Krzysztof Galazka Signed-off-by: Anatoly Burakov --- drivers/net/i40e/base/i40e_common.c | 5 drivers/net/i40e/base/i40e_register.h | 33 --- drivers/net/i40e/i40e_regs.h | 9 3 files

[PATCH v1 03/30] net/i40e/base: remove non-inclusive language

2024-09-02 Thread Anatoly Burakov
From: Aleksandr Loktionov Replace usages of the term "master" with "primary". Signed-off-by: Aleksandr Loktionov Signed-off-by: Anatoly Burakov --- drivers/net/i40e/base/i40e_common.c | 4 ++-- drivers/net/i40e/base/i40e_status.h | 2 +- 2 files changed, 3 insertions(+),

[PATCH v1 02/30] net/i40e/base: strip all tags from code

2024-09-02 Thread Anatoly Burakov
of it and remove the tags from code. In particular, one of the stripped tags is VF support. This is no longer needed because all VF support is now done through IAVF driver. This results in some VF-related code being removed from i40e. Signed-off-by: Anatoly Burakov --- drivers/net/i40e/base

[PATCH v1 01/30] net/i40e/base: adjust whitespace

2024-09-02 Thread Anatoly Burakov
There are some miscellaneous differences in whitespace between shared code and DPDK snapshot. Adjust whitespace differences to make base code driver updates easier in the future by reducing the diff between the two. Signed-off-by: Anatoly Burakov --- drivers/net/i40e/base/i40e_adminq.c | 7

[PATCH v1 00/30] Update net/i40e base driver

2024-09-02 Thread Anatoly Burakov
Update the i40e base driver to the latest version of the snapshot. Aleksandr Loktionov (3): net/i40e/base: remove non-inclusive language net/i40e/base: fix misleading debug logs and comments net/i40e/base: make semaphore timeout 32-bit Anatoly Burakov (6): net/i40e/base: adjust

[PATCH v1 15/15] net/ixgbe: add PCI IDs for new device variants

2024-08-29 Thread Anatoly Burakov
Include different variants of E610 in the PCI ID table to ensure they are able to be initialized by DPDK driver. Fixes: 316637762a5f ("net/ixgbe/base: enable E610 device") Signed-off-by: Anatoly Burakov --- drivers/net/ixgbe/ixgbe_ethdev.c | 5 + 1 file changed, 5 insertions(+)

[PATCH v1 14/15] net/ixgbe/base: correct NVM access type for EEPROM writes on E610

2024-08-29 Thread Anatoly Burakov
access before attempting to write to the EEPROM, aligning with the intended operation. Signed-off-by: Przemyslaw Gierszynski Signed-off-by: Anatoly Burakov --- drivers/net/ixgbe/base/ixgbe_e610.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/ixgbe/base/ixgbe_e610

[PATCH v1 13/15] net/ixgbe/base: fix mailbox ACK handling

2024-08-29 Thread Anatoly Burakov
From: NorbertX Ciosek Check if CTS bit is set in the mailbox message before waiting for ACK. Otherwise ACK will never be received causing the function to timeout. Add a note for ixgbe_write_mbx that it should be called while holding a lock. Signed-off-by: NorbertX Ciosek Signed-off-by: Anatoly

[PATCH v1 12/15] net/ixgbe/base: disable thermal sensor ops for E610

2024-08-29 Thread Anatoly Burakov
ff-by: Andrzej Wilczynski Co-authored-by: RemigiuszX Konca Signed-off-by: Anatoly Burakov --- drivers/net/ixgbe/base/ixgbe_e610.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/net/ixgbe/base/ixgbe_e610.c b/drivers/net/ixgbe/base/ixgbe_e610.c index 7ea495db97..ab02b11d6a 100644

[PATCH v1 11/15] net/ixgbe/base: remove FW API version check

2024-08-29 Thread Anatoly Burakov
From: Krzysztof Galazka Only certain variants of drivers rely on FW API version check in shared code. Other drivers implement their own logic due to differences in requirements. DPDK does not require the FW API check. Signed-off-by: Krzysztof Galazka Signed-off-by: Anatoly Burakov

[PATCH v1 10/15] net/ixgbe/base: handle 5G link speed for E610

2024-08-29 Thread Anatoly Burakov
From: Piotr Kwapulinski When detecting the 5G link speed take into account the E610 VF MAC type in ixgbe_check_mac_link_vf(). Signed-off-by: Piotr Kwapulinski Signed-off-by: Anatoly Burakov --- drivers/net/ixgbe/base/ixgbe_vf.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff

[PATCH v1 09/15] net/ixgbe/base: FW API version update

2024-08-29 Thread Anatoly Burakov
From: Pawel Malinowski Update FW API version to 1.7. Signed-off-by: Pawel Malinowski Signed-off-by: Anatoly Burakov --- drivers/net/ixgbe/base/ixgbe_type_e610.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/ixgbe/base/ixgbe_type_e610.h b/drivers/net/ixgbe

[PATCH v1 08/15] net/ixgbe/base: fix speed autonegotiation on E610

2024-08-29 Thread Anatoly Burakov
them. Signed-off-by: Krzysztof Galazka Signed-off-by: Anatoly Burakov --- drivers/net/ixgbe/base/ixgbe_e610.c | 16 +--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/drivers/net/ixgbe/base/ixgbe_e610.c b/drivers/net/ixgbe/base/ixgbe_e610.c index b9b1ba32c3

[PATCH v1 07/15] net/ixgbe/base: fix media type handling for E610

2024-08-29 Thread Anatoly Burakov
From: Krzysztof Galazka Media type information should not be updated by ixgbe_aci_get_link_info function because it will be incorrectly set as unknown when link is down. Do it only in ixgbe_get_media_type_E610. Signed-off-by: Krzysztof Galazka Signed-off-by: Anatoly Burakov --- drivers/net

[PATCH v1 06/15] net/ixgbe/base: fix unchecked return value

2024-08-29 Thread Anatoly Burakov
From: Barbara Skobiej There was unchecked return value in the ixgbe_stop_mac_link_on_d3_82599 function. Added checking of return value from the called function ixgbe_read_eeprom. Signed-off-by: Barbara Skobiej Signed-off-by: Anatoly Burakov --- drivers/net/ixgbe/base/ixgbe_82599.c | 8

[PATCH v1 05/15] net/ixgbe/base: add E610 VF HV macro

2024-08-29 Thread Anatoly Burakov
From: Jedrzej Jagielski At this point there is no macro specific for E610 VF HV. Add it to ixgbe_type.h Signed-off-by: Jedrzej Jagielski Signed-off-by: Anatoly Burakov --- drivers/net/ixgbe/base/ixgbe_type.h | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/ixgbe/base

[PATCH v1 04/15] net/ixgbe/base: add missing legacy mailbox API

2024-08-29 Thread Anatoly Burakov
;) Signed-off-by: Anatoly Burakov --- drivers/net/ixgbe/base/ixgbe_mbx.c | 44 ++ drivers/net/ixgbe/base/ixgbe_mbx.h | 1 + 2 files changed, 45 insertions(+) diff --git a/drivers/net/ixgbe/base/ixgbe_mbx.c b/drivers/net/ixgbe/base/ixgbe_mbx.c index 444a0d339d..2365926

[PATCH v1 03/15] net/ixgbe/base: add missing E610 definitions

2024-08-29 Thread Anatoly Burakov
When adding support for E610 bringup, some definitions and code paths were accidentally omitted due to the way the shared driver snapshot was created. Add missing definitions and code paths. Fixes: 316637762a5f ("net/ixgbe/base: enable E610 device") Signed-off-by: Anatoly Burakov --

[PATCH v1 02/15] net/ixgbe/base: add missing ACI definitions

2024-08-29 Thread Anatoly Burakov
"net/ixgbe/base: detect E610 device capabilities") Signed-off-by: Anatoly Burakov --- drivers/net/ixgbe/base/ixgbe_e610.c | 49 drivers/net/ixgbe/base/ixgbe_type_e610.h | 4 ++ 2 files changed, 53 insertions(+) diff --git a/drivers/net/ixgbe/base/ixgbe_e

[PATCH v1 01/15] net/ixgbe/base: remove minsrevs code from DPDK

2024-08-29 Thread Anatoly Burakov
river code snapshot was generated. Remove this code from DPDK driver. Fixes: add44414762c ("net/ixgbe/base: add E610 NVM-related operations") Signed-off-by: Anatoly Burakov --- drivers/net/ixgbe/base/ixgbe_e610.c | 54 - drivers/net/ixgbe/base/ixgbe_e610.h |

[PATCH v1 3/3] fbarray: rework find_prev_n to flatten the loop

2024-08-23 Thread Anatoly Burakov
stead replacing it with state machine-like behavior. This makes the code simpler to reason about. Signed-off-by: Anatoly Burakov --- lib/eal/common/eal_common_fbarray.c | 223 +--- 1 file changed, 101 insertions(+), 122 deletions(-) diff --git a/lib/eal/c

[PATCH v1 2/3] fbarray: rework find_next_n to flatten the loop

2024-08-23 Thread Anatoly Burakov
stead replacing it with state machine-like behavior. This makes the code simpler to reason about. Signed-off-by: Anatoly Burakov --- lib/eal/common/eal_common_fbarray.c | 195 +--- 1 file changed, 93 insertions(+), 102 deletions(-) diff --git a/lib/eal/common/eal_common_fbarray

[PATCH v1 1/3] fbarray: rename tests to be more meaningful

2024-08-23 Thread Anatoly Burakov
details. Also, add more tests that fill up exactly one mask, with and without neighbouring set bits. Signed-off-by: Anatoly Burakov --- app/test/test_fbarray.c | 99 - 1 file changed, 67 insertions(+), 32 deletions(-) diff --git a/app/test/test_fbarray.c

[PATCH v6 4/4] usertools/dpdk-devbind: print NUMA node

2024-08-22 Thread Anatoly Burakov
Currently, devbind does not print out any NUMA information, which makes figuring out which NUMA node device belongs to not trivial. Add printouts for NUMA information if NUMA support is enabled on the system. Signed-off-by: Anatoly Burakov Acked-by: Robin Jarry --- Notes: v1 ->

[PATCH v6 3/4] usertools/dpdk-hugepages.py: update coding style

2024-08-22 Thread Anatoly Burakov
huge page reservation status output by NUMA node Signed-off-by: Anatoly Burakov Acked-by: Stephen Hemminger Acked-by: Robin Jarry --- Notes: v4 -> v5: - Format with Ruff on default settings - Replaced all instances of raw path strings with os.path.join v3 -> v4: -

[PATCH v6 1/4] usertools/cpu_layout: update coding style

2024-08-22 Thread Anatoly Burakov
Update coding style: - make it PEP-484 compliant - format code with Ruff - address all mypy etc. warnings - use f-strings in place of old-style string interpolation - refactor printing to make the code more readable - read valid CPU ID's from "online" sysfs node Signed-off-by:

[PATCH v6 2/4] usertools/cpu_layout: print out NUMA nodes

2024-08-22 Thread Anatoly Burakov
ff-by: Anatoly Burakov --- Notes: v5 -> v6: - Track NUMA changes per socket to avoid issues with missing cores v2 -> v3: - Sort imports alphabetically usertools/cpu_layout.py | 35 ++- 1 file changed, 30 insertions(+), 5 deletions(-) d

[PATCH v5 4/4] usertools/dpdk-devbind: print NUMA node

2024-08-21 Thread Anatoly Burakov
Currently, devbind does not print out any NUMA information, which makes figuring out which NUMA node device belongs to not trivial. Add printouts for NUMA information if NUMA support is enabled on the system. Signed-off-by: Anatoly Burakov Acked-by: Robin Jarry --- Notes: v1 ->

[PATCH v5 3/4] usertools/dpdk-hugepages.py: update coding style

2024-08-21 Thread Anatoly Burakov
huge page reservation status output by NUMA node Signed-off-by: Anatoly Burakov Acked-by: Stephen Hemminger --- Notes: v4 -> v5: - Format with Ruff on default settings - Replaced all instances of raw path strings with os.path.join v3 -> v4: - Format code with Ruff

[PATCH v5 2/4] usertools/cpu_layout: print out NUMA nodes

2024-08-21 Thread Anatoly Burakov
ff-by: Anatoly Burakov --- Notes: v2 -> v3: - Sort imports alphabetically usertools/cpu_layout.py | 36 +++- 1 file changed, 31 insertions(+), 5 deletions(-) diff --git a/usertools/cpu_layout.py b/usertools/cpu_layout.py index e133fb8ad3..976be1f8b2 1007

[PATCH v5 1/4] usertools/cpu_layout: update coding style

2024-08-21 Thread Anatoly Burakov
Update coding style: - make it PEP-484 compliant - format code with Ruff - address all mypy etc. warnings - use f-strings in place of old-style string interpolation - refactor printing to make the code more readable - read valid CPU ID's from "online" sysfs node Signed-off-by:

[PATCH v4 1/4] usertools/cpu_layout: update coding style

2024-08-21 Thread Anatoly Burakov
Update coding style: - make it PEP-484 compliant - address all flake8, mypy etc. warnings - use f-strings in place of old-style string interpolation - refactor printing to make the code more readable - read valid CPU ID's from "online" sysfs node Signed-off-by: Anatoly Bura

[PATCH v4 4/4] usertools/dpdk-devbind: print NUMA node

2024-08-21 Thread Anatoly Burakov
Currently, devbind does not print out any NUMA information, which makes figuring out which NUMA node device belongs to not trivial. Add printouts for NUMA information if NUMA support is enabled on the system. Signed-off-by: Anatoly Burakov Acked-by: Robin Jarry --- Notes: v1 ->

[PATCH v4 3/4] usertools/dpdk-hugepages.py: update coding style

2024-08-21 Thread Anatoly Burakov
output by NUMA node Signed-off-by: Anatoly Burakov Acked-by: Stephen Hemminger --- Notes: v3 -> v4: - Format code with Ruff, line width 79 to avoid flake8 warnings (Flake8 is by default configured with line width 79 on my system) v2 -> v3: - Rewrite of the scr

[PATCH v4 2/4] usertools/cpu_layout: print out NUMA nodes

2024-08-21 Thread Anatoly Burakov
ff-by: Anatoly Burakov --- Notes: v2 -> v3: - Sort imports alphabetically usertools/cpu_layout.py | 36 +++- 1 file changed, 31 insertions(+), 5 deletions(-) diff --git a/usertools/cpu_layout.py b/usertools/cpu_layout.py index 8812ea286b..e4720e27db 1007

[PATCH v3 4/4] usertools/dpdk-devbind: print NUMA node

2024-08-20 Thread Anatoly Burakov
Currently, devbind does not print out any NUMA information, which makes figuring out which NUMA node device belongs to not trivial. Add printouts for NUMA information if NUMA support is enabled on the system. Signed-off-by: Anatoly Burakov Acked-by: Robin Jarry --- Notes: v1 ->

[PATCH v3 3/4] usertools/dpdk-hugepages.py: update coding style

2024-08-20 Thread Anatoly Burakov
- Sort output by NUMA node Signed-off-by: Anatoly Burakov --- Notes: v1 -> v2: - Added commit that sorted output by NUMA node v2 -> v3: - Rewrite of the script as suggested by reviewers usertools/dpdk-hugepages.py | 456 +--- 1 file change

[PATCH v3 2/4] usertools/cpu_layout: print out NUMA nodes

2024-08-20 Thread Anatoly Burakov
ff-by: Anatoly Burakov --- Notes: v2 -> v3: - Sort imports alphabetically usertools/cpu_layout.py | 36 +++- 1 file changed, 31 insertions(+), 5 deletions(-) diff --git a/usertools/cpu_layout.py b/usertools/cpu_layout.py index 1c255ff1a1..78b119d729 1007

[PATCH v3 1/4] usertools/cpu_layout: update coding style

2024-08-20 Thread Anatoly Burakov
Update coding style: - make it PEP-484 compliant - address all flake8, mypy etc. warnings - use f-strings in place of old-style string interpolation - refactor printing to make the code more readable - read valid CPU ID's from "online" sysfs node Signed-off-by: Anatoly Bura

[PATCH v2 4/4] usertools/dpdk-devbind: print NUMA node

2024-08-16 Thread Anatoly Burakov
Currently, devbind does not print out any NUMA information, which makes figuring out which NUMA node device belongs to not trivial. Add printouts for NUMA information if NUMA support is enabled on the system. Signed-off-by: Anatoly Burakov --- usertools/dpdk-devbind.py | 27

[PATCH v2 3/4] usertools/dpdk-hugepages.py: sort by NUMA node

2024-08-16 Thread Anatoly Burakov
Currently, the list of per-NUMA node hugepages is displayed in glob order, which can be arbitrary. Fix it to sort the glob order. Signed-off-by: Anatoly Burakov --- usertools/dpdk-hugepages.py | 40 ++--- 1 file changed, 28 insertions(+), 12 deletions(-) diff

[PATCH v2 2/4] usertools/cpu_layout: print out NUMA nodes

2024-08-16 Thread Anatoly Burakov
ff-by: Anatoly Burakov --- usertools/cpu_layout.py | 35 ++- 1 file changed, 30 insertions(+), 5 deletions(-) diff --git a/usertools/cpu_layout.py b/usertools/cpu_layout.py index be86f06938..e43bdbf343 100755 --- a/usertools/cpu_layout.py +++ b/usertools/cpu_layo

[PATCH v2 1/4] usertools/cpu_layout: update coding style

2024-08-16 Thread Anatoly Burakov
Update coding style: - make it PEP-484 compliant - address all flake8, mypy etc. warnings - use f-strings in place of old-style string interpolation - refactor printing to make the code more readable Signed-off-by: Anatoly Burakov --- usertools/cpu_layout.py | 162

[PATCH v1 2/2] usertools/cpu_layout: print out NUMA nodes

2024-08-14 Thread Anatoly Burakov
ff-by: Anatoly Burakov --- usertools/cpu_layout.py | 35 ++- 1 file changed, 30 insertions(+), 5 deletions(-) diff --git a/usertools/cpu_layout.py b/usertools/cpu_layout.py index 843b29a134..be89909464 100755 --- a/usertools/cpu_layout.py +++ b/usertools/cpu_layo

[PATCH v1 1/2] usertools/cpu_layout: update coding style

2024-08-14 Thread Anatoly Burakov
Update coding style: - make it PEP-484 compliant - address all flake8, mypy etc. warnings - use f-strings in place of old-style string interpolation - refactor printing to make the code more readable Signed-off-by: Anatoly Burakov --- usertools/cpu_layout.py | 162

[RFC PATCH v3 1/1] buildtools: add vscode configuration generator

2024-07-31 Thread Anatoly Burakov
Multiple, as well as out-of-source-tree, build directories are supported, and the script will generate separate configuration items for each build directory created by user, tagging them for convenience. Signed-off-by: Anatoly Burakov --- Notes: RFCv3 -> RFCv2: - Following feedback f

[RFC PATCH v3 0/1] Add Visual Studio Code configuration script

2024-07-31 Thread Anatoly Burakov
isualstudio.com/docs/remote/ssh Anatoly Burakov (1): buildtools: add vscode configuration generator app/meson.build | 12 +- buildtools/gen-vscode-conf.py | 442 ++ buildtools/meson.build| 5 + examples/meson.build | 13

[RFC PATCH v2 1/1] devtools: add vscode configuration generator

2024-07-29 Thread Anatoly Burakov
configuration supplied from command-line arguments. Signed-off-by: Anatoly Burakov --- Notes: RFCv1 -> RFCv2: - No longer disable apps and drivers if nothing was specified via command line or TUI, and warn user about things being built by default - Generate app lau

[RFC PATCH v2 0/1] Add Visual Studio Code configuration script

2024-07-29 Thread Anatoly Burakov
d apps/examples/drivers. Thus, we address the "simple" usecase of "let's build everything by default", we handle some common use cases smarter than we otherwise would have, and we allow user to be as in-depth as they want by allowing to specify explicit meson command stri

[RFC PATCH v1 1/1] devtools: add vscode configuration generator

2024-07-26 Thread Anatoly Burakov
configuration supplied from command-line arguments. Signed-off-by: Anatoly Burakov --- devtools/gen-vscode-config.py | 640 ++ 1 file changed, 640 insertions(+) create mode 100755 devtools/gen-vscode-config.py diff --git a/devtools/gen-vscode-config.py b/devtools/gen

[RFC PATCH v1 0/1] Add Visual Studio Code configuration script

2024-07-26 Thread Anatoly Burakov
I've never needed this functionality. Please feel free to make any suggestions! Anatoly Burakov (1): devtools: add vscode configuration generator devtools/gen-vscode-config.py | 640 ++ 1 file changed, 640 insertions(+) create mode 100755 devtools/gen-vscode-config.py -- 2.43.5

[PATCH v1 1/1] net/ice: fix E830 PTP phy model

2024-07-23 Thread Anatoly Burakov
") Signed-off-by: Anatoly Burakov --- drivers/net/ice/ice_ethdev.c | 6 ++ 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/drivers/net/ice/ice_ethdev.c b/drivers/net/ice/ice_ethdev.c index 29509b4329..304f959b7e 100644 --- a/drivers/net/ice/ice_ethdev.c +++ b/drivers/net/i

  1   2   3   4   5   6   7   8   9   10   >