Ethernet Bridge development
 help / color / mirror / Atom feed
* [Bridge] [PATCH] (6/6) bridge: receive path optimization
@ 2005-05-26 18:04 Stephen Hemminger
  2005-05-26 21:46 ` [Bridge] " David S. Miller
  0 siblings, 1 reply; 6+ messages in thread
From: Stephen Hemminger @ 2005-05-26 18:04 UTC (permalink / raw)
  To: David S. Miller; +Cc: netdev, bridge

This improves the bridge local receive path by avoiding going
through another softirq.  The bridge receive path is already being called 
from a netif_receive_skb() there is no point in going through another
receiveq round trip. 

Recursion is limited because bridge can never be a port of a bridge
so handle_bridge() always returns.

Index: bridge/net/bridge/br_input.c
===================================================================
--- bridge.orig/net/bridge/br_input.c
+++ bridge/net/bridge/br_input.c
@@ -26,7 +26,7 @@ static int br_pass_frame_up_finish(struc
 #ifdef CONFIG_NETFILTER_DEBUG
 	skb->nf_debug = 0;
 #endif
-	netif_rx(skb);
+	netif_receive_skb(skb);
 
 	return 0;
 }

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2005-05-27 15:59 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-05-26 18:04 [Bridge] [PATCH] (6/6) bridge: receive path optimization Stephen Hemminger
2005-05-26 21:46 ` [Bridge] " David S. Miller
2005-05-26 22:48   ` Stephen Hemminger
2005-05-26 22:54     ` David S. Miller
2005-05-27  5:57       ` Atul Sabharwal
2005-05-27 15:59         ` Stephen Hemminger

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox