Lines Matching refs:limit
1537 long limit; in tcp_fragment() local
1553 limit = sk->sk_sndbuf + 2 * SKB_TRUESIZE(GSO_MAX_SIZE); in tcp_fragment()
1554 if (unlikely((sk->sk_wmem_queued >> 1) > limit && in tcp_fragment()
2181 u32 send_win, cong_win, limit, in_flight; in tcp_tso_should_defer() local
2209 limit = min(send_win, cong_win); in tcp_tso_should_defer()
2212 if (limit >= max_segs * tp->mss_cache) in tcp_tso_should_defer()
2216 if ((skb != tcp_write_queue_tail(sk)) && (limit >= skb->len)) in tcp_tso_should_defer()
2227 if (limit >= chunk) in tcp_tso_should_defer()
2235 if (limit > tcp_max_tso_deferred_mss(tp) * tp->mss_cache) in tcp_tso_should_defer()
2515 unsigned long limit; in tcp_small_queue_check() local
2517 limit = max_t(unsigned long, in tcp_small_queue_check()
2521 limit = min_t(unsigned long, limit, in tcp_small_queue_check()
2523 limit <<= factor; in tcp_small_queue_check()
2535 limit += extra_bytes; in tcp_small_queue_check()
2537 if (refcount_read(&sk->sk_wmem_alloc) > limit) { in tcp_small_queue_check()
2552 if (refcount_read(&sk->sk_wmem_alloc) > limit) in tcp_small_queue_check()
2640 unsigned int limit; in tcp_write_xmit() local
2682 limit = mss_now; in tcp_write_xmit()
2684 limit = tcp_mss_split_point(sk, skb, mss_now, in tcp_write_xmit()
2690 if (skb->len > limit && in tcp_write_xmit()
2691 unlikely(tso_fragment(sk, skb, limit, mss_now, gfp))) in tcp_write_xmit()