[PATCH v3 05/34] common/sfc_efx/base: add API to get HW table desc

Andrew Rybchenko andrew.rybchenko at oktetlabs.ru
Wed Jun 7 13:47:33 CEST 2023


On 6/5/23 02:24, Ivan Malov wrote:
> From: Denis Pryazhennikov <denis.pryazhennikov at arknetworks.am>
> 
> Table's descriptor and fields' descriptors can be taken
> by table ID using a new API.
> In the near future, only the CT table is planned
> to be used, so only fields that are required for these
> purposes were added to the efx.
> 
> Signed-off-by: Denis Pryazhennikov <denis.pryazhennikov at arknetworks.am>
> Reviewed-by: Viacheslav Galaktionov <viacheslav.galaktionov at arknetworks.am>
> Reviewed-by: Andy Moreton <amoreton at xilinx.com>

[snip]

> +LIBEFX_API
> +extern	__checkReturn				efx_rc_t
> +efx_table_describe(
> +	__in					efx_nic_t *enp,
> +	__in					efx_table_id_t table_id,
> +	__in					uint32_t field_offset,
> +	__out_opt				efx_table_descriptor_t *table_descp,
> +	__out_ecount_opt(*n_fields_descsp)	efx_table_field_descriptor_t *fields_descs,

There is no such parameter n_fields_descsp

> +	__in					unsigned int n_field_descs,
> +	__out_opt				unsigned int *n_field_descs_writtenp);
> +
>   #ifdef	__cplusplus
>   }
>   #endif



More information about the dev mailing list