2017-12-19 15:49:03 +00:00
|
|
|
/* SPDX-License-Identifier: BSD-3-Clause
|
|
|
|
* Copyright(c) 2010-2014 Intel Corporation
|
2014-06-13 11:26:50 +00:00
|
|
|
*/
|
|
|
|
|
2015-01-20 18:41:00 +00:00
|
|
|
#include "acl_run_sse.h"
|
2014-06-13 11:26:50 +00:00
|
|
|
|
|
|
|
int
|
2014-09-01 15:28:44 +00:00
|
|
|
rte_acl_classify_sse(const struct rte_acl_ctx *ctx, const uint8_t **data,
|
2014-06-13 11:26:50 +00:00
|
|
|
uint32_t *results, uint32_t num, uint32_t categories)
|
|
|
|
{
|
|
|
|
if (likely(num >= MAX_SEARCHES_SSE8))
|
2014-09-01 15:28:44 +00:00
|
|
|
return search_sse_8(ctx, data, results, num, categories);
|
2014-06-13 11:26:50 +00:00
|
|
|
else if (num >= MAX_SEARCHES_SSE4)
|
2014-09-01 15:28:44 +00:00
|
|
|
return search_sse_4(ctx, data, results, num, categories);
|
2014-06-13 11:26:50 +00:00
|
|
|
else
|
2015-01-20 18:41:02 +00:00
|
|
|
return rte_acl_classify_scalar(ctx, data, results, num,
|
|
|
|
categories);
|
2014-06-13 11:26:50 +00:00
|
|
|
}
|