netdev:bfin_mac: reclaim and free tx skb as soon as possible after transfer
[pandora-kernel.git] / drivers / net / bfin_mac.h
index 1ae7b82..04e4050 100644 (file)
 #include <linux/net_tstamp.h>
 #include <linux/clocksource.h>
 #include <linux/timecompare.h>
+#include <linux/timer.h>
 
 #define BFIN_MAC_CSUM_OFFLOAD
 
+#define TX_RECLAIM_JIFFIES (HZ / 5)
+
 struct dma_descriptor {
        struct dma_descriptor *next_dma_desc;
        unsigned long start_addr;
@@ -68,6 +71,8 @@ struct bfin_mac_local {
 
        int wol;                /* Wake On Lan */
        int irq_wake_requested;
+       struct timer_list tx_reclaim_timer;
+       struct net_device *ndev;
 
        /* MII and PHY stuffs */
        int old_link;          /* used by bf537_adjust_link */