aboutsummaryrefslogtreecommitdiffstats
path: root/net/core
diff options
context:
space:
mode:
authorStephen Hemminger <shemminger@osdl.org>2006-03-21 01:26:39 -0500
committerDavid S. Miller <davem@davemloft.net>2006-03-21 01:26:39 -0500
commit8aca8a27d96cd75a30c380130496c98b658c9b98 (patch)
treecd32edff13c275a0f493ba70d909daee1819c6a2 /net/core
parent99cae7fca1311573f2777b8ceaa8a5abd6e9b04e (diff)
[NET]: minor net_rx_action optimization
The functions list_del followed by list_add_tail is equivalent to the existing inline list_move_tail. list_move_tail avoids unnecessary _LIST_POISON. Signed-off-by: Stephen Hemminger <shemminger@osdl.org> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/core')
-rw-r--r--net/core/dev.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/net/core/dev.c b/net/core/dev.c
index be1d896cc5b9..ee044097f7f2 100644
--- a/net/core/dev.c
+++ b/net/core/dev.c
@@ -1759,8 +1759,7 @@ static void net_rx_action(struct softirq_action *h)
1759 if (dev->quota <= 0 || dev->poll(dev, &budget)) { 1759 if (dev->quota <= 0 || dev->poll(dev, &budget)) {
1760 netpoll_poll_unlock(have); 1760 netpoll_poll_unlock(have);
1761 local_irq_disable(); 1761 local_irq_disable();
1762 list_del(&dev->poll_list); 1762 list_move_tail(&dev->poll_list, &queue->poll_list);
1763 list_add_tail(&dev->poll_list, &queue->poll_list);
1764 if (dev->quota < 0) 1763 if (dev->quota < 0)
1765 dev->quota += dev->weight; 1764 dev->quota += dev->weight;
1766 else 1765 else