src/dpdk/drivers/net/bnxt/tf_ulp/ulp_mapper.c
static struct bnxt_ulp_mapper_result_field_info *
ulp_mapper_result_fields_get(struct bnxt_ulp_mapper_parms *mparms,
			     struct bnxt_ulp_mapper_tbl_info *tbl,
			     uint32_t *num_flds,
			     uint32_t *num_encap_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->result_field_list) {
		*num_flds = 0;
		*num_encap_flds = 0;
		return NULL;
	}

	idx		= tbl->result_start_idx;
	*num_flds	= tbl->result_num_fields;
	*num_encap_flds = tbl->encap_num_fields;

	return &dev_tbls->result_field_list[idx];
}
/*
 * Get the list of data fields that implement the flow.
 *
 * mparms [in] The mapper parms with information about the flow
 *
 * tbl [in] A single table instance to get the data fields from
 *
 * num_flds [out] The number of data fields in the returned array.
 *
 * num_encap_flds [out] The number of encap fields in the returned array.
 *
 * Returns array of data fields, or NULL on error.
 */
Get the list of data fields that implement the flow.
mparms [in] The mapper parms with information about the flow

tbl [in] A single table instance to get the data fields from

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

num_encap_flds [out] The number of encap fields in the returned array.

Returns array of data fields, or NULL on error.
Get the list of data fields that implement the flow . mparms [ in ] The mapper parms with information about the flow tbl [ in ] A single table instance to get the data fields from num_flds [ out ] The number of data fields in the returned array . num_encap_flds [ out ] The number of encap fields in the returned array . Returns array of data fields or NULL on error .
static struct bnxt_ulp_mapper_result_field_info *
ulp_mapper_result_fields_get(struct bnxt_ulp_mapper_parms *mparms,
			     struct bnxt_ulp_mapper_tbl_info *tbl,
			     uint32_t *num_flds,
			     uint32_t *num_encap_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->result_field_list) {
		*num_flds = 0;
		*num_encap_flds = 0;
		return NULL;
	}
	idx		= tbl->result_start_idx;
	*num_flds	= tbl->result_num_fields;
	*num_encap_flds = tbl->encap_num_fields;
	return &dev_tbls->result_field_list[idx];
}
static struct bnxt_ulp_mapper_result_field_info * ulp_mapper_result_fields_get ( struct bnxt_ulp_mapper_parms * mparms , struct bnxt_ulp_mapper_tbl_info * tbl , uint32_t * num_flds , uint32_t * num_encap_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 -> result_field_list ) { * num_flds = 0 ; * num_encap_flds = 0 ; return NULL ; } idx = tbl -> result_start_idx ; * num_flds = tbl -> result_num_fields ; * num_encap_flds = tbl -> encap_num_fields ; return & dev_tbls -> result_field_list [ idx ] ; }
Get the list of data fields that implement the flow.
Get the list of data fields that implement the flow .