aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/linux-2.4/patches
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2005-07-08 17:56:54 +0000
committerFelix Fietkau <nbd@openwrt.org>2005-07-08 17:56:54 +0000
commitd6bee076c7235064beb1ca45043c9e12017e1a73 (patch)
treef105f5e222303424c05d3bbb93da9d372646b7be /target/linux/linux-2.4/patches
parent6c65624476b31eefdcbc18184dbcdc7326d0fbd7 (diff)
downloadmaster-187ad058-d6bee076c7235064beb1ca45043c9e12017e1a73.tar.gz
master-187ad058-d6bee076c7235064beb1ca45043c9e12017e1a73.tar.bz2
master-187ad058-d6bee076c7235064beb1ca45043c9e12017e1a73.zip
add bridging performance patch from linksys source
git-svn-id: svn://svn.openwrt.org/openwrt/trunk/openwrt@1380 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/linux-2.4/patches')
-rw-r--r--target/linux/linux-2.4/patches/generic/112-bridging_performance.patch22
1 files changed, 22 insertions, 0 deletions
diff --git a/target/linux/linux-2.4/patches/generic/112-bridging_performance.patch b/target/linux/linux-2.4/patches/generic/112-bridging_performance.patch
new file mode 100644
index 0000000000..c5d86349d4
--- /dev/null
+++ b/target/linux/linux-2.4/patches/generic/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)