netfilter: nft_meta: move bridge meta keys into nft_meta_bridge
authorwenxu <wenxu@ucloud.cn>
Fri, 5 Jul 2019 13:16:32 +0000 (21:16 +0800)
committerPablo Neira Ayuso <pablo@netfilter.org>
Fri, 5 Jul 2019 19:34:47 +0000 (21:34 +0200)
commit30e103fe24debce6f35f2e53cc763ed7be292df3
tree5d4f2301d974f5d541bfcdad4d1f4238aad3dd77
parent6aedd14b25dbcf6cfdf2da8569153d45b3e5d9fd
netfilter: nft_meta: move bridge meta keys into nft_meta_bridge

Separate bridge meta key from nft_meta to meta_bridge to avoid a
dependency between the bridge module and nft_meta when using the bridge
API available through include/linux/if_bridge.h

Signed-off-by: wenxu <wenxu@ucloud.cn>
Reviewed-by: Nikolay Aleksandrov <nikolay@cumulusnetworks.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
include/net/netfilter/nft_meta.h [new file with mode: 0644]
net/bridge/netfilter/Kconfig
net/bridge/netfilter/Makefile
net/bridge/netfilter/nft_meta_bridge.c [new file with mode: 0644]
net/netfilter/nf_tables_core.c
net/netfilter/nft_meta.c