add support for the AVR32 platform, namely the ATNGW100 board - joint work with wigyori
[openwrt.git] / target / linux / generic-2.4 / patches / 112-bridging_performance.patch
1 --- linux.old/net/core/dev.c 2005-07-05 16:42:36.000000000 +0200
2 +++ linux.dev/net/core/dev.c 2005-07-08 19:32:46.000000000 +0200
3 @@ -1289,6 +1289,19 @@
4 local_irq_save(flags);
5
6 netdev_rx_stat[this_cpu].total++;
7 +
8 +#ifdef CONFIG_BRIDGE
9 + /* Optimisation for framebursting (allow interleaving of pkts by
10 + * immediately processing the rx pkt instead of Qing the pkt and deferring
11 + * the processing). Only optimise for bridging and guard against non
12 + * TASKLET based netif_rx calls.
13 + */
14 + if (!in_irq() && (skb->dev->br_port != NULL) && br_handle_frame_hook != NULL) {
15 + local_irq_restore(flags);
16 + return netif_receive_skb(skb);
17 + }
18 +#endif
19 +
20 if (queue->input_pkt_queue.qlen <= netdev_max_backlog) {
21 if (queue->input_pkt_queue.qlen) {
22 if (queue->throttle)
This page took 0.047913 seconds and 5 git commands to generate.