[TCP]: Convert highest_sack to sk_buff to allow direct access

It is going to replace the sack fastpath hint quite soon... :-)

Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@helsinki.fi>
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
Ilpo Järvinen
2007-11-15 19:41:46 -08:00
committed by David S. Miller
parent 85cc391c0e
commit a47e5a988a
4 changed files with 30 additions and 17 deletions

View File

@@ -1312,6 +1312,16 @@ static inline int tcp_write_queue_empty(struct sock *sk)
return skb_queue_empty(&sk->sk_write_queue);
}
/* Start sequence of the highest skb with SACKed bit, valid only if
* sacked > 0 or when the caller has ensured validity by itself.
*/
static inline u32 tcp_highest_sack_seq(struct tcp_sock *tp)
{
if (!tp->sacked_out)
return tp->snd_una;
return TCP_SKB_CB(tp->highest_sack)->seq;
}
/* /proc */
enum tcp_seq_states {
TCP_SEQ_STATE_LISTENING,