aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEric Dumazet <edumazet@google.com>2015-09-25 10:39:21 -0400
committerDavid S. Miller <davem@davemloft.net>2015-09-25 16:00:39 -0400
commit0f935dbedc49a5044ebff08b47eef35a2f2bbe92 (patch)
tree470e67d3dc8eb23d39878e2be349ff07bf6a0793
parent1c1e9d2b67897316770fc8a2e1acdd9f2787838d (diff)
tcp: constify tcp_v{4|6}_send_synack() socket argument
This documents fact that listener lock might not be held at the time SYNACK are sent. Signed-off-by: Eric Dumazet <edumazet@google.com> Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r--include/net/tcp.h2
-rw-r--r--net/ipv4/tcp_ipv4.c2
-rw-r--r--net/ipv6/tcp_ipv6.c2
3 files changed, 3 insertions, 3 deletions
diff --git a/include/net/tcp.h b/include/net/tcp.h
index 19f23590baa0..868c53532169 100644
--- a/include/net/tcp.h
+++ b/include/net/tcp.h
@@ -1717,7 +1717,7 @@ struct tcp_request_sock_ops {
1717 const struct request_sock *req, 1717 const struct request_sock *req,
1718 bool *strict); 1718 bool *strict);
1719 __u32 (*init_seq)(const struct sk_buff *skb); 1719 __u32 (*init_seq)(const struct sk_buff *skb);
1720 int (*send_synack)(struct sock *sk, struct dst_entry *dst, 1720 int (*send_synack)(const struct sock *sk, struct dst_entry *dst,
1721 struct flowi *fl, struct request_sock *req, 1721 struct flowi *fl, struct request_sock *req,
1722 u16 queue_mapping, struct tcp_fastopen_cookie *foc); 1722 u16 queue_mapping, struct tcp_fastopen_cookie *foc);
1723 void (*queue_hash_add)(struct sock *sk, struct request_sock *req, 1723 void (*queue_hash_add)(struct sock *sk, struct request_sock *req,
diff --git a/net/ipv4/tcp_ipv4.c b/net/ipv4/tcp_ipv4.c
index 1c1009d783f5..a23ba7daecbf 100644
--- a/net/ipv4/tcp_ipv4.c
+++ b/net/ipv4/tcp_ipv4.c
@@ -818,7 +818,7 @@ static void tcp_v4_reqsk_send_ack(struct sock *sk, struct sk_buff *skb,
818 * This still operates on a request_sock only, not on a big 818 * This still operates on a request_sock only, not on a big
819 * socket. 819 * socket.
820 */ 820 */
821static int tcp_v4_send_synack(struct sock *sk, struct dst_entry *dst, 821static int tcp_v4_send_synack(const struct sock *sk, struct dst_entry *dst,
822 struct flowi *fl, 822 struct flowi *fl,
823 struct request_sock *req, 823 struct request_sock *req,
824 u16 queue_mapping, 824 u16 queue_mapping,
diff --git a/net/ipv6/tcp_ipv6.c b/net/ipv6/tcp_ipv6.c
index 1071131a6c53..16fb299dcab8 100644
--- a/net/ipv6/tcp_ipv6.c
+++ b/net/ipv6/tcp_ipv6.c
@@ -434,7 +434,7 @@ out:
434} 434}
435 435
436 436
437static int tcp_v6_send_synack(struct sock *sk, struct dst_entry *dst, 437static int tcp_v6_send_synack(const struct sock *sk, struct dst_entry *dst,
438 struct flowi *fl, 438 struct flowi *fl,
439 struct request_sock *req, 439 struct request_sock *req,
440 u16 queue_mapping, 440 u16 queue_mapping,