From: Konstantin Ananyev Date: Tue, 20 Jan 2015 18:40:54 +0000 (+0000) Subject: acl: fix overwritten matches X-Git-Tag: spdx-start~9820 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=d4132664d80b312a83814368d11d098d04d9e021;p=dpdk.git acl: fix overwritten matches There was a bug at build phase that can cause matches beeing overwritten. Signed-off-by: Konstantin Ananyev Acked-by: Neil Horman --- diff --git a/lib/librte_acl/acl_bld.c b/lib/librte_acl/acl_bld.c index 8bf4a54e6b..22f7934183 100644 --- a/lib/librte_acl/acl_bld.c +++ b/lib/librte_acl/acl_bld.c @@ -1907,7 +1907,7 @@ rte_acl_build(struct rte_acl_ctx *ctx, const struct rte_acl_config *cfg) bcx.num_tries, bcx.cfg.num_categories, RTE_ACL_MAX_FIELDS * RTE_DIM(bcx.tries) * sizeof(ctx->data_indexes[0]), - bcx.num_build_rules); + bcx.num_build_rules + 1); if (rc == 0) { /* set data indexes. */