[ofa-general] [PATCH] infiniband-diags/grouping: add 10G IP router devid

Sasha Khapyorsky sashak at voltaire.com
Wed Nov 26 03:00:49 PST 2008


Add 10G IP router device id for grouping.

Signed-off-by: Sasha Khapyorsky <sashak at voltaire.com>
---
 infiniband-diags/include/grouping.h |    1 +
 infiniband-diags/src/grouping.c     |    3 ++-
 2 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/infiniband-diags/include/grouping.h b/infiniband-diags/include/grouping.h
index 3ba872c..e54efef 100644
--- a/infiniband-diags/include/grouping.h
+++ b/infiniband-diags/include/grouping.h
@@ -91,6 +91,7 @@ struct AllChassisList {
 #define VTR_DEVID_ISR2012		0x5a39
 #define VTR_DEVID_SFB2004		0x5a40
 #define VTR_DEVID_ISR2004		0x5a41
+#define VTR_DEVID_SRB2004		0x5a42
 
 enum ChassisType { UNRESOLVED_CT, ISR9288_CT, ISR9096_CT, ISR2012_CT, ISR2004_CT };
 enum ChassisSlot { UNRESOLVED_CS, LINE_CS, SPINE_CS, SRBD_CS };
diff --git a/infiniband-diags/src/grouping.c b/infiniband-diags/src/grouping.c
index e2b4488..f1a996f 100644
--- a/infiniband-diags/src/grouping.c
+++ b/infiniband-diags/src/grouping.c
@@ -242,7 +242,8 @@ static int is_spine(Node *node)
 static int is_line_24(Node *node)
 {
 	return (node->devid == VTR_DEVID_SLB24 ||
-		node->devid == VTR_DEVID_SLB24_DDR);
+		node->devid == VTR_DEVID_SLB24_DDR ||
+		node->devid == VTR_DEVID_SRB2004);
 }
 
 static int is_line_8(Node *node)
-- 
1.6.0.4.766.g6fc4a




More information about the general mailing list