Fix flowhash size computation for very large hash tables 67/12767/2
authorPierre Pfister <ppfister@cisco.com>
Mon, 28 May 2018 11:56:04 +0000 (13:56 +0200)
committerDamjan Marion <dmarion.lists@gmail.com>
Mon, 28 May 2018 15:01:55 +0000 (15:01 +0000)
Change-Id: Ieae4ff6429fc5bdcf0e243db40ab7ec00c30730a
Signed-off-by: Pierre Pfister <ppfister@cisco.com>
src/vppinfra/flowhash_template.h

index 8f8fef2..359b969 100644 (file)
@@ -357,7 +357,7 @@ static_always_inline
 FVT(flowhash) *FV(flowhash_alloc)(u32 fixed_entries, u32 collision_buckets)
 {
   FVT(flowhash) *h;
-  u32 size;
+  uword size;
   void *mem;
   u32 entries;