DPDK  22.11.5-rc1
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_compat.h>
13 #include <rte_log.h>
14 
15 #ifdef RTE_ARCH_X86
16 
17 #include <rte_thash_x86_gfni.h>
18 
19 #endif
20 
21 #ifndef RTE_THASH_GFNI_DEFINED
22 
40 __rte_experimental
41 static inline uint32_t
42 rte_thash_gfni(const uint64_t *mtrx __rte_unused,
43  const uint8_t *key __rte_unused, int len __rte_unused)
44 {
45  RTE_LOG(ERR, HASH, "%s is undefined under given arch\n", __func__);
46  return 0;
47 }
48 
69 __rte_experimental
70 static inline void
71 rte_thash_gfni_bulk(const uint64_t *mtrx __rte_unused,
72  int len __rte_unused, uint8_t *tuple[] __rte_unused,
73  uint32_t val[], uint32_t num)
74 {
75  unsigned int i;
76 
77  RTE_LOG(ERR, HASH, "%s is undefined under given arch\n", __func__);
78  for (i = 0; i < num; i++)
79  val[i] = 0;
80 }
81 
82 #endif /* RTE_THASH_GFNI_DEFINED */
83 
84 #ifdef __cplusplus
85 }
86 #endif
87 
88 #endif /* _RTE_THASH_GFNI_H_ */
#define RTE_LOG(l, t,...)
Definition: rte_log.h:335
#define __rte_unused
Definition: rte_common.h:120