1 /* SPDX-License-Identifier: BSD-3-Clause 2 * Copyright(c) 2022 Intel Corporation 3 */ 4 #ifndef __INCLUDE_RTE_SWX_HASH_FUNC_H__ 5 #define __INCLUDE_RTE_SWX_HASH_FUNC_H__ 6 7 /** 8 * @file 9 * RTE SWX Hash Function 10 */ 11 12 #include <stdint.h> 13 14 /** 15 * Hash function prototype 16 * 17 * @param[in] key 18 * Key to hash. Must be non-NULL. 19 * @param[in] length 20 * Key length in bytes. 21 * @param[in] seed 22 * Hash seed. 23 * @return 24 * Hash value. 25 */ 26 typedef uint32_t 27 (*rte_swx_hash_func_t)(const void *key, 28 uint32_t length, 29 uint32_t seed); 30 31 #endif 32