mirror of
https://github.com/openvswitch/ovs
synced 2025-10-25 15:07:05 +00:00
The architecture-specific hash library automatically selects either jhash or CRC32 if it is available on the current processor. Signed-off-by: Jesse Gross <jesse@nicira.com>
19 lines
407 B
C
19 lines
407 B
C
#ifndef _ASM_HASH_WRAPPER_H
|
|
#define _ASM_HASH_WRAPPER_H
|
|
|
|
#include <linux/version.h>
|
|
#if LINUX_VERSION_CODE >= KERNEL_VERSION(3,14,0)
|
|
#include_next <asm/hash.h>
|
|
#else
|
|
|
|
struct fast_hash_ops;
|
|
#ifdef CONFIG_X86
|
|
extern void setup_arch_fast_hash(struct fast_hash_ops *ops);
|
|
#else
|
|
static inline void setup_arch_fast_hash(struct fast_hash_ops *ops) { }
|
|
#endif
|
|
|
|
#endif /* < 3.14 */
|
|
|
|
#endif /* _ASM_HASH_WRAPPER_H */
|