src/dpdk/drivers/net/bnxt/tf_ulp/ulp_mapper.c
static struct bnxt_ulp_mapper_tbl_info *
ulp_mapper_tbl_list_get(struct bnxt_ulp_mapper_parms *mparms,
			uint32_t tid,
			uint32_t *num_tbls)
{
	uint32_t idx;
	const struct ulp_template_device_tbls *dev_tbls;

	dev_tbls = &mparms->device_params->dev_tbls[mparms->tmpl_type];

	idx = dev_tbls->tmpl_list[tid].start_tbl_idx;
	*num_tbls = dev_tbls->tmpl_list[tid].num_tbls;

	return &dev_tbls->tbl_list[idx];
}
/*
 * Get a list of classifier tables that implement the flow
 * Gets a device dependent list of tables that implement the class template id
 *
 * mparms [in] The mappers parms with data related to the flow.
 *
 * tid [in] The template id that matches the flow
 *
 * num_tbls [out] The number of classifier tables in the returned array
 *
 * returns An array of classifier tables to implement the flow, or NULL on
 * error
 */
Get a list of classifier tables that implement the flow
Gets a device dependent list of tables that implement the class template id

mparms [in] The mappers parms with data related to the flow.

tid [in] The template id that matches the flow

num_tbls [out] The number of classifier tables in the returned array

returns An array of classifier tables to implement the flow, or NULL on
error
Get a list of classifier tables that implement the flow Gets a device dependent list of tables that implement the class template id mparms [ in ] The mappers parms with data related to the flow . tid [ in ] The template id that matches the flow num_tbls [ out ] The number of classifier tables in the returned array returns An array of classifier tables to implement the flow or NULL on error
static struct bnxt_ulp_mapper_tbl_info *
ulp_mapper_tbl_list_get(struct bnxt_ulp_mapper_parms *mparms,
			uint32_t tid,
			uint32_t *num_tbls)
{
	uint32_t idx;
	const struct ulp_template_device_tbls *dev_tbls;
	dev_tbls = &mparms->device_params->dev_tbls[mparms->tmpl_type];
	idx = dev_tbls->tmpl_list[tid].start_tbl_idx;
	*num_tbls = dev_tbls->tmpl_list[tid].num_tbls;
	return &dev_tbls->tbl_list[idx];
}
static struct bnxt_ulp_mapper_tbl_info * ulp_mapper_tbl_list_get ( struct bnxt_ulp_mapper_parms * mparms , uint32_t tid , uint32_t * num_tbls ) { uint32_t idx ; const struct ulp_template_device_tbls * dev_tbls ; dev_tbls = & mparms -> device_params -> dev_tbls [ mparms -> tmpl_type ] ; idx = dev_tbls -> tmpl_list [ tid ] . start_tbl_idx ; * num_tbls = dev_tbls -> tmpl_list [ tid ] . num_tbls ; return & dev_tbls -> tbl_list [ idx ] ; }
Get a list of classifier tables that implement the flow
 Gets a device dependent list of tables that implement the class template id
Get a list of classifier tables that implement the flow Gets a device dependent list of tables that implement the class template id