diff options
author | Felix Fietkau <nbd@openwrt.org> | 2006-01-10 19:43:00 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2006-01-10 19:43:00 +0000 |
commit | fbc6b140a51f4faa9b995eb965b6e69ebb541f3f (patch) | |
tree | 4f317d291370cf0af876f446896c66a3a503be97 /target/linux/generic-2.4/patches/112-bridging_performance.patch | |
parent | d9e36255b00d6bbcdedeba7ab9e22f37f8ed79bc (diff) | |
download | master-187ad058-fbc6b140a51f4faa9b995eb965b6e69ebb541f3f.tar.gz master-187ad058-fbc6b140a51f4faa9b995eb965b6e69ebb541f3f.tar.bz2 master-187ad058-fbc6b140a51f4faa9b995eb965b6e69ebb541f3f.zip |
large target/linux cleanup
git-svn-id: svn://svn.openwrt.org/openwrt/trunk/openwrt@2877 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/generic-2.4/patches/112-bridging_performance.patch')
-rw-r--r-- | target/linux/generic-2.4/patches/112-bridging_performance.patch | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/target/linux/generic-2.4/patches/112-bridging_performance.patch b/target/linux/generic-2.4/patches/112-bridging_performance.patch new file mode 100644 index 0000000000..c5d86349d4 --- /dev/null +++ b/target/linux/generic-2.4/patches/112-bridging_performance.patch @@ -0,0 +1,22 @@ +--- linux.old/net/core/dev.c 2005-07-05 16:42:36.000000000 +0200 ++++ linux.dev/net/core/dev.c 2005-07-08 19:32:46.000000000 +0200 +@@ -1289,6 +1289,19 @@ + local_irq_save(flags); + + netdev_rx_stat[this_cpu].total++; ++ ++#ifdef CONFIG_BRIDGE ++ /* Optimisation for framebursting (allow interleaving of pkts by ++ * immediately processing the rx pkt instead of Qing the pkt and deferring ++ * the processing). Only optimise for bridging and guard against non ++ * TASKLET based netif_rx calls. ++ */ ++ if (!in_irq() && (skb->dev->br_port != NULL) && br_handle_frame_hook != NULL) { ++ local_irq_restore(flags); ++ return netif_receive_skb(skb); ++ } ++#endif ++ + if (queue->input_pkt_queue.qlen <= netdev_max_backlog) { + if (queue->input_pkt_queue.qlen) { + if (queue->throttle) |