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