hash: fallback to software CRC32 implementation
authorYerden Zhumabekov <e_zhumabekov@sts.kz>
Thu, 29 Jan 2015 08:50:03 +0000 (14:50 +0600)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Mon, 23 Feb 2015 17:24:05 +0000 (18:24 +0100)
commit8bae1da2afe0ab49278159e74f9b94dc2442779e
treeaa2006958dd98a42d98945403cf9cf3d5b1e76ce
parentd2b989045f9bb0dcbf138a4e13130c41adbf71cf
hash: fallback to software CRC32 implementation

Initially, SSE4.2 support is detected via the constructor function.

Added rte_hash_crc_set_alg() function to detect and set CRC32
implementation if necessary. SSE4.2 is allowed by default.

rte_hash_crc_*byte() functions reworked so they choose available
CRC32 implementation in the runtime.

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