fix apex compile on osx, suppress some build warnings
[openwrt.git] / target / linux / generic-2.4 / patches / 112-bridging_performance.patch
1 Index: linux-2.4.35.4/net/core/dev.c
2 ===================================================================
3 --- linux-2.4.35.4.orig/net/core/dev.c 2007-12-15 05:19:51.651364482 +0100
4 +++ linux-2.4.35.4/net/core/dev.c 2007-12-15 05:19:54.483525877 +0100
5 @@ -1289,6 +1289,19 @@
6 local_irq_save(flags);
7
8 netdev_rx_stat[this_cpu].total++;
9 +
10 +#ifdef CONFIG_BRIDGE
11 + /* Optimisation for framebursting (allow interleaving of pkts by
12 + * immediately processing the rx pkt instead of Qing the pkt and deferring
13 + * the processing). Only optimise for bridging and guard against non
14 + * TASKLET based netif_rx calls.
15 + */
16 + if (!in_irq() && (skb->dev->br_port != NULL) && br_handle_frame_hook != NULL) {
17 + local_irq_restore(flags);
18 + return netif_receive_skb(skb);
19 + }
20 +#endif
21 +
22 if (queue->input_pkt_queue.qlen <= netdev_max_backlog) {
23 if (queue->input_pkt_queue.qlen) {
24 if (queue->throttle)
This page took 0.044906 seconds and 5 git commands to generate.