]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - drivers/net/shaper.c
[NET] gso: Add skb_is_gso
[linux-2.6-omap-h63xx.git] / drivers / net / shaper.c
index 221354eea21f9a9257771e68074821ea7ea64c2f..c7832e69f1776b02e0958f4a06a300f07ade5edd 100644 (file)
@@ -69,7 +69,6 @@
  *                              2000/03 Andi Kleen
  */
  
-#include <linux/config.h>
 #include <linux/module.h>
 #include <linux/kernel.h>
 #include <linux/fcntl.h>
@@ -83,6 +82,7 @@
 #include <linux/if_arp.h>
 #include <linux/init.h>
 #include <linux/if_shaper.h>
+#include <linux/jiffies.h>
 
 #include <net/dst.h>
 #include <net/arp.h>
@@ -168,7 +168,7 @@ static int shaper_start_xmit(struct sk_buff *skb, struct net_device *dev)
                /*
                 *      Queue over time. Spill packet.
                 */
-               if(SHAPERCB(skb)->shapeclock-jiffies > SHAPER_LATENCY) {
+               if(time_after(SHAPERCB(skb)->shapeclock,jiffies + SHAPER_LATENCY)) {
                        dev_kfree_skb(skb);
                        shaper->stats.tx_dropped++;
                } else