* [PATCH] netfilter: ipset: move registration message to init from net_init
@ 2014-02-16 8:01 Ilia Mirkin
2014-02-16 10:21 ` Jozsef Kadlecsik
0 siblings, 1 reply; 2+ messages in thread
From: Ilia Mirkin @ 2014-02-16 8:01 UTC (permalink / raw)
To: netdev, Jozsef Kadlecsik; +Cc: Florian Westphal, Ilia Mirkin
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@alum.mit.edu>
---
The description is based on my meager understanding of what's going on. Feel
free to adjust it to match reality.
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 bac7e01..0fa2d9c 100644
--- a/net/netfilter/ipset/ip_set_core.c
+++ b/net/netfilter/ipset/ip_set_core.c
@@ -1973,7 +1973,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;
}
@@ -2024,6 +2023,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;
}
--
1.8.3.2
^ permalink raw reply related [flat|nested] 2+ messages in thread* Re: [PATCH] netfilter: ipset: move registration message to init from net_init
2014-02-16 8:01 [PATCH] netfilter: ipset: move registration message to init from net_init Ilia Mirkin
@ 2014-02-16 10:21 ` Jozsef Kadlecsik
0 siblings, 0 replies; 2+ messages in thread
From: Jozsef Kadlecsik @ 2014-02-16 10:21 UTC (permalink / raw)
To: Ilia Mirkin; +Cc: netdev, Florian Westphal
On Sun, 16 Feb 2014, Ilia Mirkin wrote:
> 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@alum.mit.edu>
I applied your patch in the ipset git tree and will submit the usual way
for kernel inclusion. Thanks!
Best regards,
Jozsef
> The description is based on my meager understanding of what's going on. Feel
> free to adjust it to match reality.
>
> 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 bac7e01..0fa2d9c 100644
> --- a/net/netfilter/ipset/ip_set_core.c
> +++ b/net/netfilter/ipset/ip_set_core.c
> @@ -1973,7 +1973,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;
> }
>
> @@ -2024,6 +2023,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;
> }
-
E-mail : kadlec@blackhole.kfki.hu, kadlecsik.jozsef@wigner.mta.hu
PGP key : http://www.kfki.hu/~kadlec/pgp_public_key.txt
Address : Wigner Research Centre for Physics, Hungarian Academy of Sciences
H-1525 Budapest 114, POB. 49, Hungary
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2014-02-16 10:21 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-02-16 8:01 [PATCH] netfilter: ipset: move registration message to init from net_init Ilia Mirkin
2014-02-16 10:21 ` Jozsef Kadlecsik
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox