linux/drivers/infiniband
Michael J. Ruhl 5fbded483c IB/hfi1: Search shared contexts on the opened device, not all devices
The search for available shared contexts walks each registered hfi1
device.  This search is too broad because other devices may not
be on the same fabric, and using its contexts could cause unexpected
behavior.

Removed walking the list of devices, limiting the search to the opened
device.  With the device walk removed, the hfi1_devdata (dd) is not
available. Added it to the hfi1_filedata for reference.

With this change, hfi1_count_units() was rendered obsolete and was
removed.

Reviewed-by: Mike Marciniszyn <mike.marciniszyn@intel.com>
Signed-off-by: Michael J. Ruhl <michael.j.ruhl@intel.com>
Signed-off-by: Dennis Dalessandro <dennis.dalessandro@intel.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
2017-05-04 19:31:46 -04:00
..
core infiniband: avoid dereferencing uninitialized dst on error path 2017-05-02 10:45:45 -04:00
hw IB/hfi1: Search shared contexts on the opened device, not all devices 2017-05-04 19:31:46 -04:00
sw IB/rxe: Don't clamp residual length to mtu 2017-05-01 14:42:58 -04:00
ulp IB/ipoib: add get_link_ksettings in ethtool 2017-05-04 19:31:46 -04:00
Kconfig IB/opa-vnic: Virtual Network Interface Controller (VNIC) netdev 2017-04-20 12:01:38 -04:00
Makefile IB/rdmavt: Create module framework and handle driver registration 2016-03-10 20:37:04 -05:00