src/dpdk/drivers/net/bnxt/tf_ulp/ulp_rte_parser.c
static void
ulp_rte_parser_field_bitmap_update(struct ulp_rte_parser_params *params,
				   uint32_t idx)
{
	struct ulp_rte_hdr_field *field;

	field = &params->hdr_field[idx];
	if (ulp_bitmap_notzero(field->mask, field->size)) {
		ULP_INDEX_BITMAP_SET(params->fld_bitmap.bits, idx);
		/* Not exact match */
		if (!ulp_bitmap_is_ones(field->mask, field->size))
			ULP_BITMAP_SET(params->fld_bitmap.bits,
				       BNXT_ULP_MATCH_TYPE_BITMASK_WM);
	} else {
		ULP_INDEX_BITMAP_RESET(params->fld_bitmap.bits, idx);
	}
}
/* Utility function to update the field_bitmap */
Utility function to update the field_bitmap
Utility function to update the field_bitmap
static void
ulp_rte_parser_field_bitmap_update(struct ulp_rte_parser_params *params,
				   uint32_t idx)
{
	struct ulp_rte_hdr_field *field;
	field = &params->hdr_field[idx];
	if (ulp_bitmap_notzero(field->mask, field->size)) {
		ULP_INDEX_BITMAP_SET(params->fld_bitmap.bits, idx);
		if (!ulp_bitmap_is_ones(field->mask, field->size))
			ULP_BITMAP_SET(params->fld_bitmap.bits,
				       BNXT_ULP_MATCH_TYPE_BITMASK_WM);
	} else {
		ULP_INDEX_BITMAP_RESET(params->fld_bitmap.bits, idx);
	}
}
static void ulp_rte_parser_field_bitmap_update ( struct ulp_rte_parser_params * params , uint32_t idx ) { struct ulp_rte_hdr_field * field ; field = & params -> hdr_field [ idx ] ; if ( ulp_bitmap_notzero ( field -> mask , field -> size ) ) { ULP_INDEX_BITMAP_SET ( params -> fld_bitmap . bits , idx ) ; if ( ! ulp_bitmap_is_ones ( field -> mask , field -> size ) ) ULP_BITMAP_SET ( params -> fld_bitmap . bits , BNXT_ULP_MATCH_TYPE_BITMASK_WM ) ; } else { ULP_INDEX_BITMAP_RESET ( params -> fld_bitmap . bits , idx ) ; } }
Utility function to update the field_bitmap
Utility function to update the field_bitmap
/* Not exact match */