Use crc32 wrapper (VPP-1086) 54/9854/2
authorGabriel Ganne <gabriel.ganne@enea.com>
Thu, 14 Dec 2017 15:20:37 +0000 (16:20 +0100)
committerDamjan Marion <dmarion.lists@gmail.com>
Sat, 16 Dec 2017 19:32:25 +0000 (19:32 +0000)
commit8e66b9bf4ba90279631e6a0e8ccc2eab5f9156c2
treee76209cf954906eda9c0f50b029f87637bdb9099
parentf9dc9c4629bb9756013f7c727d67e0d3990cff3c
Use crc32 wrapper (VPP-1086)

This allows arm platforms to also take advantage of crc32 hardware
acceleration.

* add a wrapper for crc32_u64. It's the only one really used. Using it
  instead of a call to clib_crc32c() eases building symmetrical hash
  functions.
* replace #ifdef on SSE4 by a test on clib_crc32c_uses_intrinsics.
  Note: keep the test on i386
* fix typo in lb test log

Change-Id: I03a0897b70f6c1717e6901d93cf0fe024d5facb5
Signed-off-by: Gabriel Ganne <gabriel.ganne@enea.com>
src/plugins/lb/lbhash.h
src/vnet/bfd/bfd_main.c
src/vppinfra/crc32.h
src/vppinfra/cuckoo_8_8.h
test/test_lb.py