summaryrefslogtreecommitdiff
path: root/obsolete-buildroot/sources/openwrt/kernel/patches/170-ip6tables-alignment.patch
diff options
context:
space:
mode:
authorMike Baker <mbm@openwrt.org>2004-08-24 23:50:14 +0000
committerMike Baker <mbm@openwrt.org>2004-08-24 23:50:14 +0000
commit5e346b8f70a5df1e1884d830508080ac87bc259a (patch)
treedb8218863c9124ae287832ccd846ad4d96c2e05e /obsolete-buildroot/sources/openwrt/kernel/patches/170-ip6tables-alignment.patch
parentf0dfe4b88acf3a3e307b4bcf5c6e5485e5aa4ffd (diff)
downloadmtk-20170518-5e346b8f70a5df1e1884d830508080ac87bc259a.zip
mtk-20170518-5e346b8f70a5df1e1884d830508080ac87bc259a.tar.gz
mtk-20170518-5e346b8f70a5df1e1884d830508080ac87bc259a.tar.bz2
massive changes - sstrip cleanup from mjn3 - various patches from nico and others: http://openwrt.org/forum/viewtopic.php?t=368
SVN-Revision: 145
Diffstat (limited to 'obsolete-buildroot/sources/openwrt/kernel/patches/170-ip6tables-alignment.patch')
-rw-r--r--obsolete-buildroot/sources/openwrt/kernel/patches/170-ip6tables-alignment.patch24
1 files changed, 24 insertions, 0 deletions
diff --git a/obsolete-buildroot/sources/openwrt/kernel/patches/170-ip6tables-alignment.patch b/obsolete-buildroot/sources/openwrt/kernel/patches/170-ip6tables-alignment.patch
new file mode 100644
index 0000000..d544f19
--- /dev/null
+++ b/obsolete-buildroot/sources/openwrt/kernel/patches/170-ip6tables-alignment.patch
@@ -0,0 +1,24 @@
+diff -Nur linux/net/ipv6/netfilter/ip6_tables.c linux.fixed/net/ipv6/netfilter/ip6_tables.c
+--- linux/net/ipv6/netfilter/ip6_tables.c Sat Aug 3 02:39:46 2002
++++ linux.fixed/net/ipv6/netfilter/ip6_tables.c Thu Sep 26 17:12:07 2002
+@@ -98,10 +98,8 @@
+ unsigned int hook_entry[NF_IP6_NUMHOOKS];
+ unsigned int underflow[NF_IP6_NUMHOOKS];
+
+- char padding[SMP_ALIGN((NF_IP6_NUMHOOKS*2+2)*sizeof(unsigned int))];
+-
+ /* ip6t_entry tables: one per CPU */
+- char entries[0];
++ char entries[0] ____cacheline_aligned;
+ };
+
+ static LIST_HEAD(ip6t_target);
+@@ -1425,7 +1423,7 @@
+ int ret;
+ struct ip6t_table_info *newinfo;
+ static struct ip6t_table_info bootstrap
+- = { 0, 0, 0, { 0 }, { 0 }, { }, { } };
++ = { 0, 0, 0, { 0 }, { 0 }, { } };
+
+ MOD_INC_USE_COUNT;
+ newinfo = vmalloc(sizeof(struct ip6t_table_info)