src/dpdk/drivers/net/bnxt/tf_ulp/ulp_mapper.c
static void ulp_mapper_wc_tcam_tbl_post_process(struct ulp_blob *blob,
						uint32_t len)
{
	uint8_t mode[2] = {0x0, 0x0};
	uint32_t mode_len = len / BNXT_ULP_WC_TCAM_SLICE_SIZE;
	uint32_t size, idx;

	/* Add the mode bits to the key and mask*/
	if (mode_len == 2)
		mode[1] = 2;
	else if (mode_len > 2)
		mode[1] = 3;

	size = BNXT_ULP_WC_TCAM_SLICE_SIZE + ULP_BYTE_2_BITS(sizeof(mode));
	for (idx = 0; idx < mode_len; idx++)
		ulp_blob_insert(blob, (size * idx), mode,
				ULP_BYTE_2_BITS(sizeof(mode)));
	ulp_blob_perform_64B_word_swap(blob);
	ulp_blob_perform_64B_byte_swap(blob);
}
/* internal function to post process the key/mask blobs for wildcard tcam tbl */
internal function to post process the key/mask blobs for wildcard tcam tbl
internal function to post process the key / mask blobs for wildcard tcam tbl
static void ulp_mapper_wc_tcam_tbl_post_process(struct ulp_blob *blob,
						uint32_t len)
{
	uint8_t mode[2] = {0x0, 0x0};
	uint32_t mode_len = len / BNXT_ULP_WC_TCAM_SLICE_SIZE;
	uint32_t size, idx;
	if (mode_len == 2)
		mode[1] = 2;
	else if (mode_len > 2)
		mode[1] = 3;
	size = BNXT_ULP_WC_TCAM_SLICE_SIZE + ULP_BYTE_2_BITS(sizeof(mode));
	for (idx = 0; idx < mode_len; idx++)
		ulp_blob_insert(blob, (size * idx), mode,
				ULP_BYTE_2_BITS(sizeof(mode)));
	ulp_blob_perform_64B_word_swap(blob);
	ulp_blob_perform_64B_byte_swap(blob);
}
static void ulp_mapper_wc_tcam_tbl_post_process ( struct ulp_blob * blob , uint32_t len ) { uint8_t mode [ 2 ] = { 0x0 , 0x0 } ; uint32_t mode_len = len / BNXT_ULP_WC_TCAM_SLICE_SIZE ; uint32_t size , idx ; if ( mode_len == 2 ) mode [ 1 ] = 2 ; else if ( mode_len > 2 ) mode [ 1 ] = 3 ; size = BNXT_ULP_WC_TCAM_SLICE_SIZE + ULP_BYTE_2_BITS ( sizeof ( mode ) ) ; for ( idx = 0 ; idx < mode_len ; idx ++ ) ulp_blob_insert ( blob , ( size * idx ) , mode , ULP_BYTE_2_BITS ( sizeof ( mode ) ) ) ; ulp_blob_perform_64B_word_swap ( blob ) ; ulp_blob_perform_64B_byte_swap ( blob ) ; }
internal function to post process the key/mask blobs for wildcard tcam tbl
internal function to post process the key / mask blobs for wildcard tcam tbl
/* Add the mode bits to the key and mask*/