Searched refs:rcvmem (Results 1 - 1 of 1) sorted by relevance

/linux-4.1.27/net/ipv4/
H A Dtcp_input.c386 int rcvmem; tcp_fixup_rcvbuf() local
388 rcvmem = 2 * SKB_TRUESIZE(mss + MAX_TCP_HEADER) * tcp_fixup_rcvbuf()
395 rcvmem <<= 2; tcp_fixup_rcvbuf()
397 if (sk->sk_rcvbuf < rcvmem) tcp_fixup_rcvbuf()
398 sk->sk_rcvbuf = min(rcvmem, sysctl_tcp_rmem[2]); tcp_fixup_rcvbuf()
578 int rcvwin, rcvmem, rcvbuf; tcp_rcv_space_adjust() local
599 rcvmem = SKB_TRUESIZE(tp->advmss + MAX_TCP_HEADER); tcp_rcv_space_adjust()
600 while (tcp_win_from_space(rcvmem) < tp->advmss) tcp_rcv_space_adjust()
601 rcvmem += 128; tcp_rcv_space_adjust()
603 rcvbuf = min(rcvwin / tp->advmss * rcvmem, sysctl_tcp_rmem[2]); tcp_rcv_space_adjust()

Completed in 78 milliseconds