mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-11-27 17:55:55 +02:00
add bridging performance patch from linksys source
git-svn-id: svn://svn.openwrt.org/openwrt/trunk/openwrt@1380 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
8c0f8c6bcf
commit
099cb6d781
@ -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)
|
Loading…
Reference in New Issue
Block a user