hash: slice CRC data into 8-byte pieces
authorYerden Zhumabekov <e_zhumabekov@sts.kz>
Thu, 29 Jan 2015 08:50:26 +0000 (14:50 +0600)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Mon, 23 Feb 2015 17:30:05 +0000 (18:30 +0100)
commit614289298daf038ee73cf6aa0f6e57342ca061d7
treeb34e78caf518c5f268cf4427c64259c3beafe751
parent8bae1da2afe0ab49278159e74f9b94dc2442779e
hash: slice CRC data into 8-byte pieces

Calculating hash for data of variable length is more efficient
when that data is sliced into 8-byte pieces. The rest part of data
is hashed using CRC32 functions with either 8 and 4 byte operands.

Signed-off-by: Yerden Zhumabekov <e_zhumabekov@sts.kz>
Acked-by: Bruce Richardson <bruce.richardson@intel.com>
lib/librte_hash/rte_hash_crc.h