summaryrefslogtreecommitdiffstats
path: root/include/net/tcp.h
diff options
context:
space:
mode:
authorEric Dumazet <edumazet@google.com>2015-09-25 07:39:09 -0700
committerDavid S. Miller <davem@davemloft.net>2015-09-25 13:00:36 -0700
commitb1964b5fce389a5660139ca39c25ff294da07b4f (patch)
tree9e165bbd7f65719fa9f1330fe33edfa3f49b3e67 /include/net/tcp.h
parentb40cf18ef7961b6d67732e234780586590510ce1 (diff)
downloadlinux-b1964b5fce389a5660139ca39c25ff294da07b4f.tar.bz2
tcp: constify tcp_openreq_init_rwin()
Soon, listener socket wont be locked when tcp_openreq_init_rwin() is called. We need to read socket fields once, as their value could change under us. Signed-off-by: Eric Dumazet <edumazet@google.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net/tcp.h')
-rw-r--r--include/net/tcp.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/net/tcp.h b/include/net/tcp.h
index c006255a0df1..d37ad0c3ea9c 100644
--- a/include/net/tcp.h
+++ b/include/net/tcp.h
@@ -1207,7 +1207,8 @@ static inline int tcp_full_space(const struct sock *sk)
}
extern void tcp_openreq_init_rwin(struct request_sock *req,
- struct sock *sk, struct dst_entry *dst);
+ const struct sock *sk_listener,
+ const struct dst_entry *dst);
void tcp_enter_memory_pressure(struct sock *sk);