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