numam-dpdk/lib/acl/acl_run_altivec.c
Bruce Richardson 99a2dd955f lib: remove librte_ prefix from directory names
There is no reason for the DPDK libraries to all have 'librte_' prefix on
the directory names. This prefix makes the directory names longer and also
makes it awkward to add features referring to individual libraries in the
build - should the lib names be specified with or without the prefix.
Therefore, we can just remove the library prefix and use the library's
unique name as the directory name, i.e. 'eal' rather than 'librte_eal'

Signed-off-by: Bruce Richardson <bruce.richardson@intel.com>
2021-04-21 14:04:09 +02:00

20 lines
550 B
C

/*
* SPDX-License-Identifier: BSD-3-Clause
* Copyright (C) IBM Corporation 2016.
*/
#include "acl_run_altivec.h"
int
rte_acl_classify_altivec(const struct rte_acl_ctx *ctx, const uint8_t **data,
uint32_t *results, uint32_t num, uint32_t categories)
{
if (likely(num >= MAX_SEARCHES_ALTIVEC8))
return search_altivec_8(ctx, data, results, num, categories);
else if (num >= MAX_SEARCHES_ALTIVEC4)
return search_altivec_4(ctx, data, results, num, categories);
else
return rte_acl_classify_scalar(ctx, data, results, num,
categories);
}