aboutsummaryrefslogtreecommitdiff
path: root/src/include
diff options
context:
space:
mode:
authorMichael Brown <mcb30@ipxe.org>2016-03-04 09:17:08 +0000
committerMichael Brown <mcb30@ipxe.org>2016-03-08 12:08:58 +0000
commitd7794dcac717ec90f5c2c55a90a82cdbedcc8fe6 (patch)
treebf5f5e3b9012d8e7da4b3fc9d533d4aae8bf9fc3 /src/include
parentff13eeb74711f1b775baf61d5836a322dffdf82c (diff)
downloadipxe-d7794dcac717ec90f5c2c55a90a82cdbedcc8fe6.zip
ipxe-d7794dcac717ec90f5c2c55a90a82cdbedcc8fe6.tar.gz
ipxe-d7794dcac717ec90f5c2c55a90a82cdbedcc8fe6.tar.bz2
[infiniband] Assign names to Infiniband devices for debug messages
Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/include')
-rw-r--r--src/include/ipxe/infiniband.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/include/ipxe/infiniband.h b/src/include/ipxe/infiniband.h
index 6a99865..065e421 100644
--- a/src/include/ipxe/infiniband.h
+++ b/src/include/ipxe/infiniband.h
@@ -388,6 +388,9 @@ struct ib_device_operations {
union ib_mad *mad );
};
+/** Maximum length of an Infiniband device name */
+#define IBDEV_NAME_LEN 8
+
/** An Infiniband device */
struct ib_device {
/** Reference counter */
@@ -396,6 +399,10 @@ struct ib_device {
struct list_head list;
/** List of open Infiniband devices */
struct list_head open_list;
+ /** Index of this Infiniband device */
+ unsigned int index;
+ /** Name of this Infiniband device */
+ char name[IBDEV_NAME_LEN];
/** Underlying device */
struct device *dev;
/** List of completion queues */