diff options
author | Eric Dumazet <edumazet@google.com> | 2019-05-27 16:56:47 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-05-28 17:22:15 -0700 |
commit | 6b73d19711d0989cbdcd19c61faa0f79a1a5e466 (patch) | |
tree | d896cce4bf71785036333920ba40b885b208d280 /include/net/inet_frag.h | |
parent | 3fb321fde22ddc3adc83e1f690b1fad9dfbd24ef (diff) | |
download | linux-6b73d19711d0989cbdcd19c61faa0f79a1a5e466.tar.bz2 |
inet: frags: uninline fqdir_init()
fqdir_init() is not fast path and is getting bigger.
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 | 20 |
1 files changed, 1 insertions, 19 deletions
diff --git a/include/net/inet_frag.h b/include/net/inet_frag.h index 002f23c1a1a7..94092b1ef22e 100644 --- a/include/net/inet_frag.h +++ b/include/net/inet_frag.h @@ -109,25 +109,7 @@ struct inet_frags { int inet_frags_init(struct inet_frags *); void inet_frags_fini(struct inet_frags *); -static inline int fqdir_init(struct fqdir **fqdirp, struct inet_frags *f, - struct net *net) -{ - struct fqdir *fqdir = kzalloc(sizeof(*fqdir), GFP_KERNEL); - int res; - - if (!fqdir) - return -ENOMEM; - fqdir->f = f; - fqdir->net = net; - res = rhashtable_init(&fqdir->rhashtable, &fqdir->f->rhash_params); - if (res < 0) { - kfree(fqdir); - return res; - } - *fqdirp = fqdir; - return 0; -} - +int fqdir_init(struct fqdir **fqdirp, struct inet_frags *f, struct net *net); void fqdir_exit(struct fqdir *fqdir); void inet_frag_kill(struct inet_frag_queue *q); |