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

Andrew Rybchenko andrew.rybchenko at oktetlabs.ru
Thu Apr 17 09:57:21 CEST 2025


On 4/16/25 17:00, Ivan Malov wrote:
> 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 <ivan.malov at arknetworks.am>
> Reviewed-by: Andy Moreton <andy.moreton at amd.com>
> Reviewed-by: Pieter Jansen Van Vuuren <pieter.jansen-van-vuuren at amd.com>

[snip]

> @@ -1190,8 +1357,9 @@ efx_np_link_ctrl(
>   
>   		rc = efx_np_sw_link_mode_to_cap(loopback_link_mode,
>   					    &cap_enum_sw);
> -		if (rc != 0)
> +		if (rc != 0) {
>   			goto fail2;
> +		}

Looks like unrelated style change

>   
>   		EFX_NP_CAP_ENUM_SW_TO_HW(efx_np_cap_map_tech,
>   		    ETH_AN_FIELDS_TECH_MASK, cap_data_raw, cap_enum_sw,



More information about the dev mailing list