tcp: allow one skb to be received per socket under memory pressure
authorEric Dumazet <edumazet@google.com>
Fri, 15 May 2015 19:39:29 +0000 (12:39 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 18 May 2015 02:45:49 +0000 (22:45 -0400)
commit76dfa6082032b5c179864816fa508879421678eb
treee710efd16263290f153b9f565449bdef7a48f464
parent8e4d980ac21596a9b91d8e720c77ad081975a0a8
tcp: allow one skb to be received per socket under memory pressure

While testing tight tcp_mem settings, I found tcp sessions could be
stuck because we do not allow even one skb to be received on them.

By allowing one skb to be received, we introduce fairness and
eventuallu force memory hogs to release their allocation.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/tcp_input.c