git.openpandora.org
/
pandora-kernel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
netdev:bfin_mac: reclaim and free tx skb as soon as possible after transfer
[pandora-kernel.git]
/
drivers
/
net
/
bfin_mac.h
diff --git
a/drivers/net/bfin_mac.h
b/drivers/net/bfin_mac.h
index
1ae7b82
..
04e4050
100644
(file)
--- a/
drivers/net/bfin_mac.h
+++ b/
drivers/net/bfin_mac.h
@@
-13,9
+13,12
@@
#include <linux/net_tstamp.h>
#include <linux/clocksource.h>
#include <linux/timecompare.h>
#include <linux/net_tstamp.h>
#include <linux/clocksource.h>
#include <linux/timecompare.h>
+#include <linux/timer.h>
#define BFIN_MAC_CSUM_OFFLOAD
#define BFIN_MAC_CSUM_OFFLOAD
+#define TX_RECLAIM_JIFFIES (HZ / 5)
+
struct dma_descriptor {
struct dma_descriptor *next_dma_desc;
unsigned long start_addr;
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;
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 */
/* MII and PHY stuffs */
int old_link; /* used by bf537_adjust_link */