* 2000/03 Andi Kleen
*/
+#include <linux/config.h>
#include <linux/module.h>
#include <linux/kernel.h>
#include <linux/fcntl.h>
#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>
/*
* Queue over time. Spill packet.
*/
- if(time_after(SHAPERCB(skb)->shapeclock,jiffies + SHAPER_LATENCY)) {
+ if(SHAPERCB(skb)->shapeclock-jiffies > SHAPER_LATENCY) {
dev_kfree_skb(skb);
shaper->stats.tx_dropped++;
} else