Home
last modified time | relevance | path

Searched hist:"73852 e8151b7d7a529fbe019ab6d2d0c02d8f3f2" (Results 1 – 1 of 1) sorted by relevance

/linux/net/ipv4/
H A Dtcp.cdiff 73852e8151b7d7a529fbe019ab6d2d0c02d8f3f2 Tue Mar 16 06:22:44 CET 2010 Steven J. Magnani <steve@digidescorp.com> NET_DMA: free skbs periodically

Under NET_DMA, data transfer can grind to a halt when userland issues a
large read on a socket with a high RCVLOWAT (i.e., 512 KB for both).
This appears to be because the NET_DMA design queues up lots of memcpy
operations, but doesn't issue or wait for them (and thus free the
associated skbs) until it is time for tcp_recvmesg() to return.
The socket hangs when its TCP window goes to zero before enough data is
available to satisfy the read.

Periodically issue asynchronous memcpy operations, and free skbs for ones
that have completed, to prevent sockets from going into zero-window mode.

Signed-off-by: Steven J. Magnani <steve@digidescorp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>