1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
|
/* SPDX-License-Identifier: BSD-3-Clause
* Copyright(c) 2021 Intel Corporation
*/
#include <stdbool.h>
#include <rte_log.h>
#include <rte_thash_gfni.h>
RTE_LOG_REGISTER_SUFFIX(hash_gfni_logtype, gfni, INFO);
#define RTE_LOGTYPE_HASH hash_gfni_logtype
#define HASH_LOG(level, ...) \
RTE_LOG_LINE(level, HASH, "" __VA_ARGS__)
uint32_t
rte_thash_gfni_stub(const uint64_t *mtrx __rte_unused,
const uint8_t *key __rte_unused, int len __rte_unused)
{
static bool warned;
if (!warned) {
warned = true;
HASH_LOG(ERR,
"%s is undefined under given arch", __func__);
}
return 0;
}
void
rte_thash_gfni_bulk_stub(const uint64_t *mtrx __rte_unused,
int len __rte_unused, uint8_t *tuple[] __rte_unused,
uint32_t val[], uint32_t num)
{
unsigned int i;
static bool warned;
if (!warned) {
warned = true;
HASH_LOG(ERR,
"%s is undefined under given arch", __func__);
}
for (i = 0; i < num; i++)
val[i] = 0;
}
|