[openib-general] [PATCH] [RFC] group devices by type
Sean Hefty
mshefty at ichips.intel.com
Thu Jan 26 10:37:27 PST 2006
Here's an updated version of the patch that doesn't break the ABI.
Note that for RNICs, node_type would be set to IB_NODE_IWARP | IB_NODE_CA.
Comments?
Signed-off-by: Sean Hefty <sean.hefty at intel.com>
---
Index: ib_verbs.h
===================================================================
--- ib_verbs.h (revision 5098)
+++ ib_verbs.h (working copy)
@@ -56,7 +56,15 @@
} global;
};
-enum ib_node_type {
+/*
+ * 8-bit node type - for IB this maps to NodeInfo:NodeType.
+ */
+enum {
+ /* bits 7:4 - transport type */
+ IB_NODE_IB = (0<<4),
+ IB_NODE_IWARP = (1<<4),
+
+ /* bits 3:0 - device type */
IB_NODE_CA = 1,
IB_NODE_SWITCH,
IB_NODE_ROUTER
More information about the general
mailing list