Commit f68a181f authored by Eric Dumazet's avatar Eric Dumazet Committed by David S. Miller

tcp: constify tcp_rto_min() and tcp_rto_min_us() argument

Make clear these functions do not change any field from TCP socket.
Signed-off-by: default avatarEric Dumazet <edumazet@google.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 5033f58d
...@@ -719,7 +719,7 @@ static inline void tcp_fast_path_check(struct sock *sk) ...@@ -719,7 +719,7 @@ static inline void tcp_fast_path_check(struct sock *sk)
} }
/* Compute the actual rto_min value */ /* Compute the actual rto_min value */
static inline u32 tcp_rto_min(struct sock *sk) static inline u32 tcp_rto_min(const struct sock *sk)
{ {
const struct dst_entry *dst = __sk_dst_get(sk); const struct dst_entry *dst = __sk_dst_get(sk);
u32 rto_min = inet_csk(sk)->icsk_rto_min; u32 rto_min = inet_csk(sk)->icsk_rto_min;
...@@ -729,7 +729,7 @@ static inline u32 tcp_rto_min(struct sock *sk) ...@@ -729,7 +729,7 @@ static inline u32 tcp_rto_min(struct sock *sk)
return rto_min; return rto_min;
} }
static inline u32 tcp_rto_min_us(struct sock *sk) static inline u32 tcp_rto_min_us(const struct sock *sk)
{ {
return jiffies_to_usecs(tcp_rto_min(sk)); return jiffies_to_usecs(tcp_rto_min(sk));
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment