summaryrefslogtreecommitdiff
path: root/lib/librte_acl
diff options
context:
space:
mode:
authorKonstantin Ananyev <konstantin.ananyev@intel.com>2018-08-24 17:47:06 +0100
committerThomas Monjalon <thomas@monjalon.net>2018-09-16 11:53:25 +0200
commit53945477981cf75cf8d66e67a098b486e37df167 (patch)
treeb4c139ca57cb5c721a8ac2efa98bb1d95a010fd1 /lib/librte_acl
parent23f1c424599008a990bfcdf283a0c935bf5b3cdf (diff)
downloaddpdk-53945477981cf75cf8d66e67a098b486e37df167.zip
dpdk-53945477981cf75cf8d66e67a098b486e37df167.tar.gz
dpdk-53945477981cf75cf8d66e67a098b486e37df167.tar.xz
acl: forbid rule with priority zero
If user specifies priority=0 for some of ACL rules that can cause rte_acl_classify to return wrong results. The reason is that priority zero is used internally for no-match nodes. See more details at: https://bugs.dpdk.org/show_bug.cgi?id=79. The simplest way to overcome the issue is just not allow zero to be a valid priority for the rule. Fixes: dc276b5780c2 ("acl: new library") Cc: stable@dpdk.org Signed-off-by: Konstantin Ananyev <konstantin.ananyev@intel.com>
Diffstat (limited to 'lib/librte_acl')
-rw-r--r--lib/librte_acl/rte_acl.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/librte_acl/rte_acl.h b/lib/librte_acl/rte_acl.h
index 34c3b9c..aa22e70 100644
--- a/lib/librte_acl/rte_acl.h
+++ b/lib/librte_acl/rte_acl.h
@@ -88,7 +88,7 @@ enum {
RTE_ACL_TYPE_SHIFT = 29,
RTE_ACL_MAX_INDEX = RTE_LEN2MASK(RTE_ACL_TYPE_SHIFT, uint32_t),
RTE_ACL_MAX_PRIORITY = RTE_ACL_MAX_INDEX,
- RTE_ACL_MIN_PRIORITY = 0,
+ RTE_ACL_MIN_PRIORITY = 1,
};
#define RTE_ACL_MASKLEN_TO_BITMASK(v, s) \