xref: /linux/net/netfilter/nft_set_pipapo_avx2.h (revision 4f38da1f027ea2c9f01bb71daa7a299c191b6940)
1 /* SPDX-License-Identifier: GPL-2.0-only */
2 #ifndef _NFT_SET_PIPAPO_AVX2_H
3 
4 #if defined(CONFIG_X86_64) && !defined(CONFIG_UML)
5 #include <asm/fpu/xstate.h>
6 #define NFT_PIPAPO_ALIGN	(XSAVE_YMM_SIZE / BITS_PER_BYTE)
7 
8 struct nft_pipapo_match;
9 bool nft_pipapo_avx2_estimate(const struct nft_set_desc *desc, u32 features,
10 			      struct nft_set_estimate *est);
11 struct nft_pipapo_elem *pipapo_get_avx2(const struct nft_pipapo_match *m,
12 					const u8 *data, u8 genmask,
13 					u64 tstamp);
14 #endif /* defined(CONFIG_X86_64) && !defined(CONFIG_UML) */
15 
16 #endif /* _NFT_SET_PIPAPO_AVX2_H */
17