summaryrefslogtreecommitdiffstats
path: root/include/net/inet_sock.h
diff options
context:
space:
mode:
authorEric Dumazet <edumazet@google.com>2015-03-18 02:32:27 +0100
committerDavid S. Miller <davem@davemloft.net>2015-03-18 03:01:56 +0100
commite49bb337d77d54afebe4fe5b9008955e1337f83d (patch)
tree9a82656ce9ea7d0399b9ce102caf5a693fa919d3 /include/net/inet_sock.h
parentinet: add sk_listener argument to inet_reqsk_alloc() (diff)
downloadlinux-e49bb337d77d54afebe4fe5b9008955e1337f83d.tar.xz
linux-e49bb337d77d54afebe4fe5b9008955e1337f83d.zip
inet: uninline inet_reqsk_alloc()
inet_reqsk_alloc() is becoming fat and should not be inlined. Signed-off-by: Eric Dumazet <edumazet@google.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net/inet_sock.h')
-rw-r--r--include/net/inet_sock.h24
1 files changed, 2 insertions, 22 deletions
diff --git a/include/net/inet_sock.h b/include/net/inet_sock.h
index cf7abb00941b..6fec7343070f 100644
--- a/include/net/inet_sock.h
+++ b/include/net/inet_sock.h
@@ -244,28 +244,8 @@ static inline unsigned int __inet_ehashfn(const __be32 laddr,
initval);
}
-static inline struct request_sock *
-inet_reqsk_alloc(const struct request_sock_ops *ops, struct sock *sk_listener)
-{
- struct request_sock *req = reqsk_alloc(ops);
-
- if (req) {
- struct inet_request_sock *ireq = inet_rsk(req);
-
- kmemcheck_annotate_bitfield(ireq, flags);
- ireq->opt = NULL;
- atomic64_set(&ireq->ir_cookie, 0);
- ireq->ireq_state = TCP_NEW_SYN_RECV;
- write_pnet(&ireq->ireq_net, sock_net(sk_listener));
-
- /* Following is temporary. It is coupled with debugging
- * helpers in reqsk_put() & reqsk_free()
- */
- atomic_set(&ireq->ireq_refcnt, 0);
- }
-
- return req;
-}
+struct request_sock *inet_reqsk_alloc(const struct request_sock_ops *ops,
+ struct sock *sk_listener);
static inline __u8 inet_sk_flowi_flags(const struct sock *sk)
{