diff options
author | Felix Fietkau <nbd@openwrt.org> | 2005-07-08 17:56:54 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2005-07-08 17:56:54 +0000 |
commit | 879a27a791d7dfe6db71f178e34039c2728a58e3 (patch) | |
tree | 41ae99404bc07fed3e5ae9dca13fdc3d537e80e0 /openwrt | |
parent | 63f2fa5b9bb7b941fe09e9ed7c115cfbb50e0775 (diff) | |
download | mtk-20170518-879a27a791d7dfe6db71f178e34039c2728a58e3.zip mtk-20170518-879a27a791d7dfe6db71f178e34039c2728a58e3.tar.gz mtk-20170518-879a27a791d7dfe6db71f178e34039c2728a58e3.tar.bz2 |
add bridging performance patch from linksys source
SVN-Revision: 1380
Diffstat (limited to 'openwrt')
-rw-r--r-- | openwrt/target/linux/linux-2.4/patches/generic/112-bridging_performance.patch | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/openwrt/target/linux/linux-2.4/patches/generic/112-bridging_performance.patch b/openwrt/target/linux/linux-2.4/patches/generic/112-bridging_performance.patch new file mode 100644 index 0000000..c5d8634 --- /dev/null +++ b/openwrt/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) |