diff options
author | Eric Dumazet <edumazet@google.com> | 2015-03-17 21:32:27 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-03-17 22:01:56 -0400 |
commit | e49bb337d77d54afebe4fe5b9008955e1337f83d (patch) | |
tree | 9a82656ce9ea7d0399b9ce102caf5a693fa919d3 /include/net | |
parent | 407640de2152e33341ce1131dac269672c3d50f7 (diff) |
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')
-rw-r--r-- | include/net/inet_sock.h | 24 |
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, | |||
244 | initval); | 244 | initval); |
245 | } | 245 | } |
246 | 246 | ||
247 | static inline struct request_sock * | 247 | struct request_sock *inet_reqsk_alloc(const struct request_sock_ops *ops, |
248 | inet_reqsk_alloc(const struct request_sock_ops *ops, struct sock *sk_listener) | 248 | struct sock *sk_listener); |
249 | { | ||
250 | struct request_sock *req = reqsk_alloc(ops); | ||
251 | |||
252 | if (req) { | ||
253 | struct inet_request_sock *ireq = inet_rsk(req); | ||
254 | |||
255 | kmemcheck_annotate_bitfield(ireq, flags); | ||
256 | ireq->opt = NULL; | ||
257 | atomic64_set(&ireq->ir_cookie, 0); | ||
258 | ireq->ireq_state = TCP_NEW_SYN_RECV; | ||
259 | write_pnet(&ireq->ireq_net, sock_net(sk_listener)); | ||
260 | |||
261 | /* Following is temporary. It is coupled with debugging | ||
262 | * helpers in reqsk_put() & reqsk_free() | ||
263 | */ | ||
264 | atomic_set(&ireq->ireq_refcnt, 0); | ||
265 | } | ||
266 | |||
267 | return req; | ||
268 | } | ||
269 | 249 | ||
270 | static inline __u8 inet_sk_flowi_flags(const struct sock *sk) | 250 | static inline __u8 inet_sk_flowi_flags(const struct sock *sk) |
271 | { | 251 | { |