Skip to contentSkip to conversation

atl1: add ethtool set ring params functionality

PATCH In review Jay Cliburn 1 participant 1 message Feb 1, 2007

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 2/2 atl1: add ethtool set ring params functionality

From: Jay Cliburn <[email protected]>

Fix up some constants relating to max and min ring descriptor counts. Also add functionality to enable ethtool to set tx and rx ring parameters.

---

 drivers/net/atl1/atl1.h         |    4 +-
 drivers/net/atl1/atl1_ethtool.c |   78 ++++++++++++++++++++++++++++++++++++++-
 2 files changed, 78 insertions(+), 4 deletions(-)
drivers/net/atl1/atl1.h +2 -2
index cc18016..da4bf87 100644
@@ -44,11 +44,11 @@ struct atl1_adapter;
 #define ATL1_MAX_INTR		3
 
 #define ATL1_DEFAULT_TPD	256
-#define ATL1_MAX_TPD		1023
+#define ATL1_MAX_TPD		1024
 #define ATL1_MIN_TPD		64
 #define ATL1_DEFAULT_RFD	512
 #define ATL1_MIN_RFD		128
-#define ATL1_MAX_RFD		2047
+#define ATL1_MAX_RFD		2048
 
 #define ATL1_GET_DESC(R, i, type)	(&(((type *)((R)->desc))[i]))
 #define ATL1_RFD_DESC(R, i)	ATL1_GET_DESC(R, i, struct rx_free_desc)
drivers/net/atl1/atl1_ethtool.c +76 -2

96 lines not on this page · raw message