Commit ded2d10e authored by Florian Westphal's avatar Florian Westphal Committed by Pablo Neira Ayuso

netfilter: ipt_CLUSTERIP: use clusterip_net to store pernet warning

No need to use struct net for this.
Signed-off-by: default avatarFlorian Westphal <fw@strlen.de>
Signed-off-by: default avatarPablo Neira Ayuso <pablo@netfilter.org>
parent 7c1829b6
...@@ -66,6 +66,7 @@ struct clusterip_net { ...@@ -66,6 +66,7 @@ struct clusterip_net {
/* lock protects the configs list */ /* lock protects the configs list */
spinlock_t lock; spinlock_t lock;
bool clusterip_deprecated_warning;
#ifdef CONFIG_PROC_FS #ifdef CONFIG_PROC_FS
struct proc_dir_entry *procdir; struct proc_dir_entry *procdir;
/* mutex protects the config->pde*/ /* mutex protects the config->pde*/
...@@ -544,10 +545,10 @@ static int clusterip_tg_check(const struct xt_tgchk_param *par) ...@@ -544,10 +545,10 @@ static int clusterip_tg_check(const struct xt_tgchk_param *par)
cn->hook_users++; cn->hook_users++;
if (!par->net->xt.clusterip_deprecated_warning) { if (!cn->clusterip_deprecated_warning) {
pr_info("ipt_CLUSTERIP is deprecated and it will removed soon, " pr_info("ipt_CLUSTERIP is deprecated and it will removed soon, "
"use xt_cluster instead\n"); "use xt_cluster instead\n");
par->net->xt.clusterip_deprecated_warning = true; cn->clusterip_deprecated_warning = true;
} }
cipinfo->config = config; cipinfo->config = config;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment