src/dpdk/drivers/net/bnxt/tf_ulp/ulp_mapper.c
static struct bnxt_ulp_mapper_ident_info *
ulp_mapper_ident_fields_get(struct bnxt_ulp_mapper_parms *mparms,
			    struct bnxt_ulp_mapper_tbl_info *tbl,
			    uint32_t *num_flds)
{
	uint32_t idx;
	const struct ulp_template_device_tbls *dev_tbls;

	dev_tbls = &mparms->device_params->dev_tbls[mparms->tmpl_type];
	if (!dev_tbls->ident_list) {
		*num_flds = 0;
		return NULL;
	}

	idx = tbl->ident_start_idx;
	*num_flds = tbl->ident_nums;

	return &dev_tbls->ident_list[idx];
}
/*
 * Get the list of ident fields that implement the flow
 *
 * tbl [in] A single table instance to get the ident fields from
 *
 * num_flds [out] The number of ident fields in the returned array
 *
 * returns array of ident fields, or NULL on error
 */
Get the list of ident fields that implement the flow
tbl [in] A single table instance to get the ident fields from

num_flds [out] The number of ident fields in the returned array

returns array of ident fields, or NULL on error
Get the list of ident fields that implement the flow tbl [ in ] A single table instance to get the ident fields from num_flds [ out ] The number of ident fields in the returned array returns array of ident fields or NULL on error
static struct bnxt_ulp_mapper_ident_info *
ulp_mapper_ident_fields_get(struct bnxt_ulp_mapper_parms *mparms,
			    struct bnxt_ulp_mapper_tbl_info *tbl,
			    uint32_t *num_flds)
{
	uint32_t idx;
	const struct ulp_template_device_tbls *dev_tbls;
	dev_tbls = &mparms->device_params->dev_tbls[mparms->tmpl_type];
	if (!dev_tbls->ident_list) {
		*num_flds = 0;
		return NULL;
	}
	idx = tbl->ident_start_idx;
	*num_flds = tbl->ident_nums;
	return &dev_tbls->ident_list[idx];
}
static struct bnxt_ulp_mapper_ident_info * ulp_mapper_ident_fields_get ( struct bnxt_ulp_mapper_parms * mparms , struct bnxt_ulp_mapper_tbl_info * tbl , uint32_t * num_flds ) { uint32_t idx ; const struct ulp_template_device_tbls * dev_tbls ; dev_tbls = & mparms -> device_params -> dev_tbls [ mparms -> tmpl_type ] ; if ( ! dev_tbls -> ident_list ) { * num_flds = 0 ; return NULL ; } idx = tbl -> ident_start_idx ; * num_flds = tbl -> ident_nums ; return & dev_tbls -> ident_list [ idx ] ; }
Get the list of ident fields that implement the flow
 tbl [in] A single table instance to get the ident fields from
Get the list of ident fields that implement the flow tbl [ in ] A single table instance to get the ident fields from