net: rename inet_frags_exit_net() to fqdir_exit()
Signed-off-by: Eric Dumazet <edumazet@google.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
6ce3b4dcee
commit
89fb900514
@ -109,7 +109,7 @@ static inline int inet_frags_init_net(struct fqdir *fqdir)
|
|||||||
atomic_long_set(&fqdir->mem, 0);
|
atomic_long_set(&fqdir->mem, 0);
|
||||||
return rhashtable_init(&fqdir->rhashtable, &fqdir->f->rhash_params);
|
return rhashtable_init(&fqdir->rhashtable, &fqdir->f->rhash_params);
|
||||||
}
|
}
|
||||||
void inet_frags_exit_net(struct fqdir *fqdir);
|
void fqdir_exit(struct fqdir *fqdir);
|
||||||
|
|
||||||
void inet_frag_kill(struct inet_frag_queue *q);
|
void inet_frag_kill(struct inet_frag_queue *q);
|
||||||
void inet_frag_destroy(struct inet_frag_queue *q);
|
void inet_frag_destroy(struct inet_frag_queue *q);
|
||||||
|
@ -464,7 +464,7 @@ static int __net_init lowpan_frags_init_net(struct net *net)
|
|||||||
return res;
|
return res;
|
||||||
res = lowpan_frags_ns_sysctl_register(net);
|
res = lowpan_frags_ns_sysctl_register(net);
|
||||||
if (res < 0)
|
if (res < 0)
|
||||||
inet_frags_exit_net(&ieee802154_lowpan->frags);
|
fqdir_exit(&ieee802154_lowpan->frags);
|
||||||
return res;
|
return res;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -474,7 +474,7 @@ static void __net_exit lowpan_frags_exit_net(struct net *net)
|
|||||||
net_ieee802154_lowpan(net);
|
net_ieee802154_lowpan(net);
|
||||||
|
|
||||||
lowpan_frags_ns_sysctl_unregister(net);
|
lowpan_frags_ns_sysctl_unregister(net);
|
||||||
inet_frags_exit_net(&ieee802154_lowpan->frags);
|
fqdir_exit(&ieee802154_lowpan->frags);
|
||||||
}
|
}
|
||||||
|
|
||||||
static struct pernet_operations lowpan_frags_ops = {
|
static struct pernet_operations lowpan_frags_ops = {
|
||||||
|
@ -145,13 +145,13 @@ static void inet_frags_free_cb(void *ptr, void *arg)
|
|||||||
inet_frag_put(fq);
|
inet_frag_put(fq);
|
||||||
}
|
}
|
||||||
|
|
||||||
void inet_frags_exit_net(struct fqdir *fqdir)
|
void fqdir_exit(struct fqdir *fqdir)
|
||||||
{
|
{
|
||||||
fqdir->high_thresh = 0; /* prevent creation of new frags */
|
fqdir->high_thresh = 0; /* prevent creation of new frags */
|
||||||
|
|
||||||
rhashtable_free_and_destroy(&fqdir->rhashtable, inet_frags_free_cb, NULL);
|
rhashtable_free_and_destroy(&fqdir->rhashtable, inet_frags_free_cb, NULL);
|
||||||
}
|
}
|
||||||
EXPORT_SYMBOL(inet_frags_exit_net);
|
EXPORT_SYMBOL(fqdir_exit);
|
||||||
|
|
||||||
void inet_frag_kill(struct inet_frag_queue *fq)
|
void inet_frag_kill(struct inet_frag_queue *fq)
|
||||||
{
|
{
|
||||||
|
@ -685,14 +685,14 @@ static int __net_init ipv4_frags_init_net(struct net *net)
|
|||||||
return res;
|
return res;
|
||||||
res = ip4_frags_ns_ctl_register(net);
|
res = ip4_frags_ns_ctl_register(net);
|
||||||
if (res < 0)
|
if (res < 0)
|
||||||
inet_frags_exit_net(&net->ipv4.frags);
|
fqdir_exit(&net->ipv4.frags);
|
||||||
return res;
|
return res;
|
||||||
}
|
}
|
||||||
|
|
||||||
static void __net_exit ipv4_frags_exit_net(struct net *net)
|
static void __net_exit ipv4_frags_exit_net(struct net *net)
|
||||||
{
|
{
|
||||||
ip4_frags_ns_ctl_unregister(net);
|
ip4_frags_ns_ctl_unregister(net);
|
||||||
inet_frags_exit_net(&net->ipv4.frags);
|
fqdir_exit(&net->ipv4.frags);
|
||||||
}
|
}
|
||||||
|
|
||||||
static struct pernet_operations ip4_frags_ops = {
|
static struct pernet_operations ip4_frags_ops = {
|
||||||
|
@ -506,14 +506,14 @@ static int nf_ct_net_init(struct net *net)
|
|||||||
return res;
|
return res;
|
||||||
res = nf_ct_frag6_sysctl_register(net);
|
res = nf_ct_frag6_sysctl_register(net);
|
||||||
if (res < 0)
|
if (res < 0)
|
||||||
inet_frags_exit_net(&net->nf_frag.frags);
|
fqdir_exit(&net->nf_frag.frags);
|
||||||
return res;
|
return res;
|
||||||
}
|
}
|
||||||
|
|
||||||
static void nf_ct_net_exit(struct net *net)
|
static void nf_ct_net_exit(struct net *net)
|
||||||
{
|
{
|
||||||
nf_ct_frags6_sysctl_unregister(net);
|
nf_ct_frags6_sysctl_unregister(net);
|
||||||
inet_frags_exit_net(&net->nf_frag.frags);
|
fqdir_exit(&net->nf_frag.frags);
|
||||||
}
|
}
|
||||||
|
|
||||||
static struct pernet_operations nf_ct_net_ops = {
|
static struct pernet_operations nf_ct_net_ops = {
|
||||||
|
@ -528,14 +528,14 @@ static int __net_init ipv6_frags_init_net(struct net *net)
|
|||||||
|
|
||||||
res = ip6_frags_ns_sysctl_register(net);
|
res = ip6_frags_ns_sysctl_register(net);
|
||||||
if (res < 0)
|
if (res < 0)
|
||||||
inet_frags_exit_net(&net->ipv6.frags);
|
fqdir_exit(&net->ipv6.frags);
|
||||||
return res;
|
return res;
|
||||||
}
|
}
|
||||||
|
|
||||||
static void __net_exit ipv6_frags_exit_net(struct net *net)
|
static void __net_exit ipv6_frags_exit_net(struct net *net)
|
||||||
{
|
{
|
||||||
ip6_frags_ns_sysctl_unregister(net);
|
ip6_frags_ns_sysctl_unregister(net);
|
||||||
inet_frags_exit_net(&net->ipv6.frags);
|
fqdir_exit(&net->ipv6.frags);
|
||||||
}
|
}
|
||||||
|
|
||||||
static struct pernet_operations ip6_frags_ops = {
|
static struct pernet_operations ip6_frags_ops = {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user