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 <eal_export.h> 8 : : #include <rte_log.h> 9 : : #include <rte_thash_gfni.h> 10 : : 11 [ - + ]: 252 : RTE_LOG_REGISTER_SUFFIX(hash_gfni_logtype, gfni, INFO); 12 : : #define RTE_LOGTYPE_HASH hash_gfni_logtype 13 : : #define HASH_LOG(level, ...) \ 14 : : RTE_LOG_LINE(level, HASH, "" __VA_ARGS__) 15 : : 16 : : RTE_EXPORT_INTERNAL_SYMBOL(rte_thash_gfni_stub) 17 : : uint32_t 18 : 0 : rte_thash_gfni_stub(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 : : RTE_EXPORT_INTERNAL_SYMBOL(rte_thash_gfni_bulk_stub) 33 : : void 34 : 0 : rte_thash_gfni_bulk_stub(const uint64_t *mtrx __rte_unused, 35 : : int len __rte_unused, uint8_t *tuple[] __rte_unused, 36 : : uint32_t val[], uint32_t num) 37 : : { 38 : : unsigned int i; 39 : : 40 : : static bool warned; 41 : : 42 [ # # ]: 0 : if (!warned) { 43 : 0 : warned = true; 44 : 0 : HASH_LOG(ERR, 45 : : "%s is undefined under given arch", __func__); 46 : : } 47 : : 48 [ # # ]: 0 : for (i = 0; i < num; i++) 49 : 0 : val[i] = 0; 50 : 0 : }