Merge tag 'ntb-4.20' of git://github.com/jonmason/ntb
[linux-2.6-block.git] / net / netfilter / nf_tables_set_core.c
CommitLineData
e240cd0d
PNA
1/* SPDX-License-Identifier: GPL-2.0 */
2#include <net/netfilter/nf_tables_core.h>
3
4static int __init nf_tables_set_module_init(void)
5{
6 nft_register_set(&nft_set_hash_fast_type);
7 nft_register_set(&nft_set_hash_type);
8 nft_register_set(&nft_set_rhash_type);
9 nft_register_set(&nft_set_bitmap_type);
10 nft_register_set(&nft_set_rbtree_type);
11
12 return 0;
13}
14
15static void __exit nf_tables_set_module_exit(void)
16{
17 nft_unregister_set(&nft_set_rbtree_type);
18 nft_unregister_set(&nft_set_bitmap_type);
19 nft_unregister_set(&nft_set_rhash_type);
20 nft_unregister_set(&nft_set_hash_type);
21 nft_unregister_set(&nft_set_hash_fast_type);
22}
23
24module_init(nf_tables_set_module_init);
25module_exit(nf_tables_set_module_exit);
26
27MODULE_LICENSE("GPL");
28MODULE_ALIAS_NFT_SET();