linux: make IPv6 builtin if selected (saves >30KB)
[openwrt/openwrt.git] / target / linux / generic / patches-4.1 / 644-bridge_optimize_netfilter_hooks.patch
index 5b5a7f3ccfb9111752037160d12a5751ffe3f762..f338e05d530f12d87746f3890412f57fc6513488 100644 (file)
@@ -1,3 +1,10 @@
+From: Felix Fietkau <nbd@openwrt.org>
+Subject: [PATCH] bridge: optimize netfilter hooks
+
+Bypass all netfilter hooks if the sysctls for that functionality have
+been disabled - eliminates the overhead of enabling
+CONFIG_BRIDGE_NETFILTER in the kernel config
+---
 --- a/net/bridge/br_forward.c
 +++ b/net/bridge/br_forward.c
 @@ -51,7 +51,7 @@ EXPORT_SYMBOL_GPL(br_dev_queue_push_xmit