[Devel] [PATCH RHEL7 COMMIT] ms/netfilter: ipset: move registration message to init from net_init

Konstantin Khorenko khorenko at virtuozzo.com
Tue Apr 12 03:31:23 PDT 2016


The commit is pushed to "branch-rh7-3.10.0-327.10.1.vz7.12.x-ovz" and will appear at https://src.openvz.org/scm/ovz/vzkernel.git
after rh7-3.10.0-327.10.1.vz7.12.7
------>
commit e704526633ddc2a205a46f87254f91eee9c0de76
Author: Ilia Mirkin <imirkin at alum.mit.edu>
Date:   Tue Apr 12 14:31:22 2016 +0400

    ms/netfilter: ipset: move registration message to init from net_init
    
    MS commit 6843bc3c5681 ("netfilter: ipset: move registration message to
    init from net_init")
    
    Commit 1785e8f473 ("netfiler: ipset: Add net namespace for ipset") moved
    the initialization print into net_init, which can get called a lot due
    to namespaces. Move it back into init, reduce to pr_info.
    
    Signed-off-by: Ilia Mirkin <imirkin at alum.mit.edu>
    Signed-off-by: Jozsef Kadlecsik <kadlec at blackhole.kfki.hu>
    
    https://jira.sw.ru/browse/PSBM-45281
    
    Signed-off-by: Pavel Tikhomirov <ptikhomirov at virtuozzo.com>
    Reviewed-by: Kirill Tkhai <ktkhai at virtuozzo.com>
---
 net/netfilter/ipset/ip_set_core.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/net/netfilter/ipset/ip_set_core.c b/net/netfilter/ipset/ip_set_core.c
index 6d668ae..02b8ff3 100644
--- a/net/netfilter/ipset/ip_set_core.c
+++ b/net/netfilter/ipset/ip_set_core.c
@@ -1869,7 +1869,6 @@ ip_set_net_init(struct net *net)
 		return -ENOMEM;
 	inst->is_deleted = 0;
 	rcu_assign_pointer(inst->ip_set_list, list);
-	pr_notice("ip_set: protocol %u\n", IPSET_PROTOCOL);
 	return 0;
 }
 
@@ -1920,6 +1919,7 @@ ip_set_init(void)
 		nfnetlink_subsys_unregister(&ip_set_netlink_subsys);
 		return ret;
 	}
+	pr_info("ip_set: protocol %u\n", IPSET_PROTOCOL);
 	return 0;
 }
 


More information about the Devel mailing list