diff options
author | Stephen Hemminger <shemminger@vyatta.com> | 2009-08-18 11:17:08 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-08-18 23:26:48 -0400 |
commit | ee5f68fea27b53b16c265b1f9ed8aa3bc9024c96 (patch) | |
tree | f24199e39c59f88516e0914faf74c26d991815a1 /drivers/net/sky2.h | |
parent | c119731d6606ae25d787740d60706e2732454637 (diff) |
sky2: dynamic size transmit ring
Allocate and size transmit ring based on parameters. Saves excess
space and allows configuring larger rings for testing.
Signed-off-by: Stephen Hemminger <shemminger@vyatta.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/sky2.h')
-rw-r--r-- | drivers/net/sky2.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/sky2.h b/drivers/net/sky2.h index feb3204134ed..2c262f763f93 100644 --- a/drivers/net/sky2.h +++ b/drivers/net/sky2.h | |||
@@ -2011,6 +2011,7 @@ struct sky2_port { | |||
2011 | 2011 | ||
2012 | struct tx_ring_info *tx_ring; | 2012 | struct tx_ring_info *tx_ring; |
2013 | struct sky2_tx_le *tx_le; | 2013 | struct sky2_tx_le *tx_le; |
2014 | u16 tx_ring_size; | ||
2014 | u16 tx_cons; /* next le to check */ | 2015 | u16 tx_cons; /* next le to check */ |
2015 | u16 tx_prod; /* next le to use */ | 2016 | u16 tx_prod; /* next le to use */ |
2016 | u16 tx_next; /* debug only */ | 2017 | u16 tx_next; /* debug only */ |