aboutsummaryrefslogtreecommitdiffstats
path: root/main/linux-pae/xfrm-cache-size-revert.patch
diff options
context:
space:
mode:
authorCedric Schieli <cschieli@gmail.com>2010-03-21 12:31:06 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2010-03-31 08:31:54 +0000
commit52880362233e075e04275cb4b0f03f536b234dca (patch)
tree596efc7d4fff041d81943dfb8a4eeb729a3356b3 /main/linux-pae/xfrm-cache-size-revert.patch
parent30a60b2df8350bb862bc64fecdfb581b9cb5011b (diff)
downloadaports-52880362233e075e04275cb4b0f03f536b234dca.tar.gz
aports-52880362233e075e04275cb4b0f03f536b234dca.tar.bz2
aports-52880362233e075e04275cb4b0f03f536b234dca.tar.xz
main/linux-pae: new aport
Signed-off-by: Cedric Schieli <cschieli@gmail.com>
Diffstat (limited to 'main/linux-pae/xfrm-cache-size-revert.patch')
-rw-r--r--main/linux-pae/xfrm-cache-size-revert.patch12
1 files changed, 12 insertions, 0 deletions
diff --git a/main/linux-pae/xfrm-cache-size-revert.patch b/main/linux-pae/xfrm-cache-size-revert.patch
new file mode 100644
index 0000000000..c8fcbd0d79
--- /dev/null
+++ b/main/linux-pae/xfrm-cache-size-revert.patch
@@ -0,0 +1,12 @@
+diff --git a/net/ipv4/xfrm4_policy.c b/net/ipv4/xfrm4_policy.c
+index 74fb2eb..e158860 100644
+--- a/net/ipv4/xfrm4_policy.c
++++ b/net/ipv4/xfrm4_policy.c
+@@ -308,7 +308,6 @@ void __init xfrm4_init(int rt_max_size)
+ * That will let us store an ipsec connection per route table entry,
+ * and start cleaning when were 1/2 full
+ */
+- xfrm4_dst_ops.gc_thresh = rt_max_size/2;
+ #ifdef CONFIG_SYSCTL
+ sysctl_hdr = register_net_sysctl_table(&init_net, net_ipv4_ctl_path,
+ xfrm4_policy_table);