From d7794dcac717ec90f5c2c55a90a82cdbedcc8fe6 Mon Sep 17 00:00:00 2001 From: Michael Brown Date: Fri, 4 Mar 2016 09:17:08 +0000 Subject: [infiniband] Assign names to Infiniband devices for debug messages Signed-off-by: Michael Brown --- src/include/ipxe/infiniband.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/include/ipxe/infiniband.h') diff --git a/src/include/ipxe/infiniband.h b/src/include/ipxe/infiniband.h index 6a99865f2..065e42180 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 */ -- cgit