aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv4
diff options
context:
space:
mode:
authorEric Dumazet <edumazet@google.com>2019-05-24 09:03:37 -0700
committerDavid S. Miller <davem@davemloft.net>2019-05-26 14:08:05 -0700
commit9cce45f22ceedf639cbb5fb5dfe612a278d36b58 (patch)
treeb9f3fddc97b7a63477495f384c62cb996e6754f2 /net/ipv4
parentieee820154: 6lowpan: no longer reference init_net in lowpan_frags_ns_ctl_table (diff)
downloadlinux-dev-9cce45f22ceedf639cbb5fb5dfe612a278d36b58.tar.xz
linux-dev-9cce45f22ceedf639cbb5fb5dfe612a278d36b58.zip
net: rename inet_frags_init_net() to fdir_init()
And pass an extra parameter, since we will soon dynamically allocate fqdir structures. Signed-off-by: Eric Dumazet <edumazet@google.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4')
-rw-r--r--net/ipv4/ip_fragment.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/net/ipv4/ip_fragment.c b/net/ipv4/ip_fragment.c
index fb035f4f36ca..d95592d52981 100644
--- a/net/ipv4/ip_fragment.c
+++ b/net/ipv4/ip_fragment.c
@@ -672,9 +672,8 @@ static int __net_init ipv4_frags_init_net(struct net *net)
net->ipv4.fqdir.timeout = IP_FRAG_TIME;
net->ipv4.fqdir.max_dist = 64;
- net->ipv4.fqdir.f = &ip4_frags;
- res = inet_frags_init_net(&net->ipv4.fqdir);
+ res = fqdir_init(&net->ipv4.fqdir, &ip4_frags);
if (res < 0)
return res;
res = ip4_frags_ns_ctl_register(net);