Re: [RFC PATCH v3 0/2] dts: add RSS functions and test suite

2025-07-18 Thread Ivan Malov
n the assumption of the test that the GLOBAL 'reta' should be consulted is still odd. It in fact checks where the the packet would have landed were it not for the flow rule to intercept it. Once again, I apologise in case I've got this wrong. Thank you. On Fri, 18 Jul 2025, Ivan Malov w

Re: [RFC PATCH v3 0/2] dts: add RSS functions and test suite

2025-07-18 Thread Ivan Malov
Hi Thomas, On Fri, 18 Jul 2025, Thomas Wilks wrote: Hi all, This is v3 of the RSS test suites which has been rebased onto the latest patches. I’m also requesting comments and some help with an issue where the packet RSS queue and the predicted RSS queue differ when running on ConnectX-6 NICs

Re: Issue with DPDK-Burst Replay – No Frame Transmission Observed Despite Successful Replay

2025-07-18 Thread Ivan Malov
Hi, (please see below) On Fri, 18 Jul 2025, Gokul K R (MS/ETA7-ETAS) wrote: Hi Team, I’m currently working with the dpdk-burst-replay tool and encountered an issue during execution. Below are the details:

Re: [PATCH 0/3] common/sfc_efx/base: fix compiler warnings in X4 netport API

2025-07-11 Thread Ivan Malov
On Fri, 11 Jul 2025, Stephen Hemminger wrote: On Fri, 11 Jul 2025 18:43:46 +0400 Ivan Malov wrote: The 25.07 release has got support for AMD Solarflare X45xx adapters [1]. This series is a follow-up to [1] to fix compiler warnings in the base driver that are seen in Windows driver build

[PATCH 3/3] common/sfc_efx/base: fix compiler warning in PHY link getter

2025-07-11 Thread Ivan Malov
Fixes: 2a5cf77e6de8 ("common/sfc_efx/base: provide PHY link get method on Medford4") Suggested-by: Andy Moreton Signed-off-by: Ivan Malov Reviewed-by: Andy Moreton --- drivers/common/sfc_efx/base/medford4_phy.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/common/sf

[PATCH 2/3] common/sfc_efx/base: fix compiler warnings in PHY link setup

2025-07-11 Thread Ivan Malov
Fixes: 8e79cd30230d ("common/sfc_efx/base: implement PHY link control for Medford4") Suggested-by: Andy Moreton Signed-off-by: Ivan Malov Reviewed-by: Andy Moreton --- drivers/common/sfc_efx/base/efx_np.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/driv

[PATCH 1/3] common/sfc_efx/base: fix compiler warnings in statistic code

2025-07-11 Thread Ivan Malov
Fixes: f2f77453cb9f ("common/sfc_efx/base: fill in software LUT for MAC statistics") Suggested-by: Andy Moreton Signed-off-by: Ivan Malov Reviewed-by: Andy Moreton --- drivers/common/sfc_efx/base/efx_np.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/driv

[PATCH 0/3] common/sfc_efx/base: fix compiler warnings in X4 netport API

2025-07-11 Thread Ivan Malov
The 25.07 release has got support for AMD Solarflare X45xx adapters [1]. This series is a follow-up to [1] to fix compiler warnings in the base driver that are seen in Windows driver build, also based on this driver. [1] https://patches.dpdk.org/project/dpdk/list/?series=35095 Ivan Malov (3

[PATCH v2 13/45] drivers: enable support for AMD Solarflare X4 adapter family

2025-04-23 Thread Ivan Malov
From: Denis Pryazhennikov Enable support for Medford4 (X4) adapters X4522 and X4542. Signed-off-by: Denis Pryazhennikov Reviewed-by: Andy Moreton --- drivers/common/sfc_efx/efsys.h | 4 ++-- drivers/net/sfc/sfc_ethdev.c | 3 +++ 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a

[PATCH v2 07/45] common/sfc_efx/base: add Medford4 support to MAC module

2025-04-23 Thread Ivan Malov
From: Denis Pryazhennikov Use common EF10 method table for that. Signed-off-by: Denis Pryazhennikov Reviewed-by: Andy Moreton --- drivers/common/sfc_efx/base/efx_impl.h | 1 + drivers/common/sfc_efx/base/efx_mac.c | 7 +++ 2 files changed, 8 insertions(+) diff --git a/drivers/common/sfc

[PATCH v2 17/45] common/sfc_efx/base: extend list of supported X4 port modes

2025-04-23 Thread Ivan Malov
From: Denis Pryazhennikov Add X4 port mode that allocates two 10G/25G/50G ports to separate cages. Signed-off-by: Denis Pryazhennikov Reviewed-by: Andy Moreton Reviewed-by: Richard Houldsworth Reviewed-by: Ivan Malov --- drivers/common/sfc_efx/base/ef10_nic.c | 1 + 1 file changed, 1

[PATCH v2 23/45] common/sfc_efx/base: get netport fixed capabilities on probe

2025-04-23 Thread Ivan Malov
These make the basic subset of PHY capabilities known to EFX Signed-off-by: Ivan Malov Reviewed-by: Andy Moreton Reviewed-by: Pieter Jansen Van Vuuren --- drivers/common/sfc_efx/base/efx.h| 21 ++- drivers/common/sfc_efx/base/efx_np.c | 209 +++ 2 files changed

[PATCH v2 15/45] common/sfc_efx/base: add port mode for 8 port hardware

2025-04-23 Thread Ivan Malov
From: Andy Moreton Add support for 8 port mode and adjust the bus bandwidth computation and external port mapping table. Signed-off-by: Andy Moreton Reviewed-by: Ivan Malov --- drivers/common/sfc_efx/base/ef10_nic.c| 20 +++ drivers/common/sfc_efx/base

[PATCH v2 11/45] common/sfc_efx/base: add Medford4 support to Rx module

2025-04-23 Thread Ivan Malov
From: Denis Pryazhennikov Use common EF10 method table for that. Signed-off-by: Denis Pryazhennikov Reviewed-by: Andy Moreton --- drivers/common/sfc_efx/base/efx_rx.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/drivers/common/sfc_efx/base/efx_rx.c b/drivers/common/sfc_efx/base/

[PATCH v2 41/45] common/sfc_efx/base: subscribe to netport link change events

2025-04-23 Thread Ivan Malov
Subscribe to the new link events on netport MCDI attach path. Signed-off-by: Ivan Malov Reviewed-by: Andy Moreton Reviewed-by: Pieter Jansen Van Vuuren --- drivers/common/sfc_efx/base/efx_np.c | 56 1 file changed, 56 insertions(+) diff --git a/drivers/common

[PATCH v2 28/45] common/sfc_efx/base: provide PHY link get method on Medford4

2025-04-23 Thread Ivan Malov
To do so, make use of new netport MCDI supported by Medford4. Signed-off-by: Ivan Malov Reviewed-by: Andy Moreton Reviewed-by: Pieter Jansen Van Vuuren --- drivers/common/sfc_efx/base/ef10_phy.c | 8 ++ drivers/common/sfc_efx/base/efx.h | 4 +- drivers/common/sfc_efx/base

[PATCH v2 36/45] common/sfc_efx/base: correct MAC PDU calculation on Medford4

2025-04-23 Thread Ivan Malov
replacement. The new APIs will either include the said workaround or omit it, depending on whether support for netport MCDI is present. Signed-off-by: Ivan Malov Reviewed-by: Andy Moreton Reviewed-by: Pieter Jansen Van Vuuren --- drivers/common/sfc_efx/base/efx.h | 25

[PATCH v2 10/45] common/sfc_efx/base: add Medford4 support to MCDI module

2025-04-23 Thread Ivan Malov
From: Denis Pryazhennikov Use common EF10 method table for that. Signed-off-by: Denis Pryazhennikov Reviewed-by: Andy Moreton --- drivers/common/sfc_efx/base/efx_mcdi.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/drivers/common/sfc_efx/base/efx_mcdi.c b/drivers/common/sfc_efx/b

[PATCH v2 34/45] common/sfc_efx/base: support MAC statistics on Medford4 NICs

2025-04-23 Thread Ivan Malov
Supply Medford4-specific methods to clear, upload and update MAC statistics, as well as the method to toggle periodic DMA updates. All of these leverage the same netport MCDI command. Signed-off-by: Ivan Malov Reviewed-by: Andy Moreton Reviewed-by: Pieter Jansen Van Vuuren --- drivers/common

[PATCH v2 43/45] common/sfc_efx/base: support controls for netport lane count

2025-04-23 Thread Ivan Malov
On netport MCDI capable adaptors, link modes exported by libefx can be backed by different technologies with different lane counts. Allow the client drivers to get and set the lane count and query possible values. Signed-off-by: Ivan Malov Reviewed-by: Andy Moreton Reviewed-by: Pieter Jansen

[PATCH v2 44/45] net/sfc: add support for control of physical port lane count

2025-04-23 Thread Ivan Malov
Since 24.11, DPDK has supported APIs to control lane count of the physical link. Provide driver-level support for that on adaptors that are netport MCDI capabale (Medford4, for instance). Signed-off-by: Ivan Malov Reviewed-by: Andy Moreton Reviewed-by: Pieter Jansen Van Vuuren --- drivers/net

[PATCH v2 45/45] doc: advertise support for AMD Solarflare X45xx adapters

2025-04-23 Thread Ivan Malov
The two NICs, X4522 and X4542, are based on EF10 architecture. Signed-off-by: Ivan Malov --- doc/guides/nics/sfc_efx.rst| 9 - doc/guides/rel_notes/release_25_07.rst | 4 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/doc/guides/nics/sfc_efx.rst b/doc

[PATCH v2 42/45] net/sfc: offer support for 200G link ability on new adaptors

2025-04-23 Thread Ivan Malov
New adaptors (for instance, Medford4) can support 200G speed. Signed-off-by: Ivan Malov Reviewed-by: Andy Moreton Reviewed-by: Pieter Jansen Van Vuuren --- drivers/net/sfc/sfc.c| 5 - drivers/net/sfc/sfc_ethdev.c | 15 +++ drivers/net/sfc/sfc_port.c | 6 ++ 3

[PATCH v2 39/45] common/sfc_efx/base: add link event processing on new boards

2025-04-23 Thread Ivan Malov
Link change events on netport MCDI capable NICs do not carry any specifics of the new link state. Such need to be queried separately. Add processing of the events, with an indication to the client driver telling it to collect the status itself. Signed-off-by: Ivan Malov Reviewed-by: Andy Moreton

[PATCH v2 38/45] common/sfc_efx/base: ignore legacy link events on new boards

2025-04-23 Thread Ivan Malov
New adaptors (for instance, Medford4) come with netport MCDI and also support new link change events, however, older ones can also be generated. For consistency, ignore legacy events. Signed-off-by: Ivan Malov Reviewed-by: Andy Moreton Reviewed-by: Pieter Jansen Van Vuuren --- drivers/common

[PATCH v2 40/45] net/sfc: query link status on link change events on new NICs

2025-04-23 Thread Ivan Malov
Link events signaled on new adaptors (Medford4 and later) do not carry any specifics, so query the link status separately. Signed-off-by: Ivan Malov Reviewed-by: Andy Moreton Reviewed-by: Pieter Jansen Van Vuuren --- drivers/net/sfc/sfc.h| 2 ++ drivers/net/sfc/sfc_ethdev.c | 2

[PATCH v2 37/45] net/sfc: make use of generic EFX MAC PDU calculation helpers

2025-04-23 Thread Ivan Malov
To make sure that MAC PDU values do not come with legacy bug workaround baked in when running on newer Medford4 NICs, use generic replacement APIs from EFX in place of MAC PDU macros. Signed-off-by: Ivan Malov Reviewed-by: Andy Moreton Reviewed-by: Pieter Jansen Van Vuuren --- drivers/net/sfc

[PATCH v2 35/45] common/sfc_efx/base: implement MAC PDU controls for Medford4

2025-04-23 Thread Ivan Malov
Leverage new netport MCDI to implement support for such APIs. Signed-off-by: Ivan Malov Reviewed-by: Andy Moreton Reviewed-by: Pieter Jansen Van Vuuren --- drivers/common/sfc_efx/base/efx_impl.h | 4 ++ drivers/common/sfc_efx/base/efx_mac.c | 4 +- drivers/common/sfc_efx/base

[PATCH v2 31/45] common/sfc_efx/base: add MAC reconfigure method for Medford4

2025-04-23 Thread Ivan Malov
That leverages MAC control functionality of new netport MCDI. Signed-off-by: Ivan Malov Reviewed-by: Andy Moreton Reviewed-by: Pieter Jansen Van Vuuren --- drivers/common/sfc_efx/base/efx_impl.h | 13 drivers/common/sfc_efx/base/efx_mac.c | 2 +- drivers/common/sfc_efx/base

[PATCH v2 33/45] common/sfc_efx/base: fill in MAC statistics mask on Medford4

2025-04-23 Thread Ivan Malov
Let client drivers know which MAC statistics can be accessed. Signed-off-by: Ivan Malov Reviewed-by: Andy Moreton Reviewed-by: Pieter Jansen Van Vuuren --- drivers/common/sfc_efx/base/efx_mac.c | 2 +- drivers/common/sfc_efx/base/medford4_impl.h | 9 ++ drivers/common/sfc_efx/base

[PATCH v2 32/45] common/sfc_efx/base: fill in software LUT for MAC statistics

2025-04-23 Thread Ivan Malov
To support MAC statistics, it is required to fill in a table which will be used by EFX to get DMA field IDs (offsets into the DMA buffer where MC FW uploads the data) by software IDs. Fill in the lookup table by parsing HW statistic descriptors. Signed-off-by: Ivan Malov Reviewed-by: Andy

[PATCH v2 30/45] common/sfc_efx/base: introduce Medford4 stub for MAC methods

2025-04-23 Thread Ivan Malov
Provide only a small subset of methods for now. Next patches will augment the file with more, based on newer netport MCDI. Signed-off-by: Ivan Malov Reviewed-by: Andy Moreton Reviewed-by: Pieter Jansen Van Vuuren --- drivers/common/sfc_efx/base/efx_mac.c | 32 +++- drivers

[PATCH v2 29/45] common/sfc_efx/base: implement PHY link control for Medford4

2025-04-23 Thread Ivan Malov
Use new MCDI to select loopback, speed, flow control and FEC. Signed-off-by: Ivan Malov Reviewed-by: Andy Moreton Reviewed-by: Pieter Jansen Van Vuuren --- drivers/common/sfc_efx/base/ef10_impl.h | 6 + drivers/common/sfc_efx/base/ef10_phy.c | 2 +- drivers/common/sfc_efx/base

[PATCH v2 25/45] common/sfc_efx/base: fill in loopback modes on netport probe

2025-04-23 Thread Ivan Malov
Indicate support for some of the loopback modes known to EFX. Such have been technology-dependent, but, on netport capable NICs, they are backed by new generic modes, that are tied to the stages in the processing chain where loopback can happen. Signed-off-by: Ivan Malov Reviewed-by: Andy

[PATCH v2 27/45] common/sfc_efx/base: refactor EF10 link mode decoding helper

2025-04-23 Thread Ivan Malov
Future patches will use this change for netport MCDI support. Signed-off-by: Ivan Malov Reviewed-by: Andy Moreton Reviewed-by: Pieter Jansen Van Vuuren --- drivers/common/sfc_efx/base/ef10_impl.h | 13 +++ drivers/common/sfc_efx/base/ef10_phy.c | 31 ++--- 2 files

[PATCH v2 26/45] common/sfc_efx/base: introduce Medford4 stub for PHY methods

2025-04-23 Thread Ivan Malov
Provide only a couple of no-op methods for now. Next patches will augment the file with more, based on newer netport MCDI. Signed-off-by: Ivan Malov Reviewed-by: Andy Moreton Reviewed-by: Pieter Jansen Van Vuuren --- drivers/common/sfc_efx/base/efx_impl.h | 4 +++ drivers/common/sfc_efx

[PATCH v2 24/45] common/sfc_efx/base: decode netport link state on probe path

2025-04-23 Thread Ivan Malov
Retrieved properties form the advertised PHY capability mask. The new code also helps to check support for autonegotiation. Signed-off-by: Ivan Malov Reviewed-by: Andy Moreton Reviewed-by: Pieter Jansen Van Vuuren --- drivers/common/sfc_efx/base/efx_impl.h | 12 + drivers/common/sfc_efx

[PATCH v2 22/45] common/sfc_efx/base: allow for const in MCDI struct accessor

2025-04-23 Thread Ivan Malov
The existing code is fine, however, future patches will need to use this macro on buffers that are passed by callers with const qualifier. With 'cast-qual' enabled, this macro causes compile warnings in such cases. Rework it to allow for const. Signed-off-by: Ivan Malov Reviewed-by: An

[PATCH v2 20/45] common/sfc_efx/base: provide defaults on netport attach path

2025-04-23 Thread Ivan Malov
Fill in some port information, including legacy Siena fields. Signed-off-by: Ivan Malov Reviewed-by: Andy Moreton Reviewed-by: Pieter Jansen Van Vuuren --- drivers/common/sfc_efx/base/efx_np.c | 44 1 file changed, 44 insertions(+) diff --git a/drivers/common

[PATCH v2 21/45] common/sfc_efx/base: obtain assigned netport handle from NIC

2025-04-23 Thread Ivan Malov
Get an 'assigned' netport handle for the current MCDI entity. This handle will be used when sending other netport commands. Signed-off-by: Ivan Malov Reviewed-by: Andy Moreton Reviewed-by: Pieter Jansen Van Vuuren --- drivers/common/sfc_efx/base/efx_impl.h | 4 +++ drivers/comm

[PATCH v2 19/45] common/sfc_efx/base: provide a stub for basic netport attach

2025-04-23 Thread Ivan Malov
New NICs (for instance, Medford4) offer new netport MCDI for managing physical ports, which will supersede the legacy one. Scope out the new interface initialisation on NIC probe path. That will be augmented with the actual code by later patches. Signed-off-by: Ivan Malov Reviewed-by: Andy

[PATCH v2 16/45] common/sfc_efx/base: add new X4 port mode

2025-04-23 Thread Ivan Malov
From: Denis Pryazhennikov Add handling for the port mode in the Medford4 driver logic, enabling support for two single network ports. Signed-off-by: Denis Pryazhennikov Reviewed-by: Andy Moreton Reviewed-by: Richard Houldsworth Reviewed-by: Ivan Malov --- .mailmap

[PATCH v2 12/45] common/sfc_efx/base: add Medford4 support to Tx module

2025-04-23 Thread Ivan Malov
From: Denis Pryazhennikov Define and use Medford4 specific method table. Signed-off-by: Denis Pryazhennikov Reviewed-by: Andy Moreton --- drivers/common/sfc_efx/base/efx_tx.c | 33 1 file changed, 33 insertions(+) diff --git a/drivers/common/sfc_efx/base/efx_tx.c

[PATCH v2 14/45] net/sfc: add Medford4 with only full feature datapath engine

2025-04-23 Thread Ivan Malov
From: Andy Moreton Add PCI IDs for Medford4 functions that only have the full feature datapath engine (no support for low latency datapath engine). Signed-off-by: Andy Moreton Reviewed-by: Ivan Malov --- drivers/net/sfc/sfc_ethdev.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a

[PATCH v2 09/45] common/sfc_efx/base: add Medford4 support to TUNNEL module

2025-04-23 Thread Ivan Malov
From: Denis Pryazhennikov Use common EF10 method table for that. Signed-off-by: Denis Pryazhennikov Reviewed-by: Andy Moreton --- drivers/common/sfc_efx/base/efx_tunnel.c | 18 -- 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/drivers/common/sfc_efx/base/efx_tu

[PATCH v2 06/45] common/sfc_efx/base: add Medford4 support to INTR module

2025-04-23 Thread Ivan Malov
From: Denis Pryazhennikov Use common EF10 method table for that. Signed-off-by: Denis Pryazhennikov Reviewed-by: Andy Moreton --- drivers/common/sfc_efx/base/efx_intr.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/drivers/common/sfc_efx/base/efx_intr.c b/drivers/common/sfc_efx/b

[PATCH v2 08/45] common/sfc_efx/base: add Medford4 support to PHY module

2025-04-23 Thread Ivan Malov
From: Denis Pryazhennikov Use common EF10 method table for that. Signed-off-by: Denis Pryazhennikov Reviewed-by: Andy Moreton --- drivers/common/sfc_efx/base/efx_phy.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/drivers/common/sfc_efx/base/efx_phy.c b/drivers/common/sfc_efx/bas

[PATCH v2 05/45] common/sfc_efx/base: add Medford4 support to FILTER module

2025-04-23 Thread Ivan Malov
From: Denis Pryazhennikov Use common EF10 method table for that. Signed-off-by: Denis Pryazhennikov Reviewed-by: Andy Moreton --- drivers/common/sfc_efx/base/efx_filter.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/drivers/common/sfc_efx/base/efx_filter.c b/drivers/common/sfc_e

[PATCH v2 04/45] common/sfc_efx/base: add Medford4 support to EV module

2025-04-23 Thread Ivan Malov
From: Denis Pryazhennikov Use common EF10 method table for that. Signed-off-by: Denis Pryazhennikov Reviewed-by: Andy Moreton --- drivers/common/sfc_efx/base/efx_ev.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/drivers/common/sfc_efx/base/efx_ev.c b/drivers/common/sfc_efx/base/

[PATCH v2 03/45] common/sfc_efx/base: add Medford4 support to NIC module

2025-04-23 Thread Ivan Malov
From: Denis Pryazhennikov Implement NIC family discovery and minimum probe support. Signed-off-by: Denis Pryazhennikov Signed-off-by: Andy Moreton --- drivers/common/sfc_efx/base/ef10_nic.c | 32 +++- drivers/common/sfc_efx/base/efx.h | 1 + drivers/common/sfc_efx/base/efx_i

[PATCH v2 00/45] Support AMD Solarflare X45xx adaptors

2025-04-23 Thread Ivan Malov
o MCDI module common/sfc_efx/base: add Medford4 support to Rx module common/sfc_efx/base: add Medford4 support to Tx module drivers: enable support for AMD Solarflare X4 adapter family common/sfc_efx/base: add new X4 port mode common/sfc_efx/base: extend list of supported X4 port modes

[PATCH v2 02/45] common/sfc_efx/base: add efsys option for Medford4

2025-04-23 Thread Ivan Malov
From: Denis Pryazhennikov Later patches will use this to implement support for Medford4. Signed-off-by: Denis Pryazhennikov Reviewed-by: Andy Moreton --- drivers/common/sfc_efx/base/efx_check.h | 25 ++--- drivers/common/sfc_efx/efsys.h | 2 ++ 2 files changed, 1

[PATCH v2 01/45] common/sfc_efx/base: add Medford4 PCI IDs to common code

2025-04-23 Thread Ivan Malov
From: Denis Pryazhennikov Later patches will use this to implement support for Medford4. Signed-off-by: Denis Pryazhennikov Signed-off-by: Andy Moreton --- drivers/common/sfc_efx/base/efx.h | 11 +++ 1 file changed, 11 insertions(+) diff --git a/drivers/common/sfc_efx/base/efx.h b/d

Re: [PATCH 00/46] Support AMD Solarflare X45xx adaptors

2025-04-16 Thread Ivan Malov
On Wed, 16 Apr 2025, Stephen Hemminger wrote: On Wed, 16 Apr 2025 19:38:58 +0400 (+04) Ivan Malov wrote: On Wed, 16 Apr 2025, Stephen Hemminger wrote: On Wed, 16 Apr 2025 17:59:30 +0400 Ivan Malov wrote: New X4522 (dual port SFP56) and X4542 (dual port QSFP56) adaptors are Medford4 (X4

Re: [PATCH 00/46] Support AMD Solarflare X45xx adaptors

2025-04-16 Thread Ivan Malov
On Wed, 16 Apr 2025, Stephen Hemminger wrote: On Wed, 16 Apr 2025 17:59:30 +0400 Ivan Malov wrote: New X4522 (dual port SFP56) and X4542 (dual port QSFP56) adaptors are Medford4 (X4) chips that are based on EF10 architecture. An X4 NIC supports multiple network engine types. This series

[PATCH 46/46] doc: advertise support for AMD Solarflare X45xx adapters

2025-04-16 Thread Ivan Malov
The two NICs, X4522 and X4542, are based on EF10 architecture. Signed-off-by: Ivan Malov --- doc/guides/nics/sfc_efx.rst| 9 - doc/guides/rel_notes/release_25_07.rst | 4 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/doc/guides/nics/sfc_efx.rst b/doc

[PATCH 45/46] net/sfc: add support for control of physical port lane count

2025-04-16 Thread Ivan Malov
Since 24.11, DPDK has supported APIs to control lane count of the physical link. Provide driver-level support for that on adaptors that are netport MCDI capabale (Medford4, for instance). Signed-off-by: Ivan Malov Reviewed-by: Andy Moreton Reviewed-by: Pieter Jansen Van Vuuren --- drivers/net

[PATCH 44/46] common/sfc_efx/base: support controls for netport lane count

2025-04-16 Thread Ivan Malov
On netport MCDI capable adaptors, link modes exported by libefx can be backed by different technologies with different lane counts. Allow the client drivers to get and set the lane count and query possible values. Signed-off-by: Ivan Malov Reviewed-by: Andy Moreton Reviewed-by: Pieter Jansen

[PATCH 43/46] net/sfc: offer support for 200G link ability on new adaptors

2025-04-16 Thread Ivan Malov
New adaptors (for instance, Medford4) can support 200G speed. Signed-off-by: Ivan Malov Reviewed-by: Andy Moreton Reviewed-by: Pieter Jansen Van Vuuren --- drivers/net/sfc/sfc.c| 5 - drivers/net/sfc/sfc_ethdev.c | 15 +++ drivers/net/sfc/sfc_port.c | 6 ++ 3

[PATCH 42/46] common/sfc_efx/base: subscribe to netport link change events

2025-04-16 Thread Ivan Malov
Subscribe to the new link events on netport MCDI attach path. Signed-off-by: Ivan Malov Reviewed-by: Andy Moreton Reviewed-by: Pieter Jansen Van Vuuren --- drivers/common/sfc_efx/base/efx_np.c | 56 1 file changed, 56 insertions(+) diff --git a/drivers/common

[PATCH 41/46] net/sfc: query link status on link change events on new NICs

2025-04-16 Thread Ivan Malov
Link events signaled on new adaptors (Medford4 and later) do not carry any specifics, so query the link status separately. Signed-off-by: Ivan Malov Reviewed-by: Andy Moreton Reviewed-by: Pieter Jansen Van Vuuren --- drivers/net/sfc/sfc.h| 2 ++ drivers/net/sfc/sfc_ethdev.c | 2

[PATCH 40/46] common/sfc_efx/base: add link event processing on new boards

2025-04-16 Thread Ivan Malov
Link change events on netport MCDI capable NICs do not carry any specifics of the new link state. Such need to be queried separately. Add processing of the events, with an indication to the client driver telling it to collect the status itself. Signed-off-by: Ivan Malov Reviewed-by: Andy Moreton

[PATCH 39/46] common/sfc_efx/base: ignore legacy link events on new boards

2025-04-16 Thread Ivan Malov
New adaptors (for instance, Medford4) come with netport MCDI and also support new link change events, however, older ones can also be generated. For consistency, ignore legacy events. Signed-off-by: Ivan Malov Reviewed-by: Andy Moreton Reviewed-by: Pieter Jansen Van Vuuren --- drivers/common

[PATCH 38/46] net/sfc: make use of generic EFX MAC PDU calculation helpers

2025-04-16 Thread Ivan Malov
To make sure that MAC PDU values do not come with legacy bug workaround baked in when running on newer Medford4 NICs, use generic replacement APIs from EFX in place of MAC PDU macros. Signed-off-by: Ivan Malov Reviewed-by: Andy Moreton Reviewed-by: Pieter Jansen Van Vuuren --- drivers/net/sfc

[PATCH 37/46] common/sfc_efx/base: correct MAC PDU calculation on Medford4

2025-04-16 Thread Ivan Malov
replacement. The new APIs will either include the said workaround or omit it, depending on whether support for netport MCDI is present. Signed-off-by: Ivan Malov Reviewed-by: Andy Moreton Reviewed-by: Pieter Jansen Van Vuuren --- drivers/common/sfc_efx/base/efx.h | 25

[PATCH 36/46] common/sfc_efx/base: implement MAC PDU controls for Medford4

2025-04-16 Thread Ivan Malov
Leverage new netport MCDI to implement support for such APIs. Signed-off-by: Ivan Malov Reviewed-by: Andy Moreton Reviewed-by: Pieter Jansen Van Vuuren --- drivers/common/sfc_efx/base/efx_impl.h | 4 ++ drivers/common/sfc_efx/base/efx_mac.c | 4 +- drivers/common/sfc_efx/base

[PATCH 35/46] common/sfc_efx/base: support MAC statistics on Medford4 NICs

2025-04-16 Thread Ivan Malov
Supply Medford4-specific methods to clear, upload and update MAC statistics, as well as the method to toggle periodic DMA updates. All of these leverage the same netport MCDI command. Signed-off-by: Ivan Malov Reviewed-by: Andy Moreton Reviewed-by: Pieter Jansen Van Vuuren --- drivers/common

[PATCH 34/46] common/sfc_efx/base: fill in MAC statistics mask on Medford4

2025-04-16 Thread Ivan Malov
Let client drivers know which MAC statistics can be accessed. Signed-off-by: Ivan Malov Reviewed-by: Andy Moreton Reviewed-by: Pieter Jansen Van Vuuren --- drivers/common/sfc_efx/base/efx_mac.c | 2 +- drivers/common/sfc_efx/base/medford4_impl.h | 9 ++ drivers/common/sfc_efx/base

[PATCH 33/46] common/sfc_efx/base: fill in software LUT for MAC statistics

2025-04-16 Thread Ivan Malov
To support MAC statistics, it is required to fill in a table which will be used by EFX to get DMA field IDs (offsets into the DMA buffer where MC FW uploads the data) by software IDs. Fill in the lookup table by parsing HW statistic descriptors. Signed-off-by: Ivan Malov Reviewed-by: Andy

[PATCH 32/46] common/sfc_efx/base: add MAC reconfigure method for Medford4

2025-04-16 Thread Ivan Malov
That leverages MAC control functionality of new netport MCDI. Signed-off-by: Ivan Malov Reviewed-by: Andy Moreton Reviewed-by: Pieter Jansen Van Vuuren --- drivers/common/sfc_efx/base/efx_impl.h | 13 drivers/common/sfc_efx/base/efx_mac.c | 2 +- drivers/common/sfc_efx/base

[PATCH 31/46] common/sfc_efx/base: introduce Medford4 stub for MAC methods

2025-04-16 Thread Ivan Malov
Provide only a small subset of methods for now. Next patches will augment the file with more, based on newer netport MCDI. Signed-off-by: Ivan Malov Reviewed-by: Andy Moreton Reviewed-by: Pieter Jansen Van Vuuren --- drivers/common/sfc_efx/base/efx_mac.c | 32 +++- drivers

[PATCH 30/46] common/sfc_efx/base: implement PHY link control for Medford4

2025-04-16 Thread Ivan Malov
Use new MCDI to select loopback, speed, flow control and FEC. Signed-off-by: Ivan Malov Reviewed-by: Andy Moreton Reviewed-by: Pieter Jansen Van Vuuren --- drivers/common/sfc_efx/base/ef10_impl.h | 6 + drivers/common/sfc_efx/base/ef10_phy.c | 2 +- drivers/common/sfc_efx/base

[PATCH 27/46] common/sfc_efx/base: introduce Medford4 stub for PHY methods

2025-04-16 Thread Ivan Malov
Provide only a couple of no-op methods for now. Next patches will augment the file with more, based on newer netport MCDI. Signed-off-by: Ivan Malov Reviewed-by: Andy Moreton Reviewed-by: Pieter Jansen Van Vuuren --- drivers/common/sfc_efx/base/efx_impl.h | 4 +++ drivers/common/sfc_efx

[PATCH 29/46] common/sfc_efx/base: provide PHY link get method on Medford4

2025-04-16 Thread Ivan Malov
To do so, make use of new netport MCDI supported by Medford4. Signed-off-by: Ivan Malov Reviewed-by: Andy Moreton Reviewed-by: Pieter Jansen Van Vuuren --- drivers/common/sfc_efx/base/ef10_phy.c | 8 ++ drivers/common/sfc_efx/base/efx.h | 4 +- drivers/common/sfc_efx/base

[PATCH 28/46] common/sfc_efx/base: refactor EF10 link mode decoding helper

2025-04-16 Thread Ivan Malov
Future patches will use this change for netport MCDI support. Signed-off-by: Ivan Malov Reviewed-by: Andy Moreton Reviewed-by: Pieter Jansen Van Vuuren --- drivers/common/sfc_efx/base/ef10_impl.h | 13 +++ drivers/common/sfc_efx/base/ef10_phy.c | 31 ++--- 2 files

[PATCH 26/46] common/sfc_efx/base: fill in loopback modes on netport probe

2025-04-16 Thread Ivan Malov
Indicate support for some of the loopback modes known to EFX. Such have been technology-dependent, but, on netport capable NICs, they are backed by new generic modes, that are tied to the stages in the processing chain where loopback can happen. Signed-off-by: Ivan Malov Reviewed-by: Andy

[PATCH 25/46] common/sfc_efx/base: decode netport link state on probe path

2025-04-16 Thread Ivan Malov
Retrieved properties form the advertised PHY capability mask. The new code also helps to check support for autonegotiation. Signed-off-by: Ivan Malov Reviewed-by: Andy Moreton Reviewed-by: Pieter Jansen Van Vuuren --- drivers/common/sfc_efx/base/efx_impl.h | 12 + drivers/common/sfc_efx

[PATCH 24/46] common/sfc_efx/base: get netport fixed capabilities on probe

2025-04-16 Thread Ivan Malov
These make the basic subset of PHY capabilities known to EFX Signed-off-by: Ivan Malov Reviewed-by: Andy Moreton Reviewed-by: Pieter Jansen Van Vuuren --- drivers/common/sfc_efx/base/efx.h| 21 ++- drivers/common/sfc_efx/base/efx_np.c | 209 +++ 2 files changed

[PATCH 23/46] common/sfc_efx/base: allow for const in MCDI struct accessor

2025-04-16 Thread Ivan Malov
The existing code is fine, however, future patches will need to use this macro on buffers that are passed by callers with const qualifier. With 'cast-qual' enabled, this macro causes compile warnings in such cases. Rework it to allow for const. Signed-off-by: Ivan Malov Reviewed-by: An

[PATCH 22/46] common/sfc_efx/base: obtain assigned netport handle from NIC

2025-04-16 Thread Ivan Malov
Get an 'assigned' netport handle for the current MCDI entity. This handle will be used when sending other netport commands. Signed-off-by: Ivan Malov Reviewed-by: Andy Moreton Reviewed-by: Pieter Jansen Van Vuuren --- drivers/common/sfc_efx/base/efx_impl.h | 4 +++ drivers/comm

[PATCH 21/46] common/sfc_efx/base: provide defaults on netport attach path

2025-04-16 Thread Ivan Malov
Fill in some port information, including legacy Siena fields. Signed-off-by: Ivan Malov Reviewed-by: Andy Moreton Reviewed-by: Pieter Jansen Van Vuuren --- drivers/common/sfc_efx/base/efx_np.c | 44 1 file changed, 44 insertions(+) diff --git a/drivers/common

[PATCH 20/46] common/sfc_efx/base: provide a stub for basic netport attach

2025-04-16 Thread Ivan Malov
New NICs (for instance, Medford4) offer new netport MCDI for managing physical ports, which will supersede the legacy one. Scope out the new interface initialisation on NIC probe path. That will be augmented with the actual code by later patches. Signed-off-by: Ivan Malov Reviewed-by: Andy

[PATCH 18/46] common/sfc_efx/base: extend list of supported X4 port modes

2025-04-16 Thread Ivan Malov
From: Denis Pryazhennikov Add X4 port mode that allocates two 10G/25G/50G ports to separate cages. Signed-off-by: Denis Pryazhennikov Reviewed-by: Andy Moreton Reviewed-by: Richard Houldsworth Reviewed-by: Ivan Malov --- drivers/common/sfc_efx/base/ef10_nic.c | 1 + 1 file changed, 1

[PATCH 17/46] common/sfc_efx/base: add new X4 port mode

2025-04-16 Thread Ivan Malov
From: Denis Pryazhennikov Add handling for the port mode in the Medford4 driver logic, enabling support for two single network ports. Signed-off-by: Denis Pryazhennikov Reviewed-by: Andy Moreton Reviewed-by: Richard Houldsworth Reviewed-by: Ivan Malov --- .mailmap

[PATCH 16/46] common/sfc_efx/base: add port mode for 8 port hardware

2025-04-16 Thread Ivan Malov
From: Andy Moreton Add support for 8 port mode and adjust the bus bandwidth computation and external port mapping table. Signed-off-by: Andy Moreton Reviewed-by: Ivan Malov --- drivers/common/sfc_efx/base/ef10_nic.c| 20 +++ drivers/common/sfc_efx/base

[PATCH 15/46] net/sfc: add Medford4 with only full feature datapath engine

2025-04-16 Thread Ivan Malov
From: Andy Moreton Add PCI IDs for Medford4 functions that only have the full feature datapath engine (no support for low latency datapath engine). Signed-off-by: Andy Moreton Reviewed-by: Ivan Malov --- drivers/net/sfc/sfc_ethdev.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a

[PATCH 13/46] drivers: enable support for AMD Solarflare X4 adapter family

2025-04-16 Thread Ivan Malov
From: Denis Pryazhennikov Enable support for Medford4 (X4) adapters X4522 and X4542. Signed-off-by: Denis Pryazhennikov Reviewed-by: Andy Moreton --- drivers/common/sfc_efx/efsys.h | 4 ++-- drivers/net/sfc/sfc_ethdev.c | 3 +++ 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a

[PATCH 14/46] common/sfc_efx/base: update X4 BAR layout and PCI IDs

2025-04-16 Thread Ivan Malov
not support the low latency datapath engine. Signed-off-by: Andy Moreton Reviewed-by: Ivan Malov --- drivers/common/sfc_efx/base/efx.h | 12 +--- drivers/common/sfc_efx/base/efx_nic.c | 2 ++ 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/drivers/common/sfc_efx

[PATCH 12/46] common/sfc_efx/base: add Medford4 support to Tx module

2025-04-16 Thread Ivan Malov
From: Denis Pryazhennikov Define and use Medford4 specific method table. Signed-off-by: Denis Pryazhennikov Reviewed-by: Andy Moreton --- drivers/common/sfc_efx/base/efx_tx.c | 33 1 file changed, 33 insertions(+) diff --git a/drivers/common/sfc_efx/base/efx_tx.c

[PATCH 10/46] common/sfc_efx/base: add Medford4 support to MCDI module

2025-04-16 Thread Ivan Malov
From: Denis Pryazhennikov Use common EF10 method table for that. Signed-off-by: Denis Pryazhennikov Reviewed-by: Andy Moreton --- drivers/common/sfc_efx/base/efx_mcdi.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/drivers/common/sfc_efx/base/efx_mcdi.c b/drivers/common/sfc_efx/b

[PATCH 11/46] common/sfc_efx/base: add Medford4 support to Rx module

2025-04-16 Thread Ivan Malov
From: Denis Pryazhennikov Use common EF10 method table for that. Signed-off-by: Denis Pryazhennikov Reviewed-by: Andy Moreton --- drivers/common/sfc_efx/base/efx_rx.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/drivers/common/sfc_efx/base/efx_rx.c b/drivers/common/sfc_efx/base/

[PATCH 09/46] common/sfc_efx/base: add Medford4 support to TUNNEL module

2025-04-16 Thread Ivan Malov
From: Denis Pryazhennikov Use common EF10 method table for that. Signed-off-by: Denis Pryazhennikov Reviewed-by: Andy Moreton --- drivers/common/sfc_efx/base/efx_tunnel.c | 18 -- 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/drivers/common/sfc_efx/base/efx_tu

[PATCH 08/46] common/sfc_efx/base: add Medford4 support to PHY module

2025-04-16 Thread Ivan Malov
From: Denis Pryazhennikov Use common EF10 method table for that. Signed-off-by: Denis Pryazhennikov Reviewed-by: Andy Moreton --- drivers/common/sfc_efx/base/efx_phy.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/drivers/common/sfc_efx/base/efx_phy.c b/drivers/common/sfc_efx/bas

[PATCH 07/46] common/sfc_efx/base: add Medford4 support to MAC module

2025-04-16 Thread Ivan Malov
From: Denis Pryazhennikov Use common EF10 method table for that. Signed-off-by: Denis Pryazhennikov Reviewed-by: Andy Moreton --- drivers/common/sfc_efx/base/efx_impl.h | 1 + drivers/common/sfc_efx/base/efx_mac.c | 7 +++ 2 files changed, 8 insertions(+) diff --git a/drivers/common/sfc

[PATCH 06/46] common/sfc_efx/base: add Medford4 support to INTR module

2025-04-16 Thread Ivan Malov
From: Denis Pryazhennikov Use common EF10 method table for that. Signed-off-by: Denis Pryazhennikov Reviewed-by: Andy Moreton --- drivers/common/sfc_efx/base/efx_intr.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/drivers/common/sfc_efx/base/efx_intr.c b/drivers/common/sfc_efx/b

[PATCH 05/46] common/sfc_efx/base: add Medford4 support to FILTER module

2025-04-16 Thread Ivan Malov
From: Denis Pryazhennikov Use common EF10 method table for that. Signed-off-by: Denis Pryazhennikov Reviewed-by: Andy Moreton --- drivers/common/sfc_efx/base/efx_filter.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/drivers/common/sfc_efx/base/efx_filter.c b/drivers/common/sfc_e

[PATCH 04/46] common/sfc_efx/base: add Medford4 support to EV module

2025-04-16 Thread Ivan Malov
From: Denis Pryazhennikov Use common EF10 method table for that. Signed-off-by: Denis Pryazhennikov Reviewed-by: Andy Moreton --- drivers/common/sfc_efx/base/efx_ev.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/drivers/common/sfc_efx/base/efx_ev.c b/drivers/common/sfc_efx/base/

[PATCH 03/46] common/sfc_efx/base: add Medford4 support to NIC module

2025-04-16 Thread Ivan Malov
From: Denis Pryazhennikov Implement NIC family discovery and minimum probe support. Signed-off-by: Denis Pryazhennikov Reviewed-by: Andy Moreton --- drivers/common/sfc_efx/base/ef10_nic.c | 33 - drivers/common/sfc_efx/base/efx.h | 1 + drivers/common/sfc_efx/base/efx_im

[PATCH 02/46] common/sfc_efx/base: add efsys option for Medford4

2025-04-16 Thread Ivan Malov
From: Denis Pryazhennikov Later patches will use this to implement support for Medford4. Signed-off-by: Denis Pryazhennikov Reviewed-by: Andy Moreton --- drivers/common/sfc_efx/base/efx_check.h | 24 ++-- drivers/common/sfc_efx/efsys.h | 2 ++ 2 files changed, 16

[PATCH 01/46] common/sfc_efx/base: add Medford4 PCI IDs to common code

2025-04-16 Thread Ivan Malov
From: Denis Pryazhennikov Later patches will use this to implement support for Medford4. Signed-off-by: Denis Pryazhennikov Reviewed-by: Andy Moreton --- drivers/common/sfc_efx/base/efx.h | 5 + 1 file changed, 5 insertions(+) diff --git a/drivers/common/sfc_efx/base/efx.h b/drivers/com

  1   2   3   4   5   6   7   8   >