src/dpdk/drivers/net/bnxt/tf_ulp/ulp_mapper.c
static int32_t
ulp_mapper_tcam_tbl_scan_ident_alloc(struct bnxt_ulp_mapper_parms *parms,
				     struct bnxt_ulp_mapper_tbl_info *tbl)
{
	struct bnxt_ulp_mapper_ident_info *idents;
	uint32_t num_idents;
	uint32_t i;

	/*
	 * Since the cache entry is responsible for allocating
	 * identifiers when in use, allocate the identifiers only
	 * during normal processing.
	 */
	if (parms->tcam_tbl_opc ==
	    BNXT_ULP_MAPPER_TCAM_TBL_OPC_NORMAL) {
		idents = ulp_mapper_ident_fields_get(parms, tbl, &num_idents);

		for (i = 0; i < num_idents; i++) {
			if (ulp_mapper_ident_process(parms, tbl,
						     &idents[i], NULL))
				return -EINVAL;
		}
	}
	return 0;
}
/* Tcam table scan the identifier list and allocate each identifier */
Tcam table scan the identifier list and allocate each identifier
Tcam table scan the identifier list and allocate each identifier
static int32_t
ulp_mapper_tcam_tbl_scan_ident_alloc(struct bnxt_ulp_mapper_parms *parms,
				     struct bnxt_ulp_mapper_tbl_info *tbl)
{
	struct bnxt_ulp_mapper_ident_info *idents;
	uint32_t num_idents;
	uint32_t i;
	if (parms->tcam_tbl_opc ==
	    BNXT_ULP_MAPPER_TCAM_TBL_OPC_NORMAL) {
		idents = ulp_mapper_ident_fields_get(parms, tbl, &num_idents);
		for (i = 0; i < num_idents; i++) {
			if (ulp_mapper_ident_process(parms, tbl,
						     &idents[i], NULL))
				return -EINVAL;
		}
	}
	return 0;
}
static int32_t ulp_mapper_tcam_tbl_scan_ident_alloc ( struct bnxt_ulp_mapper_parms * parms , struct bnxt_ulp_mapper_tbl_info * tbl ) { struct bnxt_ulp_mapper_ident_info * idents ; uint32_t num_idents ; uint32_t i ; if ( parms -> tcam_tbl_opc == BNXT_ULP_MAPPER_TCAM_TBL_OPC_NORMAL ) { idents = ulp_mapper_ident_fields_get ( parms , tbl , & num_idents ) ; for ( i = 0 ; i < num_idents ; i ++ ) { if ( ulp_mapper_ident_process ( parms , tbl , & idents [ i ] , NULL ) ) return - EINVAL ; } } return 0 ; }
Tcam table scan the identifier list and allocate each identifier
Tcam table scan the identifier list and allocate each identifier
/*
	 * Since the cache entry is responsible for allocating
	 * identifiers when in use, allocate the identifiers only
	 * during normal processing.
	 */