summaryrefslogtreecommitdiffstats
path: root/main/linux-grsec/xfrm-cache-size-revert.patch
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2010-03-18 08:18:00 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2010-03-18 10:13:17 +0000
commit6c08a747e94cb5a2914337f7444304ab0d3b18d3 (patch)
tree56a4880a94c19af9f5af6f5550c6181d0227be24 /main/linux-grsec/xfrm-cache-size-revert.patch
parenta984987efa2e80601bea6fb44ab28c786850acd4 (diff)
downloadaports-1.10.1.tar.bz2
aports-1.10.1.tar.xz
main/linux-grsec: revert xfrm cache size patchv1.10.1
(cherry picked from commit cb0c20d57cec46314cd0cc41cd09c28147636850)
Diffstat (limited to 'main/linux-grsec/xfrm-cache-size-revert.patch')
-rw-r--r--main/linux-grsec/xfrm-cache-size-revert.patch12
1 files changed, 12 insertions, 0 deletions
diff --git a/main/linux-grsec/xfrm-cache-size-revert.patch b/main/linux-grsec/xfrm-cache-size-revert.patch
new file mode 100644
index 00000000..c8fcbd0d
--- /dev/null
+++ b/main/linux-grsec/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);