diff options
| author | Sean Hefty <sean.hefty@intel.com> | 2006-01-10 10:39:34 -0500 |
|---|---|---|
| committer | Roland Dreier <rolandd@cisco.com> | 2006-01-10 10:39:34 -0500 |
| commit | cf311cd49a78f1e431787068cc31d29d06a415e6 (patch) | |
| tree | 369bb01420f5120df73c12903eb9e7783b8489ad /include/rdma | |
| parent | 87635b71b544563f29050a9cecaa12b5d2a3e34a (diff) | |
IB: Add node_guid to struct ib_device
Add a node_guid field to struct ib_device. It is the responsibility
of the low-level driver to initialize this field before registering a
device with the midlayer. Convert everyone to looking at this field
instead of calling ib_query_device() when all they want is the node
GUID, and remove the node_guid field from struct ib_device_attr.
Signed-off-by: Sean Hefty <sean.hefty@intel.com>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
Diffstat (limited to 'include/rdma')
| -rw-r--r-- | include/rdma/ib_verbs.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/rdma/ib_verbs.h b/include/rdma/ib_verbs.h index a7f4c355a91f..22fc886b9695 100644 --- a/include/rdma/ib_verbs.h +++ b/include/rdma/ib_verbs.h | |||
| @@ -88,7 +88,6 @@ enum ib_atomic_cap { | |||
| 88 | 88 | ||
| 89 | struct ib_device_attr { | 89 | struct ib_device_attr { |
| 90 | u64 fw_ver; | 90 | u64 fw_ver; |
| 91 | __be64 node_guid; | ||
| 92 | __be64 sys_image_guid; | 91 | __be64 sys_image_guid; |
| 93 | u64 max_mr_size; | 92 | u64 max_mr_size; |
| 94 | u64 page_size_cap; | 93 | u64 page_size_cap; |
| @@ -951,6 +950,7 @@ struct ib_device { | |||
| 951 | u64 uverbs_cmd_mask; | 950 | u64 uverbs_cmd_mask; |
| 952 | int uverbs_abi_ver; | 951 | int uverbs_abi_ver; |
| 953 | 952 | ||
| 953 | __be64 node_guid; | ||
| 954 | u8 node_type; | 954 | u8 node_type; |
| 955 | u8 phys_port_cnt; | 955 | u8 phys_port_cnt; |
| 956 | }; | 956 | }; |
