Add AVX512 classify to the test coverage. Signed-off-by: Konstantin Ananyev <konstantin.anan...@intel.com> --- app/test/test_acl.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/app/test/test_acl.c b/app/test/test_acl.c index 333b34757..11d69d2d5 100644 --- a/app/test/test_acl.c +++ b/app/test/test_acl.c @@ -278,8 +278,8 @@ test_classify_alg(struct rte_acl_ctx *acx, struct ipv4_7tuple test_data[], /* set given classify alg, skip test if alg is not supported */ ret = rte_acl_set_ctx_classify(acx, alg); - if (ret == -ENOTSUP) - return 0; + if (ret != 0) + return (ret == -ENOTSUP) ? 0 : ret; /** * these will run quite a few times, it's necessary to test code paths @@ -341,6 +341,7 @@ test_classify_run(struct rte_acl_ctx *acx, struct ipv4_7tuple test_data[], RTE_ACL_CLASSIFY_AVX2, RTE_ACL_CLASSIFY_NEON, RTE_ACL_CLASSIFY_ALTIVEC, + RTE_ACL_CLASSIFY_AVX512, }; /* swap all bytes in the data to network order */ -- 2.17.1