DPDK 23.11.0
Loading...
Searching...
No Matches
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
9extern "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
36static inline uint32_t
37rte_thash_gfni(const uint64_t *mtrx __rte_unused,
38 const uint8_t *key __rte_unused, int len __rte_unused)
39{
40 RTE_LOG(ERR, HASH, "%s is undefined under given arch\n", __func__);
41 return 0;
42}
43
61static inline void
62rte_thash_gfni_bulk(const uint64_t *mtrx __rte_unused,
63 int len __rte_unused, uint8_t *tuple[] __rte_unused,
64 uint32_t val[], uint32_t num)
65{
66 unsigned int i;
67
68 RTE_LOG(ERR, HASH, "%s is undefined under given arch\n", __func__);
69 for (i = 0; i < num; i++)
70 val[i] = 0;
71}
72
73#endif /* RTE_THASH_GFNI_DEFINED */
74
75#ifdef __cplusplus
76}
77#endif
78
79#endif /* _RTE_THASH_GFNI_H_ */
#define __rte_unused
Definition rte_common.h:143
#define RTE_LOG(l, t,...)
Definition rte_log.h:331