acl-plugin: increase the amount of memory for classifier tables used by MACIP ACLs 85/9085/1
authorAndrew Yourtchenko <ayourtch@gmail.com>
Fri, 27 Oct 2017 15:03:34 +0000 (15:03 +0000)
committerAndrew Yourtchenko <ayourtch@gmail.com>
Fri, 27 Oct 2017 15:03:34 +0000 (15:03 +0000)
The classifier tables upper bound of memory was just big enough
to cause the unittests pass most of the time but not always.
Increase the amount of space and run several hundred iterations
of unittests to ensure they always pass.

Change-Id: Ieb7876c6ebdde1f8c5273dbb9b090f12f2c38915
Signed-off-by: Andrew Yourtchenko <ayourtch@gmail.com>
src/plugins/acl/acl.c

index a237f40..50e9557 100644 (file)
@@ -422,7 +422,7 @@ acl_classify_add_del_table_small (vnet_classify_main_t * cm, u8 * mask,
                            int is_add)
 {
   u32 nbuckets = 32;
-  u32 memory_size = 2 << 20;
+  u32 memory_size = 2 << 22;
   u32 skip = count_skip (mask, mask_len);
   u32 match = (mask_len / 16) - skip;
   u8 *skip_mask_ptr = mask + 16 * skip;