aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/generic/patches-4.3
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2015-11-10 21:11:25 +0000
committerFelix Fietkau <nbd@openwrt.org>2015-11-10 21:11:25 +0000
commit99af1cf41095e05c233e02aa5ea5e64c2d545c0e (patch)
treecf2c549157e2f46d3d14a699f0e5df89a80c2c85 /target/linux/generic/patches-4.3
parentd3ba30b9cd72c07f2e973bb398110f897e53154e (diff)
downloadupstream-99af1cf41095e05c233e02aa5ea5e64c2d545c0e.tar.gz
upstream-99af1cf41095e05c233e02aa5ea5e64c2d545c0e.tar.bz2
upstream-99af1cf41095e05c233e02aa5ea5e64c2d545c0e.zip
kernel: fix breakage in the 4.3 version of 611-netfilter_match_bypass_default_table.patch
Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 47447
Diffstat (limited to 'target/linux/generic/patches-4.3')
-rw-r--r--target/linux/generic/patches-4.3/611-netfilter_match_bypass_default_table.patch9
1 files changed, 6 insertions, 3 deletions
diff --git a/target/linux/generic/patches-4.3/611-netfilter_match_bypass_default_table.patch b/target/linux/generic/patches-4.3/611-netfilter_match_bypass_default_table.patch
index c43851904a..38f1350130 100644
--- a/target/linux/generic/patches-4.3/611-netfilter_match_bypass_default_table.patch
+++ b/target/linux/generic/patches-4.3/611-netfilter_match_bypass_default_table.patch
@@ -62,14 +62,17 @@
private = table->private;
cpu = smp_processor_id();
/*
-@@ -357,6 +365,20 @@ ipt_do_table(struct sk_buff *skb,
+@@ -357,6 +365,23 @@ ipt_do_table(struct sk_buff *skb,
*/
smp_read_barrier_depends();
table_base = private->entries;
+
+ e = get_entry(table_base, private->hook_entry[hook]);
+ if (ipt_handle_default_rule(e, &verdict)) {
-+ ADD_COUNTER(e->counters, skb->len, 1);
++ struct xt_counters *counter;
++
++ counter = xt_get_this_cpu_counter(&e->counters);
++ ADD_COUNTER(*counter, skb->len, 1);
+ local_bh_enable();
+ return verdict;
+ }
@@ -83,7 +86,7 @@
jumpstack = (struct ipt_entry **)private->jumpstack[cpu];
/* Switch to alternate jumpstack if we're being invoked via TEE.
-@@ -369,7 +391,19 @@ ipt_do_table(struct sk_buff *skb,
+@@ -369,7 +394,19 @@ ipt_do_table(struct sk_buff *skb,
if (static_key_false(&xt_tee_enabled))
jumpstack += private->stacksize * __this_cpu_read(nf_skb_duplicated);