Skip to content

Commit bd2bbdb

Browse files
Florian Westphalummakynes
authored andcommitted
netfilter: merge meta_bridge into nft_meta
It overcomplicates things for no reason. nft_meta_bridge only offers retrieval of bridge port interface name. Because of this being its own module, we had to export all nft_meta functions, which we can then make static again (which even reduces the size of nft_meta -- including bridge port retrieval...): before: text data bss dec hex filename 1838 832 0 2670 a6e net/bridge/netfilter/nft_meta_bridge.ko 6147 936 1 7084 1bac net/netfilter/nft_meta.ko after: 5826 936 1 6763 1a6b net/netfilter/nft_meta.ko Signed-off-by: Florian Westphal <[email protected]> Signed-off-by: Pablo Neira Ayuso <[email protected]>
1 parent 99a0efb commit bd2bbdb

File tree

5 files changed

+58
-219
lines changed

5 files changed

+58
-219
lines changed

include/net/netfilter/nft_meta.h

Lines changed: 0 additions & 44 deletions
This file was deleted.

net/bridge/netfilter/Kconfig

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,6 @@ menuconfig NF_TABLES_BRIDGE
88
bool "Ethernet Bridge nf_tables support"
99

1010
if NF_TABLES_BRIDGE
11-
12-
config NFT_BRIDGE_META
13-
tristate "Netfilter nf_table bridge meta support"
14-
depends on NFT_META
15-
help
16-
Add support for bridge dedicated meta key.
17-
1811
config NFT_BRIDGE_REJECT
1912
tristate "Netfilter nf_tables bridge reject support"
2013
depends on NFT_REJECT && NFT_REJECT_IPV4 && NFT_REJECT_IPV6

net/bridge/netfilter/Makefile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
# Makefile for the netfilter modules for Link Layer filtering on a bridge.
44
#
55

6-
obj-$(CONFIG_NFT_BRIDGE_META) += nft_meta_bridge.o
76
obj-$(CONFIG_NFT_BRIDGE_REJECT) += nft_reject_bridge.o
87

98
# packet logging

net/bridge/netfilter/nft_meta_bridge.c

Lines changed: 0 additions & 135 deletions
This file was deleted.

0 commit comments

Comments
 (0)