Re: [PATCH 3/7] [I/OAT] Don't offload copies for loopback traffic

2006-08-18 Thread David Miller
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

Re: [PATCH 3/7] [I/OAT] Don't offload copies for loopback traffic

2006-08-18 Thread Andi Kleen
> @@ -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

[PATCH 3/7] [I/OAT] Don't offload copies for loopback traffic

2006-08-15 Thread Chris Leech
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