aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/generic-2.4/patches/112-bridging_performance.patch
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2006-10-13 22:51:49 +0200
committerFelix Fietkau <nbd@openwrt.org>2016-03-20 17:29:15 +0100
commit60c1f0f64d23003a19a07d6b9638542130f6641d (patch)
tree8fb2787f4c49baded97cd55e0c371fe1cffce2b6 /target/linux/generic-2.4/patches/112-bridging_performance.patch
parentd58a09110ccfa95f06c983fe796806f2e035c9d2 (diff)
parentb3ce218b51746d3a576221ea542facf3a1703ab2 (diff)
downloadupstream-60c1f0f64d23003a19a07d6b9638542130f6641d.tar.gz
upstream-60c1f0f64d23003a19a07d6b9638542130f6641d.tar.bz2
upstream-60c1f0f64d23003a19a07d6b9638542130f6641d.zip
finally move buildroot-ng to trunk
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.patch22
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)