aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins
diff options
context:
space:
mode:
authorAndrew Yourtchenko <ayourtch@gmail.com>2017-10-27 15:03:34 +0000
committerAndrew Yourtchenko <ayourtch@gmail.com>2017-10-27 15:03:34 +0000
commit58c947650cb864c592779530a655ea108b960b1a (patch)
tree8e472e59354932f17c6bfdc5ca0d6f1738a67662 /src/plugins
parent66cf6eb41c5a8bb833e94040dff94f6d8ce3814e (diff)
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 <ayourtch@gmail.com>
Diffstat (limited to 'src/plugins')
-rw-r--r--src/plugins/acl/acl.c2
1 files changed, 1 insertions, 1 deletions
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;