Commit ecb97192 authored by Neal Cardwell's avatar Neal Cardwell Committed by David S. Miller

tcp: fix comment for tp->highest_sack

There was an off-by-one error in the comments describing the
highest_sack field in struct tcp_sock. The comments previously claimed
that it was the "start sequence of the highest skb with SACKed
bit". This commit fixes the comments to note that it is the "start
sequence of the skb just *after* the highest skb with SACKed bit".
Signed-off-by: default avatarNeal Cardwell <ncardwell@google.com>
Acked-by: default avatarIlpo Järvinen <ilpo.jarvinen@helsinki.fi>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent eea79e07
...@@ -412,7 +412,8 @@ struct tcp_sock { ...@@ -412,7 +412,8 @@ struct tcp_sock {
struct tcp_sack_block recv_sack_cache[4]; struct tcp_sack_block recv_sack_cache[4];
struct sk_buff *highest_sack; /* highest skb with SACK received struct sk_buff *highest_sack; /* skb just after the highest
* skb with SACKed bit set
* (validity guaranteed only if * (validity guaranteed only if
* sacked_out > 0) * sacked_out > 0)
*/ */
......
...@@ -1364,8 +1364,9 @@ static inline void tcp_push_pending_frames(struct sock *sk) ...@@ -1364,8 +1364,9 @@ static inline void tcp_push_pending_frames(struct sock *sk)
} }
} }
/* Start sequence of the highest skb with SACKed bit, valid only if /* Start sequence of the skb just after the highest skb with SACKed
* sacked > 0 or when the caller has ensured validity by itself. * bit, valid only if sacked_out > 0 or when the caller has ensured
* validity by itself.
*/ */
static inline u32 tcp_highest_sack_seq(struct tcp_sock *tp) static inline u32 tcp_highest_sack_seq(struct tcp_sock *tp)
{ {
......
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