2
0
mirror of https://github.com/openvswitch/ovs synced 2025-10-25 15:07:05 +00:00
Files
openvswitch/datapath/linux/compat/include/asm/hash.h
Jesse Gross 3c851001cb datapath: Backport for architecture hash library.
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>
2013-12-16 12:36:26 -08:00

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 */