aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorIra Weiny <ira.weiny@intel.com>2015-12-18 10:59:44 +0200
committerDoug Ledford <dledford@redhat.com>2015-12-22 14:39:00 -0500
commit3e153a93a1c12e3354dd38cca414fb51a15136a2 (patch)
treed37c48936ad158d529edada8ca9abc3d0262c18c /include
parentLinux 4.4-rc6 (diff)
downloadlinux-dev-3e153a93a1c12e3354dd38cca414fb51a15136a2.tar.xz
linux-dev-3e153a93a1c12e3354dd38cca414fb51a15136a2.zip
IB/core: Save the device attributes on the device structure
This way both the IB core and upper level drivers can access these cached device attributes rather than querying or caching them on their own. Signed-off-by: Ira Weiny <ira.weiny@intel.com> Signed-off-by: Or Gerlitz <ogerlitz@mellanox.com> Signed-off-by: Doug Ledford <dledford@redhat.com>
Diffstat (limited to 'include')
-rw-r--r--include/rdma/ib_verbs.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/rdma/ib_verbs.h b/include/rdma/ib_verbs.h
index 120da1d7f57e..730dcfb209b9 100644
--- a/include/rdma/ib_verbs.h
+++ b/include/rdma/ib_verbs.h
@@ -1823,6 +1823,7 @@ struct ib_device {
u16 is_switch:1;
u8 node_type;
u8 phys_port_cnt;
+ struct ib_device_attr attrs;
/**
* The following mandatory functions are used only at device