Optimize call to net_tx_action only if work is pending. Patch against net-2.6.22.git
Signed-off-by: Krishna Kumar <[EMAIL PROTECTED]> --- diff -ruNp org/net/core/dev.c new/net/core/dev.c --- org/net/core/dev.c 2007-04-09 12:43:15.000000000 +0530 +++ new/net/core/dev.c 2007-04-09 12:43:42.000000000 +0530 @@ -3474,7 +3474,8 @@ static int dev_cpu_callback(struct notif *list_net = oldsd->output_queue; oldsd->output_queue = NULL; - raise_softirq_irqoff(NET_TX_SOFTIRQ); + if (sd->completion_queue || sd->output_queue) + raise_softirq_irqoff(NET_TX_SOFTIRQ); local_irq_enable(); /* Process offline CPU's input_pkt_queue */ - To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html