[Devel] [PATCH RHEL7 COMMIT] ve/net: Delete allow_conntrack_allocation() from nf_synproxy

Konstantin Khorenko khorenko at virtuozzo.com
Mon Nov 7 00:00:05 PST 2016


The commit is pushed to "branch-rh7-3.10.0-493.vz7.25.x-ovz" and will appear at https://src.openvz.org/scm/ovz/vzkernel.git
after rh7-3.10.0-493.el7
------>
commit e31e4ae69d4348db20adf6bc1c1ff5ffa1b27232
Author: Kirill Tkhai <ktkhai at virtuozzo.com>
Date:   Mon Nov 7 12:00:04 2016 +0400

    ve/net: Delete allow_conntrack_allocation() from nf_synproxy
    
    Since nf_conntrack_alloc() is not called there anymore,
    it's not need to allow CT allocation there.
    
    To be merged to commit 894c8a374856
    "net: Mark conntrack users in xtables".
    
    https://jira.sw.ru/browse/PSBM-54823
    
    Signed-off-by: Kirill Tkhai <ktkhai at virtuozzo.com>
---
 net/netfilter/nf_synproxy_core.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/net/netfilter/nf_synproxy_core.c b/net/netfilter/nf_synproxy_core.c
index cf5428f1..8d69ddd 100644
--- a/net/netfilter/nf_synproxy_core.c
+++ b/net/netfilter/nf_synproxy_core.c
@@ -353,7 +353,6 @@ static int __net_init synproxy_net_init(struct net *net)
 	struct nf_conn *ct;
 	int err = -ENOMEM;
 
-	allow_conntrack_allocation(net);
 	ct = nf_ct_tmpl_alloc(net, &nf_ct_zone_dflt, GFP_KERNEL);
 	if (!ct)
 		goto err1;


More information about the Devel mailing list