diff options
author | Olof Johansson <olof@lixom.net> | 2007-11-28 21:57:27 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-01-28 18:04:24 -0500 |
commit | 28ae79f531014bb3ad95b6efa0e0603069087bc5 (patch) | |
tree | 5f46070012b462f4faf5f79e4fa6a0c75b1cf816 /drivers/net/pasemi_mac.h | |
parent | 906674abab0424b466a2db4bb6a890a8c477b10a (diff) |
pasemi_mac: Software-based LRO support
pasemi_mac: Software-based LRO support
Implement LRO for pasemi_mac. Pretty straightforward.
Signed-off-by: Olof Johansson <olof@lixom.net>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
Diffstat (limited to 'drivers/net/pasemi_mac.h')
-rw-r--r-- | drivers/net/pasemi_mac.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/net/pasemi_mac.h b/drivers/net/pasemi_mac.h index c6555edba55d..8bee2a664c83 100644 --- a/drivers/net/pasemi_mac.h +++ b/drivers/net/pasemi_mac.h | |||
@@ -26,6 +26,8 @@ | |||
26 | #include <linux/spinlock.h> | 26 | #include <linux/spinlock.h> |
27 | #include <linux/phy.h> | 27 | #include <linux/phy.h> |
28 | 28 | ||
29 | #define MAX_LRO_DESCRIPTORS 8 | ||
30 | |||
29 | struct pasemi_mac_txring { | 31 | struct pasemi_mac_txring { |
30 | struct pasemi_dmachan chan; /* Must be first */ | 32 | struct pasemi_dmachan chan; /* Must be first */ |
31 | spinlock_t lock; | 33 | spinlock_t lock; |
@@ -64,7 +66,10 @@ struct pasemi_mac { | |||
64 | 66 | ||
65 | u8 mac_addr[6]; | 67 | u8 mac_addr[6]; |
66 | 68 | ||
69 | struct net_lro_mgr lro_mgr; | ||
70 | struct net_lro_desc lro_desc[MAX_LRO_DESCRIPTORS]; | ||
67 | struct timer_list rxtimer; | 71 | struct timer_list rxtimer; |
72 | unsigned int lro_max_aggr; | ||
68 | 73 | ||
69 | struct pasemi_mac_txring *tx; | 74 | struct pasemi_mac_txring *tx; |
70 | struct pasemi_mac_rxring *rx; | 75 | struct pasemi_mac_rxring *rx; |