From 8e66b9bf4ba90279631e6a0e8ccc2eab5f9156c2 Mon Sep 17 00:00:00 2001 From: Gabriel Ganne Date: Thu, 14 Dec 2017 16:20:37 +0100 Subject: 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 --- test/test_lb.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test') diff --git a/test/test_lb.py b/test/test_lb.py index ab9a209638a..e653b60b0ab 100644 --- a/test/test_lb.py +++ b/test/test_lb.py @@ -142,7 +142,7 @@ class TestLB(VppTestCase): # is not completly biased. for asid in self.ass: if load[asid] < len(self.packets) / (len(self.ass) * 2): - self.log( + self.logger.error( "ASS is not balanced: load[%d] = %d" % (asid, load[asid])) raise Exception("Load Balancer algorithm is biased") -- cgit 1.2.3-korg