Lines Matching defs:cache
1801 static int tcp_sack_cache_ok(const struct tcp_sock *tp, const struct tcp_sack_block *cache)
1803 return cache < tp->recv_sack_cache + ARRAY_SIZE(tp->recv_sack_cache);
1815 struct tcp_sack_block *cache;
1903 cache = tp->recv_sack_cache + ARRAY_SIZE(tp->recv_sack_cache);
1905 cache = tp->recv_sack_cache;
1906 /* Skip empty blocks in at head of the cache */
1907 while (tcp_sack_cache_ok(tp, cache) && !cache->start_seq &&
1908 !cache->end_seq)
1909 cache++;
1922 while (tcp_sack_cache_ok(tp, cache) &&
1923 !before(start_seq, cache->end_seq))
1924 cache++;
1927 if (tcp_sack_cache_ok(tp, cache) && !dup_sack &&
1928 after(end_seq, cache->start_seq)) {
1931 if (before(start_seq, cache->start_seq)) {
1936 cache->start_seq,
1941 if (!after(end_seq, cache->end_seq))
1946 cache->end_seq);
1949 if (tcp_highest_sack_seq(tp) == cache->end_seq) {
1954 cache++;
1958 skb = tcp_sacktag_skip(skb, sk, cache->end_seq);
1960 cache++;
1979 /* Clear the head of the cache sack blocks so we can skip it next time */
3206 /* Avoid cache line misses to get skb_shinfo() and shinfo->tx_flags */