diff options
Diffstat (limited to 'include/net/tcp.h')
-rw-r--r-- | include/net/tcp.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/include/net/tcp.h b/include/net/tcp.h index d893b4480769..0ede804b16d4 100644 --- a/include/net/tcp.h +++ b/include/net/tcp.h | |||
@@ -1312,6 +1312,16 @@ static inline int tcp_write_queue_empty(struct sock *sk) | |||
1312 | return skb_queue_empty(&sk->sk_write_queue); | 1312 | return skb_queue_empty(&sk->sk_write_queue); |
1313 | } | 1313 | } |
1314 | 1314 | ||
1315 | /* Start sequence of the highest skb with SACKed bit, valid only if | ||
1316 | * sacked > 0 or when the caller has ensured validity by itself. | ||
1317 | */ | ||
1318 | static inline u32 tcp_highest_sack_seq(struct tcp_sock *tp) | ||
1319 | { | ||
1320 | if (!tp->sacked_out) | ||
1321 | return tp->snd_una; | ||
1322 | return TCP_SKB_CB(tp->highest_sack)->seq; | ||
1323 | } | ||
1324 | |||
1315 | /* /proc */ | 1325 | /* /proc */ |
1316 | enum tcp_seq_states { | 1326 | enum tcp_seq_states { |
1317 | TCP_SEQ_STATE_LISTENING, | 1327 | TCP_SEQ_STATE_LISTENING, |