src/dpdk/drivers/net/bnxt/tf_core/tf_hash.c
uint32_t
tf_hash_calc_crc32i(uint32_t init, uint8_t *buf, uint32_t len)
{
	uint32_t crc = init;

	while (len--)
		crc = tf_hash_crc32tbl[(crc ^ buf[len]) & 0xff] ^
			(crc >> 8);

	return crc;
}
/**
 * Calculate a crc32 on the buffer with an initial value and len
 *
 * Returns the crc32
 */
Calculate a crc32 on the buffer with an initial value and len
Returns the crc32
Calculate a crc32 on the buffer with an initial value and len Returns the crc32
uint32_t
tf_hash_calc_crc32i(uint32_t init, uint8_t *buf, uint32_t len)
{
	uint32_t crc = init;
	while (len--)
		crc = tf_hash_crc32tbl[(crc ^ buf[len]) & 0xff] ^
			(crc >> 8);
	return crc;
}
uint32_t tf_hash_calc_crc32i ( uint32_t init , uint8_t * buf , uint32_t len ) { uint32_t crc = init ; while ( len -- ) crc = tf_hash_crc32tbl [ ( crc ^ buf [ len ] ) & 0xff ] ^ ( crc >> 8 ) ; return crc ; }
Calculate a crc32 on the buffer with an initial value and len
 Returns the crc32
Calculate a crc32 on the buffer with an initial value and len Returns the crc32