test mbuf attach
[dpdk.git] / lib / librte_acl / acl_run_altivec.c
1 /*
2  * SPDX-License-Identifier: BSD-3-Clause
3  * Copyright (C) IBM Corporation 2016.
4  */
5
6 #include "acl_run_altivec.h"
7
8 int
9 rte_acl_classify_altivec(const struct rte_acl_ctx *ctx, const uint8_t **data,
10         uint32_t *results, uint32_t num, uint32_t categories)
11 {
12         if (likely(num >= MAX_SEARCHES_ALTIVEC8))
13                 return search_altivec_8(ctx, data, results, num, categories);
14         else if (num >= MAX_SEARCHES_ALTIVEC4)
15                 return search_altivec_4(ctx, data, results, num, categories);
16         else
17                 return rte_acl_classify_scalar(ctx, data, results, num,
18                         categories);
19 }