DPDK
21.11.9
lib
hash
rte_thash_gfni.h
1
/* SPDX-License-Identifier: BSD-3-Clause
2
* Copyright(c) 2021 Intel Corporation
3
*/
4
5
#ifndef _RTE_THASH_GFNI_H_
6
#define _RTE_THASH_GFNI_H_
7
8
#ifdef __cplusplus
9
extern
"C"
{
10
#endif
11
12
#include <
rte_log.h
>
13
14
#ifdef RTE_ARCH_X86
15
16
#include <
rte_thash_x86_gfni.h
>
17
18
#endif
19
20
#ifndef RTE_THASH_GFNI_DEFINED
21
39
__rte_experimental
40
static
inline
uint32_t
41
rte_thash_gfni(
const
uint64_t *mtrx
__rte_unused
,
42
const
uint8_t *key
__rte_unused
,
int
len
__rte_unused
)
43
{
44
RTE_LOG
(ERR, HASH,
"%s is undefined under given arch\n"
, __func__);
45
return
0;
46
}
47
68
__rte_experimental
69
static
inline
void
70
rte_thash_gfni_bulk(
const
uint64_t *mtrx
__rte_unused
,
71
int
len
__rte_unused
, uint8_t *tuple[]
__rte_unused
,
72
uint32_t val[], uint32_t num)
73
{
74
unsigned
int
i;
75
76
RTE_LOG
(ERR, HASH,
"%s is undefined under given arch\n"
, __func__);
77
for
(i = 0; i < num; i++)
78
val[i] = 0;
79
}
80
81
#endif
/* RTE_THASH_GFNI_DEFINED */
82
83
#ifdef __cplusplus
84
}
85
#endif
86
87
#endif
/* _RTE_THASH_GFNI_H_ */
__rte_unused
#define __rte_unused
Definition:
rte_common.h:123
rte_log.h
RTE_LOG
#define RTE_LOG(l, t,...)
Definition:
rte_log.h:341
rte_thash_x86_gfni.h
Generated by
1.9.4