login
Header Space

 
 

Re: [RFC,PATCH] loopback: calls netif_receive_skb() instead of netif_rx()

Score:
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Eric Dumazet <dada1@...>
Cc: David Miller <davem@...>, <netdev@...>, <linux-kernel@...>, Peter Zijlstra <a.p.zijlstra@...>
Date: Monday, March 31, 2008 - 5:48 am

* Eric Dumazet <dada1@cosmosbay.com> wrote:


that's just wrong - 4K stacks on x86 are 4K-sizeof(thread_info) - the 
task struct is allocated elsewhere. The patch below runs just fine on 
4K-stack x86.

	Ingo

------------->
Subject: net: loopback speedup
From: Ingo Molnar <mingo@elte.hu>
Date: Mon Mar 31 11:23:21 CEST 2008

Signed-off-by: Ingo Molnar <mingo@elte.hu>
---
 drivers/net/loopback.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Index: linux/drivers/net/loopback.c
===================================================================
--- linux.orig/drivers/net/loopback.c
+++ linux/drivers/net/loopback.c
@@ -158,7 +158,7 @@ static int loopback_xmit(struct sk_buff 
 	lb_stats->bytes += skb->len;
 	lb_stats->packets++;
 
-	netif_rx(skb);
+	netif_receive_skb(skb);
 
 	return 0;
 }
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [RFC,PATCH] loopback: calls netif_receive_skb() instead ..., Ingo Molnar, (Mon Mar 31, 5:48 am)
Re: poor network loopback performance and scalability, David Miller, (Sun Apr 20, 11:38 pm)
Re: poor network loopback performance and scalability, Ingo Molnar, (Mon Apr 21, 4:11 am)
Re: poor network loopback performance and scalability, David Miller, (Mon Apr 21, 4:16 am)
Re: poor network loopback performance and scalability, David Miller, (Mon Apr 21, 6:22 am)
speck-geostationary