diff options
author | Eric Dumazet <edumazet@google.com> | 2019-05-24 19:03:37 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-05-27 00:08:05 +0300 |
commit | 9cce45f22ceedf639cbb5fb5dfe612a278d36b58 (patch) | |
tree | b9f3fddc97b7a63477495f384c62cb996e6754f2 /include/net/inet_frag.h | |
parent | d2dfd43598f3ce5441daabc7b352cdfea811e021 (diff) | |
download | linux-9cce45f22ceedf639cbb5fb5dfe612a278d36b58.tar.xz |
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 'include/net/inet_frag.h')
-rw-r--r-- | include/net/inet_frag.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/net/inet_frag.h b/include/net/inet_frag.h index d1bfd5dbe2d4..fca246b0abd8 100644 --- a/include/net/inet_frag.h +++ b/include/net/inet_frag.h @@ -104,8 +104,9 @@ struct inet_frags { int inet_frags_init(struct inet_frags *); void inet_frags_fini(struct inet_frags *); -static inline int inet_frags_init_net(struct fqdir *fqdir) +static inline int fqdir_init(struct fqdir *fqdir, struct inet_frags *f) { + fqdir->f = f; atomic_long_set(&fqdir->mem, 0); return rhashtable_init(&fqdir->rhashtable, &fqdir->f->rhash_params); } |