diff options
author | Christoph Paasch <christoph.paasch@uclouvain.be> | 2012-09-18 10:19:23 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-09-20 17:12:27 -0400 |
commit | bb68b64724a4fd6b93d83b39aeffa4aadb2562fc (patch) | |
tree | ed1e4a45bc924fb064d36b6ec12359eab19aa875 /include/linux/tcp.h | |
parent | 9baa0b0364103dd726384c71db30b74044754743 (diff) |
ipv4: Don't add TCP-code in inet_sock_destruct
Signed-off-by: Christoph Paasch <christoph.paasch@uclouvain.be>
Acked-by: H.K. Jerry Chu <hkchu@google.com>
Acked-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux/tcp.h')
-rw-r--r-- | include/linux/tcp.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/linux/tcp.h b/include/linux/tcp.h index ae46df590629..67c789ae719c 100644 --- a/include/linux/tcp.h +++ b/include/linux/tcp.h | |||
@@ -574,6 +574,8 @@ static inline bool fastopen_cookie_present(struct tcp_fastopen_cookie *foc) | |||
574 | return foc->len != -1; | 574 | return foc->len != -1; |
575 | } | 575 | } |
576 | 576 | ||
577 | extern void tcp_sock_destruct(struct sock *sk); | ||
578 | |||
577 | static inline int fastopen_init_queue(struct sock *sk, int backlog) | 579 | static inline int fastopen_init_queue(struct sock *sk, int backlog) |
578 | { | 580 | { |
579 | struct request_sock_queue *queue = | 581 | struct request_sock_queue *queue = |
@@ -585,6 +587,8 @@ static inline int fastopen_init_queue(struct sock *sk, int backlog) | |||
585 | sk->sk_allocation); | 587 | sk->sk_allocation); |
586 | if (queue->fastopenq == NULL) | 588 | if (queue->fastopenq == NULL) |
587 | return -ENOMEM; | 589 | return -ENOMEM; |
590 | |||
591 | sk->sk_destruct = tcp_sock_destruct; | ||
588 | spin_lock_init(&queue->fastopenq->lock); | 592 | spin_lock_init(&queue->fastopenq->lock); |
589 | } | 593 | } |
590 | queue->fastopenq->max_qlen = backlog; | 594 | queue->fastopenq->max_qlen = backlog; |