diff options
author | Olof Johansson <olof@lixom.net> | 2007-11-28 20:57:27 -0600 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-01-28 15:04:24 -0800 |
commit | 28ae79f531014bb3ad95b6efa0e0603069087bc5 (patch) | |
tree | 5f46070012b462f4faf5f79e4fa6a0c75b1cf816 /drivers/net/pasemi_mac.h | |
parent | 906674abab0424b466a2db4bb6a890a8c477b10a (diff) | |
download | linux-stable-28ae79f531014bb3ad95b6efa0e0603069087bc5.tar.gz linux-stable-28ae79f531014bb3ad95b6efa0e0603069087bc5.tar.bz2 linux-stable-28ae79f531014bb3ad95b6efa0e0603069087bc5.zip |
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 @@ #include <linux/spinlock.h> #include <linux/phy.h> +#define MAX_LRO_DESCRIPTORS 8 + struct pasemi_mac_txring { struct pasemi_dmachan chan; /* Must be first */ spinlock_t lock; @@ -64,7 +66,10 @@ struct pasemi_mac { u8 mac_addr[6]; + struct net_lro_mgr lro_mgr; + struct net_lro_desc lro_desc[MAX_LRO_DESCRIPTORS]; struct timer_list rxtimer; + unsigned int lro_max_aggr; struct pasemi_mac_txring *tx; struct pasemi_mac_rxring *rx; |