netfilter: nft_meta_bridge: add NFT_META_BRI_IIFPVID support
authorwenxu <wenxu@ucloud.cn>
Fri, 5 Jul 2019 13:16:35 +0000 (21:16 +0800)
committerPablo Neira Ayuso <pablo@netfilter.org>
Fri, 5 Jul 2019 19:34:49 +0000 (21:34 +0200)
commitc54c7c685494fc0f1662091d4d0c4fc26e810471
tree12b96b788cfda4cd4df84ea2476023b200d6f697
parent7582f5b70f9a2335f3713edb9a2614a50f1f1a90
netfilter: nft_meta_bridge: add NFT_META_BRI_IIFPVID support

This patch allows you to match on the bridge port pvid, eg.

nft add rule bridge firewall zones counter meta ibrpvid 10

Signed-off-by: wenxu <wenxu@ucloud.cn>
Reviewed-by: Nikolay Aleksandrov <nikolay@cumulusnetworks.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
include/uapi/linux/netfilter/nf_tables.h
net/bridge/netfilter/nft_meta_bridge.c