[PATCH][2.5] list_move_tail for network core (1 occ)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This uses the newly introduced list_move_tail macro in net/core/dev.c

--- linus-2.5/net/core/dev.c	Sun Jun  9 04:17:32 2002
+++ thunder-2.5/net/core/dev.c	Sun Jun  9 07:41:55 2002
@@ -1596,8 +1596,7 @@
 
 		if (dev->quota <= 0 || dev->poll(dev, &budget)) {
 			local_irq_disable();
-			list_del(&dev->poll_list);
-			list_add_tail(&dev->poll_list, &queue->poll_list);
+			list_move_tail(&dev->poll_list, &queue->poll_list);
 			if (dev->quota < 0)
 				dev->quota += dev->weight;
 			else

-- 
Lightweight patch manager using pine. If you have any objections, tell me.

-
: send the line "unsubscribe linux-net" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux 802.1Q VLAN]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Git]     [Bugtraq]     [Yosemite News and Information]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux PCI]     [Linux Admin]     [Samba]

  Powered by Linux