summaryrefslogtreecommitdiffstats
path: root/drivers/net/cxgb3/common.h
diff options
context:
space:
mode:
authorDivy Le Ray <divy@chelsio.com>2007-03-31 00:23:13 -0700
committerJeff Garzik <jeff@garzik.org>2007-04-03 22:31:09 -0400
commit9f238486f5438b2e44f760b11fa3a08714c1ddb6 (patch)
tree4db457aaedba5c4af8f6b397ef34dcc46462bf7b /drivers/net/cxgb3/common.h
parent59117d3f4e3f5a7980353d2f476e516c758ce921 (diff)
cxgb3 - Safeguard TCAM size usage
Ensure that the TCAM active region size is at least 16. Signed-off-by: Divy Le Ray <divy@chelsio.com> Signed-off-by: Jeff Garzik <jeff@garzik.org>
Diffstat (limited to 'drivers/net/cxgb3/common.h')
-rw-r--r--drivers/net/cxgb3/common.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/net/cxgb3/common.h b/drivers/net/cxgb3/common.h
index 85e5543cfb5..38a0565ad1c 100644
--- a/drivers/net/cxgb3/common.h
+++ b/drivers/net/cxgb3/common.h
@@ -358,6 +358,9 @@ enum {
MC5_MODE_72_BIT = 2
};
+/* MC5 min active region size */
+enum { MC5_MIN_TIDS = 16 };
+
struct vpd_params {
unsigned int cclk;
unsigned int mclk;