Re: [PATCH v1 0/4] net/ntnic: implement start, stop and deferred start for Rx/Tx queues

2025-07-01 Thread Serhii Iliushyk
Thanks for noticing it. We will take it into account and address the issue. From: Stephen Hemminger Sent: 29 June 2025 01:20 To: Oleksandr Kolomeiets Cc: dev@dpdk.org ; Mykola Kostenok ; Serhii Iliushyk ; Christian Koue Muf Subject: Re: [PATCH v1 0/4] net/ntnic

[PATCH v2 3/3] net/ntnic: unmap DMA during queue release

2025-07-01 Thread Serhii Iliushyk
From: Oleksandr Kolomeiets Perform unmapping in a default container, which is used by queues. Handle multiple mappings when IOMMU is unoptimized. Fixes: c1c139535591 ("net/ntnic: add VFIO module") Signed-off-by: Oleksandr Kolomeiets --- drivers/net/ntnic/include/ntos_drv.h | 1 + drivers/net

[PATCH v2 2/3] net/ntnic: implement deferred start for Rx/Tx queues

2025-07-01 Thread Serhii Iliushyk
From: Oleksandr Kolomeiets Handle rx_deferred_start and tx_deferred_start flags during configuration done in rx_queue_setup and tx_queue_setup, so that marked queues do not start with dev_start. Signed-off-by: Oleksandr Kolomeiets --- drivers/net/ntnic/dbsconfig/ntnic_dbsconfig.c | 46

[PATCH v2 1/3] net/ntnic: implement start/stop for Rx/Tx queues

2025-07-01 Thread Serhii Iliushyk
From: Oleksandr Kolomeiets The following functions exported by the driver were stubs which merely changed the status flags: * rx_queue_start * rx_queue_stop * tx_queue_start * tx_queue_stop Proper implementation was added to control queues's state. Signed-off-by: Oleksan

[PATCH v2 0/3] net/ntnic: implement start, stop and deferred start for Rx/Tx queues

2025-07-01 Thread Serhii Iliushyk
This patchset includes: * feature start/stop queues on HW layer. * feature deferred start for queues. * Improvement for memory mappings when IOMMU is unoptimized. v2 removes unnecessary log and adds fixed tag to the commit message. Oleksandr Kolomeiets (3): net/ntnic: implement start/stop

Re: [PATCH v1 00/32] add new adapter NT400D13

2025-04-11 Thread Serhii Iliushyk
e; we will gladly discuss them. Thanks, Serhii From: Stephen Hemminger Sent: 22 February 2025 23:41 To: Serhii Iliushyk Cc: dev@dpdk.org ; Mykola Kostenok ; Christian Koue Muf Subject: Re: [PATCH v1 00/32] add new adapter NT400D13 On Thu, 20 Feb 2025 23:03:24 +0

[PATCH v2] net/ntnic: fix incorrect initializations

2025-03-14 Thread Serhii Iliushyk
Compiling without enabled RTE_ASSERT leads to an error during initialization Fix incorrect assert conditions Fixes: ff04525d90d3 ("net/ntnic: replace assert with RTE assert") Signed-off-by: Serhii Iliushyk --- v2 * Remove ifdef wrapper --- drivers/net/ntnic/adapter/nt4ga_adapter.c

[PATCH v2] net/ntnic: fix incorrect initializations

2025-03-14 Thread Serhii Iliushyk
Compiling without enabled RTE_ASSERT leads to an error during initialization Fix incorrect assert conditions Fixes: ff04525d90d3 ("net/ntnic: replace assert with RTE assert") Signed-off-by: Serhii Iliushyk --- v2 * Remove ifdef wrapper --- drivers/net/ntnic/adapter/nt4ga_adapter.c

[PATCH v1] net/ntnic: fix incorrect initializations

2025-03-13 Thread Serhii Iliushyk
Compiling without enabled RTE_ASSERT leads to an error during initialization Fix incorrect assert conditions Fixes: ff04525d90d3 ("net/ntnic: replace assert with RTE assert") Signed-off-by: Serhii Iliushyk --- drivers/net/ntnic/adapter/nt4ga_adapter.c | 8 +--- drivers

[PATCH v1] net/ntnic: fix incorrect initializations

2025-03-13 Thread Serhii Iliushyk
Compiling without enabled RTE_ASSERT leads to an error during initialization Fix incorrect assert conditions Fixes: ff04525d90d3 ("net/ntnic: replace assert with RTE assert") Signed-off-by: Serhii Iliushyk --- drivers/net/ntnic/adapter/nt4ga_adapter.c | 8 +--- drivers

[PATCH v1 4/5] net/ntnic: check result of malloc

2025-03-07 Thread Serhii Iliushyk
Check return value from the malloc code Signed-off-by: Serhii Iliushyk --- drivers/net/ntnic/dbsconfig/ntnic_dbsconfig.c | 10 ++ drivers/net/ntnic/nthw/nthw_rac.c | 5 - 2 files changed, 10 insertions(+), 5 deletions(-) diff --git a/drivers/net/ntnic/dbsconfig

[PATCH v1 5/5] net/ntnic: add nthw prefix function names

2025-03-07 Thread Serhii Iliushyk
Add nthw prefix to functions with abstract names to avoid exposing global symbols Signed-off-by: Serhii Iliushyk --- drivers/net/ntnic/adapter/nt4ga_adapter.c | 6 +- .../net/ntnic/adapter/nt4ga_stat/nt4ga_stat.c | 6 +- drivers/net/ntnic/dbsconfig/ntnic_dbsconfig.c | 32 +-- drivers

[PATCH v1 3/5] net/ntnic: replace assert with RTE assert

2025-03-07 Thread Serhii Iliushyk
Use RTE_ASSERT instead of direct calling asserts Signed-off-by: Serhii Iliushyk --- drivers/net/ntnic/adapter/nt4ga_adapter.c | 14 ++- drivers/net/ntnic/dbsconfig/ntnic_dbsconfig.c | 6 +- drivers/net/ntnic/include/flow_api.h | 2 +- .../link_mgmt/link_100g/nt4ga_link_100g.c

[PATCH v1 0/5] bugfixes and cleanup

2025-03-07 Thread Serhii Iliushyk
This patchset contains bugfixes and cleanup for the ntnic PMD * add SPDX tag * rename clock registers file * replace assert with RTE assert * check result of malloc * add 'nthw' prefix function names Serhii Iliushyk (5): net/ntnic: add SPDX tag net/ntnic: rename clock regi

[PATCH v1 1/5] net/ntnic: add SPDX tag

2025-03-07 Thread Serhii Iliushyk
Add missed SPDX tag Signed-off-by: Serhii Iliushyk --- .../include/NT400D13_U62_Si5332-GM2-RevD-1_V5-Registers.h| 5 + 1 file changed, 5 insertions(+) diff --git a/drivers/net/ntnic/nthw/core/include/NT400D13_U62_Si5332-GM2-RevD-1_V5-Registers.h b/drivers/net/ntnic/nthw/core/include

[PATCH v1 2/5] net/ntnic: rename clock registers file

2025-03-07 Thread Serhii Iliushyk
Rename this files to align the file naming Signed-off-by: Serhii Iliushyk --- ...egisters.h => nt400d13_u62_si5332_gm2_revd_1_v5_registers.h} | 0 ...0_v5-Registers.h => nt200a02_u23_si5340_adr0_v5_registers.h} | 0 .../ntnic/nthw/core/nt200a0x/clock_profiles/nthw_fpga_clk9563.c | 2 +- d

Re: [PATCH v1 20/32] net/ntnic: add clock init

2025-03-07 Thread Serhii Iliushyk
On 05.03.2025, 19:03, "David Marchand" wrote: On Thu, Feb 20, 2025 at 11:06 PM Serhii Iliushyk wrote: > diff --git > a/drivers/net/ntnic/nthw/core/include/NT400D13_U62_Si5332-GM2-RevD-1_V5-Registers.h > > b/drivers/net/ntnic/nthw/core/include/NT400D13_U62_Si5332-GM2

[PATCH v1 20/32] net/ntnic: add clock init

2025-02-20 Thread Serhii Iliushyk
Add initialization for the clock subsystem Signed-off-by: Serhii Iliushyk --- ...00D13_U62_Si5332-GM2-RevD-1_V5-Registers.h | 425 ++ .../net/ntnic/nthw/core/include/nthw_i2cm.h | 1 + .../nthw/core/include/nthw_pcm_nt400dxx.h | 14 + .../nthw/core/include

[PATCH v1 31/32] net/ntnic: init IGAM and config PLL for FPGA

2025-02-20 Thread Serhii Iliushyk
From: Danylo Vodopianov - Initialize IGAM module and check for its presence. - Enable system PLL using IGAM and check for PLL lock status. - Reset and configure TS PLL and check for lock status. - Force HIF soft reset and de-assert platform reset. - Enable RAB1 and RAB2 and perform RAB initializa

[PATCH v1 26/32] net/ntnic: add i2cm init

2025-02-20 Thread Serhii Iliushyk
From: Danylo Vodopianov Create and initialize I2C for FPGA. Signed-off-by: Danylo Vodopianov --- .../net/ntnic/nthw/core/include/nthw_i2cm.h | 2 + .../nt400dxx/reset/nthw_fpga_rst_nt400dxx.c | 7 ++ drivers/net/ntnic/nthw/core/nthw_i2cm.c | 82 +++ 3 files changed,

[PATCH v1 09/32] net/ntnic: add nim low power API

2025-02-20 Thread Serhii Iliushyk
From: Danylo Vodopianov Add NIM reset and low power functions with presence check - Implement nim_set_reset function to handle NIM reset. - Implement set_nim_low_power function to manage NIM power state. - Add code to check NIM presence before performing reset. Signed-off-by: Danylo Vodopianov

[PATCH v1 06/32] net/ntnic: add line loopback init

2025-02-20 Thread Serhii Iliushyk
From: Danylo Vodopianov Implement PHY host loopback configuration for Agilex FPGA Signed-off-by: Danylo Vodopianov --- .../link_agx_100g/nt4ga_agx_link_100g.c | 116 ++ drivers/net/ntnic/meson.build | 1 + drivers/net/ntnic/nim/i2c_nim.c |

[PATCH v1 32/32] net/ntnic: revert untrusted loop bound

2025-02-20 Thread Serhii Iliushyk
The changes for untrusted loop bound breaks VLAN processing This reverts commit 36cd2cb0eea49813dd59ee1df2eb592e8ae5b6b4. Signed-off-by: Serhii Iliushyk --- drivers/net/ntnic/ntnic_filter/ntnic_filter.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/ntnic

[PATCH v1 27/32] net/ntnic: add pca init

2025-02-20 Thread Serhii Iliushyk
From: Danylo Vodopianov Add initialization for I2C mux and LED driver. Signed-off-by: Danylo Vodopianov --- .../ntnic/nthw/core/include/nthw_pca9532.h| 3 +++ .../nthw/core/include/nthw_si5332_si5156.h| 3 +++ .../nt400dxx/reset/nthw_fpga_rst_nt400dxx.c | 23 +++ dr

[PATCH v1 29/32] net/ntnic: add reset PHY init

2025-02-20 Thread Serhii Iliushyk
From: Danylo Vodopianov Add initialization and logging for Phy Tile module. Signed-off-by: Danylo Vodopianov --- .../ntnic/nthw/core/include/nthw_phy_tile.h | 39 ++ .../nt400dxx/reset/nthw_fpga_rst_nt400dxx.c | 16 + drivers/net/ntnic/nthw/core/nthw_phy_tile.c | 598 ++

[PATCH v1 30/32] net/ntnic: add igam module init

2025-02-20 Thread Serhii Iliushyk
From: Danylo Vodopianov Create and initialize IGAM module. Signed-off-by: Danylo Vodopianov --- drivers/net/ntnic/meson.build | 1 + .../net/ntnic/nthw/core/include/nthw_igam.h | 37 +++ .../nt400dxx/reset/nthw_fpga_rst_nt400dxx.c | 4 ++ drivers/net/ntnic/nthw/co

[PATCH v1 28/32] net/ntnic: add pcal init

2025-02-20 Thread Serhii Iliushyk
From: Danylo Vodopianov Add initialization for I/O expanders and configure TS settings. Signed-off-by: Danylo Vodopianov --- .../ntnic/nthw/core/include/nthw_pcal6416a.h | 3 + .../nt400dxx/reset/nthw_fpga_rst_nt400dxx.c | 69 +++ drivers/net/ntnic/nthw/core/nthw_pcal6416a.

[PATCH v1 24/32] net/ntnic: add nt400d13 PRM module reset

2025-02-20 Thread Serhii Iliushyk
From: Danylo Vodopianov Reset platform and peripherals for PRM initialization. Signed-off-by: Danylo Vodopianov --- .../net/ntnic/nthw/core/include/nthw_prm_nt400dxx.h | 2 ++ .../core/nt400dxx/reset/nthw_fpga_rst_nt400dxx.c| 13 + drivers/net/ntnic/nthw/core/nthw_prm_nt400dxx

[PATCH v1 25/32] net/ntnic: add SPI v3 support for FPGA

2025-02-20 Thread Serhii Iliushyk
From: Danylo Vodopianov - Implement nthw_spi_v3 module with initialization, transfer, and utility functions. - Add nthw_spim and nthw_spis modules for SPI primary and secondary interfaces. - Include SPI v3 header files and update meson build configuration. - Implement AVR probe function to retrie

[PATCH v1 21/32] net/ntnic: add nt400d13 pcm init

2025-02-20 Thread Serhii Iliushyk
From: Danylo Vodopianov Initialize and create PCM for FPGA and HIF modules Signed-off-by: Danylo Vodopianov --- drivers/net/ntnic/meson.build | 1 + .../nthw/core/include/nthw_pcm_nt400dxx.h | 24 +++- .../nt400dxx/reset/nthw_fpga_rst_nt400dxx.c | 18 ++ .../net/

[PATCH v1 19/32] net/ntnic: add PHY ftile reset

2025-02-20 Thread Serhii Iliushyk
Add reset functions and reset procedure for module PHY FTILE Signed-off-by: Serhii Iliushyk --- .../ntnic/nthw/core/include/nthw_phy_tile.h | 12 ++ .../core/nt400dxx/reset/nthw_fpga_rst9574.c | 161 ++ drivers/net/ntnic/nthw/core/nthw_phy_tile.c | 38 + 3 files

[PATCH v1 23/32] net/ntnic: add nt400d13 PRM module init

2025-02-20 Thread Serhii Iliushyk
From: Danylo Vodopianov Initialize RAB0 and create PRM for FPGA. Signed-off-by: Danylo Vodopianov --- drivers/net/ntnic/meson.build | 1 + .../nthw/core/include/nthw_prm_nt400dxx.h | 30 + .../nt400dxx/reset/nthw_fpga_rst_nt400dxx.c | 11 + .../net/ntnic/

[PATCH v1 22/32] net/ntnic: add HIF clock test

2025-02-20 Thread Serhii Iliushyk
From: Danylo Vodopianov Add HIF clock test with write/read verification. Signed-off-by: Danylo Vodopianov --- .../net/ntnic/nthw/core/include/nthw_hif.h| 3 + .../nt400dxx/reset/nthw_fpga_rst_nt400dxx.c | 20 + drivers/net/ntnic/nthw/core/nthw_hif.c| 82 +++

[PATCH v1 17/32] net/ntnic: add default reset setting for NT400D13

2025-02-20 Thread Serhii Iliushyk
Add DDR4 reset and calibration completion handling. Signed-off-by: Serhii Iliushyk --- .../core/nt400dxx/reset/nthw_fpga_rst9574.c | 29 ++- 1 file changed, 28 insertions(+), 1 deletion(-) diff --git a/drivers/net/ntnic/nthw/core/nt400dxx/reset/nthw_fpga_rst9574.c b/drivers

[PATCH v1 18/32] net/ntnic: add DDR calibration to reset stage

2025-02-20 Thread Serhii Iliushyk
Add DDR4 reset and calibration functions for FPGA. Signed-off-by: Serhii Iliushyk --- .../core/nt400dxx/reset/nthw_fpga_rst9574.c | 95 +++ 1 file changed, 95 insertions(+) diff --git a/drivers/net/ntnic/nthw/core/nt400dxx/reset/nthw_fpga_rst9574.c b/drivers/net/ntnic/nthw

[PATCH v1 13/32] net/ntnic: add minimal initialization new NIC NT400D13

2025-02-20 Thread Serhii Iliushyk
Add function and structures required to init the new NIC NT400D13 Signed-off-by: Serhii Iliushyk --- doc/guides/nics/ntnic.rst | 7 +- doc/guides/rel_notes/release_25_03.rst| 4 drivers/net/ntnic/meson.build | 1 + .../net/ntnic/nthw/core

[PATCH v1 16/32] net/ntnic: add setup for fpga reset

2025-02-20 Thread Serhii Iliushyk
Initialize FPGA reset module and register fields. Signed-off-by: Serhii Iliushyk --- .../core/nt400dxx/reset/nthw_fpga_rst9574.c | 54 +++ 1 file changed, 54 insertions(+) diff --git a/drivers/net/ntnic/nthw/core/nt400dxx/reset/nthw_fpga_rst9574.c b/drivers/net/ntnic/nthw

[PATCH v1 08/32] net/ntnic: add port post init

2025-02-20 Thread Serhii Iliushyk
From: Danylo Vodopianov Configure FEC and TX equalization for 100G NIM on Agilex FPGA Signed-off-by: Danylo Vodopianov --- .../link_agx_100g/nt4ga_agx_link_100g.c | 122 drivers/net/ntnic/nim/i2c_nim.c | 80 + drivers/net/ntnic/nim/i2c_nim.h |

[PATCH v1 14/32] net/ntnic: add minimal reset FPGA

2025-02-20 Thread Serhii Iliushyk
Define and register FPGA reset operations. Signed-off-by: Serhii Iliushyk --- .../include/ntnic_nthw_fpga_rst_nt400dxx.h| 34 +++ drivers/net/ntnic/meson.build | 2 + .../nthw/core/nt400dxx/nthw_fpga_nt400dxx.c | 88 ++- .../core/nt400dxx/reset

[PATCH v1 05/32] net/ntnic: add host loopback init

2025-02-20 Thread Serhii Iliushyk
From: Danylo Vodopianov Implement PHY line loopback configuration for Agilex FPGA Signed-off-by: Danylo Vodopianov --- .../link_agx_100g/nt4ga_agx_link_100g.c | 111 ++ .../ntnic/nthw/core/include/nthw_phy_tile.h | 1 + drivers/net/ntnic/nthw/core/nthw_phy_tile.c |

[PATCH v1 11/32] net/ntnic: add port init to the state machine

2025-02-20 Thread Serhii Iliushyk
From: Danylo Vodopianov Handle NIM module insertion and initialization Signed-off-by: Danylo Vodopianov --- .../link_agx_100g/nt4ga_agx_link_100g.c | 33 +++ 1 file changed, 33 insertions(+) diff --git a/drivers/net/ntnic/link_mgmt/link_agx_100g/nt4ga_agx_link_100g.c b/

[PATCH v1 12/32] net/ntnic: add port disable API

2025-02-20 Thread Serhii Iliushyk
From: Danylo Vodopianov Added logic to check if the administrative port state has changed. Signed-off-by: Danylo Vodopianov --- .../link_agx_100g/nt4ga_agx_link_100g.c | 19 +++ 1 file changed, 19 insertions(+) diff --git a/drivers/net/ntnic/link_mgmt/link_agx_100g/nt4ga

[PATCH v1 10/32] net/ntnic: add link handling API

2025-02-20 Thread Serhii Iliushyk
From: Danylo Vodopianov Add link state management and NIM reset functionality - Implement phy_get_link_state to retrieve PHY link state. - Implement adjust_maturing_delay to adjust link maturing delay. - Implement get/set to operate current link state. Signed-off-by: Danylo Vodopianov --- ...

[PATCH v1 07/32] net/ntnic: add 100 gbps port init

2025-02-20 Thread Serhii Iliushyk
From: Danylo Vodopianov Initialize NIM and 100G port for Agilex FPGA Signed-off-by: Danylo Vodopianov --- .../link_agx_100g/nt4ga_agx_link_100g.c | 143 ++ drivers/net/ntnic/meson.build | 1 + .../net/ntnic/nthw/core/include/nthw_gmf.h| 2 + .../nt

[PATCH v1 03/32] net/ntnic: add rpf and gfg init

2025-02-20 Thread Serhii Iliushyk
From: Danylo Vodopianov RPF and GFG modules initialization were added. Signed-off-by: Danylo Vodopianov --- drivers/net/ntnic/include/nt4ga_link.h| 2 + drivers/net/ntnic/include/nthw_gfg.h | 33 ++ .../link_agx_100g/nt4ga_agx_link_100g.c | 24 ++ drivers/net/ntnic/m

[PATCH v1 02/32] net/ntnic: add link state machine

2025-02-20 Thread Serhii Iliushyk
From: Danylo Vodopianov Minimal 100g agx link state machine implementation was added. Signed-off-by: Danylo Vodopianov --- drivers/net/ntnic/include/nt4ga_link.h| 5 + .../link_agx_100g/nt4ga_agx_link_100g.c | 111 ++ 2 files changed, 116 insertions(+) diff --g

[PATCH v1 04/32] net/ntnic: add agx setup for port

2025-02-20 Thread Serhii Iliushyk
From: Danylo Vodopianov Initialize NIM and PHY settings for Agilex FPGA ports Signed-off-by: Danylo Vodopianov --- drivers/net/ntnic/include/ntnic_nim.h | 5 + .../link_agx_100g/nt4ga_agx_link_100g.c | 86 - drivers/net/ntnic/meson.build | 1 + driver

[PATCH v1 01/32] net/ntnic: add link agx 100g

2025-02-20 Thread Serhii Iliushyk
From: Danylo Vodopianov Minimal implementation for link agx 100g was added. Add support for NT400D13 (Intel Agilex FPGA) link operations. Signed-off-by: Danylo Vodopianov --- drivers/net/ntnic/adapter/nt4ga_adapter.c | 9 .../link_agx_100g/nt4ga_agx_link_100g.c | 42 +++

[PATCH v1 00/32] add new adapter NT400D13

2025-02-20 Thread Serhii Iliushyk
Serhii Iliushyk (9): net/ntnic: add minimal initialization new NIC NT400D13 net/ntnic: add minimal reset FPGA net/ntnic: add FPGA modules and registers net/ntnic: add setup for fpga reset net/ntnic: add default reset setting for NT400D13 net/ntnic: add DDR calibration to reset stage

Re: [PATCH v2 00/34] net/ntnic: bugfixes and refactoring

2025-02-07 Thread Serhii Iliushyk
On Wed, 5 Feb 2025 11:45:09 +0100 Serhii Iliushyk wrote: > This patch set addresses fixing issues in the ntnic PMD driver. > > Changes in this patch: > > The issues detected by the Coverity Scan tool. > The problems that were detected by the internal tests. > Fix for B

[PATCH v2 31/34] net/ntnic: remove shutdown thread

2025-02-05 Thread Serhii Iliushyk
Remove the shutdown thread and SIGINT handling on the level of PMD Signed-off-by: Serhii Iliushyk --- drivers/net/ntnic/ntnic_ethdev.c | 63 1 file changed, 7 insertions(+), 56 deletions(-) diff --git a/drivers/net/ntnic/ntnic_ethdev.c b/drivers/net/ntnic

[PATCH v2 06/34] net/ntnic: fix array index verification

2025-02-05 Thread Serhii Iliushyk
From: Danylo Vodopianov CI found couple coverity problems which were fixed in this commit. CID: 448983 Out-of-bounds write (OVERRUN). These issues were fixed with updating index verification statement. Coverity issue: 448983 Fixes: 96c8249be53e ("net/ntnic: learn flow queue handling") Signed-

[PATCH v2 27/34] net/ntnic: rework age event generation

2025-02-05 Thread Serhii Iliushyk
From: Danylo Vodopianov Add age event generating only for physical ports. Fixes: 4033e0539435 ("net/ntnic: add flow meter") Signed-off-by: Danylo Vodopianov --- .../nthw/flow_api/profile_inline/flow_api_profile_inline.c | 7 +-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git

[PATCH v2 12/34] net/ntnic: fix overflow issue

2025-02-05 Thread Serhii Iliushyk
From: Danylo Vodopianov Fix overflow issue with checking max bit shifting value. Coverity issue: 448921 Fixes: 833962ebb893 ("net/ntnic: add CAT module") Signed-off-by: Danylo Vodopianov --- .../nthw/flow_api/profile_inline/flow_api_profile_inline.c | 2 +- 1 file changed, 1 insertion(+)

[PATCH v2 17/34] net/ntnic: fix var overflow

2025-02-05 Thread Serhii Iliushyk
From: Danylo Vodopianov Casting either buf_size and num_descr to uint64_t before performing the multiplication was done. Coverity issue: 446740 Fixes: 6b0047fadf41 ("net/ntnic: add queue setup operations") Signed-off-by: Danylo Vodopianov --- drivers/net/ntnic/ntnic_ethdev.c | 2 +- 1 file ch

[PATCH v2 02/34] net/ntnic: add thread check return code

2025-02-05 Thread Serhii Iliushyk
From: Danylo Vodopianov CI found couple coverity problems which were fixed in this commit. CID: 448965 Error handling issues (CHECKED_RETURN). Thread return code check was added. Coverity issue: 448965 Fixes: a1ba8c473f5c ("net/ntnic: add statistics poll") Signed-off-by: Danylo Vodopianov --

[PATCH v2 10/34] net/ntnic: fix potentially overflow

2025-02-05 Thread Serhii Iliushyk
From: Danylo Vodopianov Issue with potentially overflow was fixed. CID 448944: Unintentional integer overflow (OVERFLOW_BEFORE_WIDEN) Coverity issue: 448944 Fixes: 339ca124e659 ("net/ntnic: add flow action modify field") Signed-off-by: Danylo Vodopianov --- .../nthw/flow_api/profile_inline/f

[PATCH v2 34/34] net/ntnic: remove tag EXPERIMENTAL

2025-02-05 Thread Serhii Iliushyk
Since nitnic PMD driver for is fully added and verified, the tag EXPERIMENTAL may be removed Signed-off-by: Serhii Iliushyk --- MAINTAINERS | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MAINTAINERS b/MAINTAINERS index b86cdd266b..b04951de85 100644 --- a/MAINTAINERS +++ b

[PATCH v2 30/34] net/ntnic: refactoring of the FPGA initialization

2025-02-05 Thread Serhii Iliushyk
Remove unnecessary checks and logs. Signed-off-by: Serhii Iliushyk --- drivers/net/ntnic/nthw/core/nthw_fpga.c | 12 +--- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/drivers/net/ntnic/nthw/core/nthw_fpga.c b/drivers/net/ntnic/nthw/core/nthw_fpga.c index 88641145ec

[PATCH v2 33/34] net/ntnic: add IFR DROP counter

2025-02-05 Thread Serhii Iliushyk
Support for IP Fragmenter DROP counter to display number of packets dropped due to size larger than MTU. NOTE: Frames are dropped only in case that both IPV4_EN and IPV4_DF_DROP are set to one (resp. their IPV6 counterparts). Signed-off-by: Serhii Iliushyk --- .../net/ntnic/adapter/nt4ga_stat

[PATCH v2 32/34] net/ntnic: add checks for action modify

2025-02-05 Thread Serhii Iliushyk
Following checks were added for `action modify`: * range check to trigger an error in case that value is too large * check for unsupported types of action modify for group 0 Signed-off-by: Serhii Iliushyk --- .../profile_inline/flow_api_profile_inline.c | 89 --- 1 file changed

[PATCH v2 25/34] net/ntnic: refactor RSS implementation

2025-02-05 Thread Serhii Iliushyk
From: Danylo Vodopianov Virtualization backward compatible RSS implementation is no longer needed, thus RSS was refactored as follows: * conversion of RTE_ETH_RSS fields into HSH registers was moved to separate files * profile wrapper for RSS configuration was removed * flow_nic_set_hasher(), t

[PATCH v2 29/34] net/ntnic: extend module mapping

2025-02-05 Thread Serhii Iliushyk
FPGA module mapping(to string) was extended with new fpga's modules. Signed-off-by: Serhii Iliushyk --- .../nthw/supported/nthw_fpga_mod_str_map.c| 24 +++ 1 file changed, 24 insertions(+) diff --git a/drivers/net/ntnic/nthw/supported/nthw_fpga_mod_str_map.c b/driver

[PATCH v2 28/34] net/ntnic: fix group print

2025-02-05 Thread Serhii Iliushyk
From: Danylo Vodopianov Flow dump output was fixed to show original group number for `jumps` stored in action and match sets. Fixes: 6f0fe142caed ("net/ntnic: add flow dump") Signed-off-by: Danylo Vodopianov --- drivers/net/ntnic/include/flow_api_engine.h | 2 ++ drivers/net/ntnic/nthw/flo

[PATCH v2 26/34] net/ntnic: fix age timeout recalculation into fpga unit

2025-02-05 Thread Serhii Iliushyk
From: Danylo Vodopianov The FPGA scrub T parameter shall be encoded timeout using internal unit, which is measured in 2^30 nanoseconds. It is approx 1.074 times longer than age timeout specified in seconds. Internal method hw_mod_flm_inf_sta_data_update_get() was updated to perform conversion bet

[PATCH v2 24/34] net/ntnic: remove unused code

2025-02-05 Thread Serhii Iliushyk
From: Danylo Vodopianov NTNIC currently cupport only 100G link. Signed-off-by: Danylo Vodopianov --- drivers/net/ntnic/adapter/nt4ga_stat/nt4ga_stat.c | 9 - 1 file changed, 9 deletions(-) diff --git a/drivers/net/ntnic/adapter/nt4ga_stat/nt4ga_stat.c b/drivers/net/ntnic/adapter/nt4g

[PATCH v2 23/34] net/ntnic: remove extra check for null

2025-02-05 Thread Serhii Iliushyk
From: Oleksandr Kolomeiets pld_ptr points to mp_port_load's element, which is initialized during driver's probe, otherwise probe fails and xstats_get_by_id is not called. Coverity issue: 448945 Fixes: cf6007eac498 ("net/ntnic: add xstats") Signed-off-by: Oleksandr Kolomeiets --- drivers/net/n

[PATCH v2 22/34] net/ntnic: remove extra address-of operator

2025-02-05 Thread Serhii Iliushyk
From: Oleksandr Kolomeiets Macro DO_COMPARE_INDEXS expects pointer to array. If condition is true, one of array's elements get overwritten. Misinterpreting pointer to pointer as pointer to array may result in out-of-bounds access. Coverity issue: 448966, 448970, 448971, 448972 Fixes: 6e8b7f11205

[PATCH v2 20/34] net/ntnic: fix array verification

2025-02-05 Thread Serhii Iliushyk
From: Danylo Vodopianov if statement was modify to ensure that word_off doesn't exceed the size of the array Coverity issue: 448958 Fixes: 7fa0bf29e667 ("net/ntnic: add hash module") Signed-off-by: Danylo Vodopianov --- drivers/net/ntnic/nthw/flow_api/hw_mod/hw_mod_hsh.c | 2 +- 1 file change

[PATCH v2 18/34] net/ntnic: remove unused code

2025-02-05 Thread Serhii Iliushyk
From: Danylo Vodopianov Unused code path in the condition irq_vector >= 0 because the condition irq_vector < 0 is already established Coverity issue: 446745 Fixes: 01e34ed9c756 ("net/ntnic: add availability monitor management") Signed-off-by: Danylo Vodopianov --- drivers/net/ntnic/dbsconfig/

[PATCH v2 19/34] net/ntnic: remove convert error func

2025-02-05 Thread Serhii Iliushyk
From: Danylo Vodopianov convert_error func was removed as far as this approach was deprecated. Coverity issue: 448973 Fixes: e526adf1fdef ("net/ntnic: add minimal create/destroy flow operations") Signed-off-by: Danylo Vodopianov --- drivers/net/ntnic/include/create_elements.h | 1 - drive

[PATCH v2 21/34] net/ntnic: fix memory leak

2025-02-05 Thread Serhii Iliushyk
From: Danylo Vodopianov free for kvlist was added before return to avoid memory leak. Coveriry issue: 446751 Fixes: fe91ade9f5db ("net/ntnic: add basic queue operations") Signed-off-by: Danylo Vodopianov --- drivers/net/ntnic/ntnic_ethdev.c | 2 ++ 1 file changed, 2 insertions(+) diff --git

[PATCH v2 16/34] net/ntnic: fix var size

2025-02-05 Thread Serhii Iliushyk
From: Danylo Vodopianov Function operate with uint16_r value, meanwhile return value with uint32_t size. This conversion was aligned to the uint8_t as far as max value of the return value could be equal 16. Coverity issue: 446747 Fixes: 67aee0a69665 ("net/ntnic: add used writer data handling")

[PATCH v2 14/34] net/ntnic: add null checking

2025-02-05 Thread Serhii Iliushyk
From: Danylo Vodopianov Add null checking for fpga var. Coverity issue: 448916 Fixes: 30b2f87ac650 ("net/ntnic: add GMF module") Signed-off-by: Danylo Vodopianov --- drivers/net/ntnic/link_mgmt/link_100g/nt4ga_link_100g.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dri

[PATCH v2 08/34] net/ntnic: add proper var freed

2025-02-05 Thread Serhii Iliushyk
From: Danylo Vodopianov p_fpga_mgr is properly freed when it's no longer needed CID 440546: Resource leak (RESOURCE_LEAK) Fixes: ddf184d0b6c2 ("net/ntnic: add FPGA initialization") Signed-off-by: Danylo Vodopianov --- drivers/net/ntnic/nthw/core/nthw_fpga.c | 2 ++ 1 file changed, 2 insertion

[PATCH v2 11/34] net/ntnic: add null checking

2025-02-05 Thread Serhii Iliushyk
From: Danylo Vodopianov Fix issue with potential rereferencing a pointer that might be NULL p->m_rpp_lr when calling nthw_module_query_register CID 448923: Dereference null return value (NULL_RETURNS) Coverity issue: 448923 Fixes: f543ca6b9ab2 ("net/ntnic: add RPP local retransmit (RPP LR) flo

[PATCH v2 15/34] net/ntnic: move null checking

2025-02-05 Thread Serhii Iliushyk
From: Danylo Vodopianov Move null checking before using Coverity issue: 446759 Fixes: f0fe222ea9cf ("net/ntnic: add releasing virtqueues") Signed-off-by: Danylo Vodopianov --- drivers/net/ntnic/dbsconfig/ntnic_dbsconfig.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a

[PATCH v2 13/34] net/ntnic: fix untrusted loop bound

2025-02-05 Thread Serhii Iliushyk
From: Danylo Vodopianov Replace while with if statement to avoid infinite loop in case ther_type will be modified with extenral source. Coverity issue: 448917 Fixes: c6821abf58e8 ("net/ntnic: add flow items GTP and actions raw encap/decap") Signed-off-by: Danylo Vodopianov --- drivers/net/nt

[PATCH v2 09/34] net/ntnic: remove unused code

2025-02-05 Thread Serhii Iliushyk
From: Danylo Vodopianov Unused code was removed. CID: 448981 Logically dead code (DEADCODE) Coverity issue: 448981 Fixes: e02fdb65c2a8 ("net/ntnic: add flow create/destroy") Signed-off-by: Danylo Vodopianov --- .../flow_api/profile_inline/flow_api_profile_inline.c| 9 ++--- 1 file ch

[PATCH v2 07/34] net/ntnic: add var definition transparently

2025-02-05 Thread Serhii Iliushyk
From: Danylo Vodopianov set eth_base to NULL after freeing to prevent use-after-free CID: 446746 Use after free (USE_AFTER_FREE) Coverity issue: 446746 Fixes: 1d3f62a0c4f1 ("net/ntnic: add base init and deinit of flow API") Signed-off-by: Danylo Vodopianov --- drivers/net/ntnic/nthw/flow_api

[PATCH v2 05/34] net/ntnic: fix realloc memory leak

2025-02-05 Thread Serhii Iliushyk
From: Danylo Vodopianov Issue was fixed with verification in case of the successful memory re-allocation. Coverity issue: 448959 Fixes: 4033e0539435 ("net/ntnic: add flow meter") Signed-off-by: Danylo Vodopianov --- .../profile_inline/flow_api_profile_inline.c | 15 ++- 1 fil

[PATCH v2 04/34] net/ntnic: add array index verification

2025-02-05 Thread Serhii Iliushyk
From: Danylo Vodopianov CI found couple coverity problems which were fixed in this commit. CID: 448983, 448980 Memory - corruptions (OVERRUN) Add check both indices within bounds before calling the macro Coverity issue: 448983 Fixes: 6e8b7f11205f ("net/ntnic: add categorizer (CAT) FPGA module

[PATCH v2 03/34] net/ntnic: add return code handling

2025-02-05 Thread Serhii Iliushyk
From: Danylo Vodopianov CI found couple coverity problems which were fixed in this commit. CID: 448984, 448982, 448975, 448969, 448968, 448967 API usage errors (BAD_COMPARE). Add memcmp return value checking. Coverity issue: 448984 Fixes: 6e8b7f11205f ("net/ntnic: add categorizer (CAT) FPGA m

[PATCH v2 00/34] net/ntnic: bugfixes and refactoring

2025-02-05 Thread Serhii Iliushyk
Kolomeiets (2): net/ntnic: remove extra address-of operator net/ntnic: remove extra check for null Serhii Iliushyk (6): net/ntnic: extend module mapping net/ntnic: refactoring of the FPGA initialization net/ntnic: remove shutdown thread net/ntnic: add checks for action modify net/ntnic

[PATCH v2 01/34] net/ntnic: fix index verification

2025-02-05 Thread Serhii Iliushyk
From: Danylo Vodopianov CI found couple coverity problems which were fixed in this commit. CID: 448974, 448977, 448978 (OVERRUN). These issues were fixed with updating index verification statement. Coverity issue: 448974 Fixes: effa04693274 ("net/ntnic: add statistics") Signed-off-by: Danylo

[PATCH v1 31/31] net/ntnic: remove tag EXPERIMENTAL

2025-01-21 Thread Serhii Iliushyk
Since nitnic PMD driver for is fully added and verified, the tag EXPERIMENTAL may be removed Signed-off-by: Serhii Iliushyk --- MAINTAINERS | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MAINTAINERS b/MAINTAINERS index b86cdd266b..b04951de85 100644 --- a/MAINTAINERS +++ b

[PATCH v1 02/31] net/ntnic: add thread check return code

2025-01-21 Thread Serhii Iliushyk
From: Danylo Vodopianov CI found couple coverity problems which were fixed in this commit. CID: 448965 Error handling issues (CHECKED_RETURN). Thread return code check was added. Coverity issue: 448965 Fixes: a1ba8c473f5c ("net/ntnic: add statistics poll") Signed-off-by: Danylo Vodopianov --

[PATCH v1 07/31] net/ntnic: add var definition transparently

2025-01-21 Thread Serhii Iliushyk
From: Danylo Vodopianov set eth_base to NULL after freeing to prevent use-after-free CID: 446746 Use after free (USE_AFTER_FREE) Coverity issue: 446746 Fixes: 1d3f62a0c4f1 ("net/ntnic: add base init and deinit of flow API") Signed-off-by: Danylo Vodopianov --- drivers/net/ntnic/nthw/flow_api

[PATCH v1 00/31] net/ntnic: bugfixes and refactoring

2025-01-21 Thread Serhii Iliushyk
/ntnic: refactor RSS implementation net/ntnic: fix age timeout recalculation into fpga unit net/ntnic: rework age event generation net/ntnic: fix group print Oleksandr Kolomeiets (2): net/ntnic: remove extra address-of operator net/ntnic: remove extra check for null Serhii Iliushyk (3

[PATCH v1 10/31] net/ntnic: fix potentially overflow

2025-01-21 Thread Serhii Iliushyk
From: Danylo Vodopianov Issue with potentially overflow was fixed. CID 448944: Unintentional integer overflow (OVERFLOW_BEFORE_WIDEN) Coverity issue: 448944 Fixes: 339ca124e659 ("net/ntnic: add flow action modify field") Signed-off-by: Danylo Vodopianov --- .../nthw/flow_api/profile_inline/f

[PATCH v1 27/31] net/ntnic: rework age event generation

2025-01-21 Thread Serhii Iliushyk
From: Danylo Vodopianov Add age event generating only for physical ports. Fixes: 4033e0539435 ("net/ntnic: add flow meter") Signed-off-by: Danylo Vodopianov --- .../nthw/flow_api/profile_inline/flow_api_profile_inline.c | 7 +-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git

[PATCH v1 25/31] net/ntnic: refactor RSS implementation

2025-01-21 Thread Serhii Iliushyk
From: Danylo Vodopianov Virtualization backward compatible RSS implementation is no longer needed, thus RSS was refactored as follows: * conversion of RTE_ETH_RSS fields into HSH registers was moved to separate files * profile wrapper for RSS configuration was removed * flow_nic_set_hasher(), t

[PATCH v1 30/31] net/ntnic: refactoring of the FPGA initialization

2025-01-21 Thread Serhii Iliushyk
Remove unnecessary checks and logs. Signed-off-by: Serhii Iliushyk --- drivers/net/ntnic/nthw/core/nthw_fpga.c | 12 +--- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/drivers/net/ntnic/nthw/core/nthw_fpga.c b/drivers/net/ntnic/nthw/core/nthw_fpga.c index 88641145ec

[PATCH v1 28/31] net/ntnic: fix group print

2025-01-21 Thread Serhii Iliushyk
From: Danylo Vodopianov Flow dump output was fixed to show original group number for `jumps` stored in action and match sets. Fixes: 6f0fe142caed ("net/ntnic: add flow dump") Signed-off-by: Danylo Vodopianov --- drivers/net/ntnic/include/flow_api_engine.h | 2 ++ drivers/net/ntnic/nthw/flo

[PATCH v1 29/31] net/ntnic: extend module mapping

2025-01-21 Thread Serhii Iliushyk
FPGA module mapping(to string) was extended with new fpga's modules. Signed-off-by: Serhii Iliushyk --- .../nthw/supported/nthw_fpga_mod_str_map.c| 24 +++ 1 file changed, 24 insertions(+) diff --git a/drivers/net/ntnic/nthw/supported/nthw_fpga_mod_str_map.c b/driver

[PATCH v1 24/31] net/ntnic: remove unused code

2025-01-21 Thread Serhii Iliushyk
From: Danylo Vodopianov NTNIC currently cupport only 100G link. Signed-off-by: Danylo Vodopianov --- drivers/net/ntnic/adapter/nt4ga_stat/nt4ga_stat.c | 9 - 1 file changed, 9 deletions(-) diff --git a/drivers/net/ntnic/adapter/nt4ga_stat/nt4ga_stat.c b/drivers/net/ntnic/adapter/nt4g

[PATCH v1 22/31] net/ntnic: remove extra address-of operator

2025-01-21 Thread Serhii Iliushyk
From: Oleksandr Kolomeiets Macro DO_COMPARE_INDEXS expects pointer to array. If condition is true, one of array's elements get overwritten. Misinterpreting pointer to pointer as pointer to array may result in out-of-bounds access. Coverity issue: 448966, 448970, 448971, 448972 Fixes: 6e8b7f11205

[PATCH v1 26/31] net/ntnic: fix age timeout recalculation into fpga unit

2025-01-21 Thread Serhii Iliushyk
From: Danylo Vodopianov The FPGA scrub T parameter shall be encoded timeout using internal unit, which is measured in 2^30 nanoseconds. It is approx 1.074 times longer than age timeout specified in seconds. Internal method hw_mod_flm_inf_sta_data_update_get() was updated to perform conversion bet

[PATCH v1 21/31] net/ntnic: fix memory leak

2025-01-21 Thread Serhii Iliushyk
From: Danylo Vodopianov free for kvlist was added before return to avoid memory leak. Coveriry issue: 446751 Fixes: fe91ade9f5db ("net/ntnic: add basic queue operations") Signed-off-by: Danylo Vodopianov --- drivers/net/ntnic/ntnic_ethdev.c | 2 ++ 1 file changed, 2 insertions(+) diff --git

[PATCH v1 23/31] net/ntnic: remove extra check for null

2025-01-21 Thread Serhii Iliushyk
From: Oleksandr Kolomeiets pld_ptr points to mp_port_load's element, which is initialized during driver's probe, otherwise probe fails and xstats_get_by_id is not called. Coverity issue: 448945 Fixes: cf6007eac498 ("net/ntnic: add xstats") Signed-off-by: Oleksandr Kolomeiets --- drivers/net/n

  1   2   3   4   5   6   7   8   9   10   >