[BRIDGE]: receive path optimization
authorStephen Hemminger <shemminger@osdl.org>
Sun, 29 May 2005 21:16:48 +0000 (14:16 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sun, 29 May 2005 21:16:48 +0000 (14:16 -0700)
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.

Signed-off-by: David S. Miller <davem@davemloft.net>
net/bridge/br_input.c

index 2aa5dda24a08a1cdc1ea96bb8375f2602ef82d75..8f5f2e7309920d4047571b2237b530fe1c791dfc 100644 (file)
@@ -26,7 +26,7 @@ static int br_pass_frame_up_finish(struct sk_buff *skb)
 #ifdef CONFIG_NETFILTER_DEBUG
        skb->nf_debug = 0;
 #endif
-       netif_rx(skb);
+       netif_receive_skb(skb);
 
        return 0;
 }