From: Andi Kleen <[EMAIL PROTECTED]>
Date: Fri, 18 Aug 2006 20:17:18 +0200
>
> > @@ -1136,7 +1137,8 @@ int tcp_recvmsg(struct kiocb *iocb, stru
> > skb = skb_peek_tail(&sk->sk_receive_queue);
> > if (skb)
> > available = TCP_SKB_CB(skb)->seq + skb->len - (*seq);
> > - if ((a
> @@ -1136,7 +1137,8 @@ int tcp_recvmsg(struct kiocb *iocb, stru
> skb = skb_peek_tail(&sk->sk_receive_queue);
> if (skb)
> available = TCP_SKB_CB(skb)->seq + skb->len - (*seq);
> - if ((available < target) &&
> + dst = __sk_dst_get(sk);
> + if ((available < t
Local traffic (loopback) is generally in cache anyway, and the overhead
cost of offloading the copy is worse than just doing it with the CPU.
Signed-off-by: Chris Leech <[EMAIL PROTECTED]>
---
net/ipv4/tcp.c |4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/net/ipv4/tcp