patch-2.1.86 linux/drivers/net/shaper.c

Next file: linux/drivers/net/sk_g16.c
Previous file: linux/drivers/net/sgiseeq.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.85/linux/drivers/net/shaper.c linux/drivers/net/shaper.c
@@ -190,7 +190,7 @@
  			if(ptr->shapelatency > SHAPER_LATENCY)
  			{
  				skb_unlink(ptr);
- 				dev_kfree_skb(ptr, FREE_WRITE);
+ 				dev_kfree_skb(ptr);
  			}
  			ptr=tmp;
  		}
@@ -225,7 +225,7 @@
 		 *	Queue over time. Spill packet.
 		 */
 		if(skb->shapeclock-jiffies > SHAPER_LATENCY)
-			dev_kfree_skb(skb, FREE_WRITE);
+			dev_kfree_skb(skb);
 		else
 			skb_queue_tail(&shaper->sendq, skb);
 	}
@@ -235,7 +235,7 @@
  	if(skb_queue_len(&shaper->sendq)>SHAPER_QLEN)
  	{
  		ptr=skb_dequeue(&shaper->sendq);
- 		dev_kfree_skb(ptr, FREE_WRITE);
+ 		dev_kfree_skb(ptr);
  	}
  	shaper_unlock(shaper);
  	shaper_kick(shaper);
@@ -261,7 +261,7 @@
 		dev_queue_xmit(newskb);
 		if(sh_debug)
 			printk("Kicked new frame out.\n");
-		dev_kfree_skb(skb, FREE_WRITE);
+		dev_kfree_skb(skb);
 	}
 }
 
@@ -368,7 +368,7 @@
 {
 	struct sk_buff *skb;
 	while((skb=skb_dequeue(&shaper->sendq))!=NULL)
-		dev_kfree_skb(skb, FREE_WRITE);
+		dev_kfree_skb(skb);
 }
 
 /*

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov