IB/core: Save the device attributes on the device structure
authorIra Weiny <ira.weiny@intel.com>
Fri, 18 Dec 2015 08:59:44 +0000 (10:59 +0200)
committerDoug Ledford <dledford@redhat.com>
Tue, 22 Dec 2015 19:39:00 +0000 (14:39 -0500)
commit3e153a93a1c12e3354dd38cca414fb51a15136a2
treed37c48936ad158d529edada8ca9abc3d0262c18c
parent4ef7675344d687a0ef5b0d7c0cee12da005870c0
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>
drivers/infiniband/core/device.c
include/rdma/ib_verbs.h