acl: forbid rule with priority zero
authorKonstantin Ananyev <konstantin.ananyev@intel.com>
Fri, 24 Aug 2018 16:47:06 +0000 (17:47 +0100)
committerThomas Monjalon <thomas@monjalon.net>
Sun, 16 Sep 2018 09:53:25 +0000 (11:53 +0200)
commit53945477981cf75cf8d66e67a098b486e37df167
treeb4c139ca57cb5c721a8ac2efa98bb1d95a010fd1
parent23f1c424599008a990bfcdf283a0c935bf5b3cdf
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>
lib/librte_acl/rte_acl.h
test/test/test_acl.h