From: Andrew Yourtchenko Date: Fri, 27 Oct 2017 15:03:34 +0000 (+0000) Subject: acl-plugin: increase the amount of memory for classifier tables used by MACIP ACLs X-Git-Tag: v18.04-rc0~389 X-Git-Url: https://gerrit.fd.io/r/gitweb?p=vpp.git;a=commitdiff_plain;h=58c947650cb864c592779530a655ea108b960b1a acl-plugin: increase the amount of memory for classifier tables used by MACIP ACLs 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 --- diff --git a/src/plugins/acl/acl.c b/src/plugins/acl/acl.c index a237f40a003..50e9557db38 100644 --- a/src/plugins/acl/acl.c +++ b/src/plugins/acl/acl.c @@ -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;