]> git.baikalelectronics.ru Git - kernel.git/commit
IB/{rdmavt, hfi1, qib}: Self determine driver name
authorMichael J. Ruhl <michael.j.ruhl@intel.com>
Tue, 19 Dec 2017 03:56:37 +0000 (19:56 -0800)
committerDoug Ledford <dledford@redhat.com>
Fri, 5 Jan 2018 18:34:55 +0000 (13:34 -0500)
commitdf374a04cead6927bfb3817998caf745b23b378b
tree5ec43c3e6b4641c7fbb584daa6ec2df69684fa5d
parentf0791b2a6880d49e96444fe32a3c6518ace6a7ef
IB/{rdmavt, hfi1, qib}: Self determine driver name

Currently the HFI and QIB drivers allow the IB core to assign a unit
number to the driver name string.

If multiple devices exist in a system, there is a possibility that the
device unit number and the IB core number will be mismatched.

Fix by using the driver defined unit number to generate the device
name.

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>
drivers/infiniband/hw/hfi1/init.c
drivers/infiniband/hw/hfi1/verbs.c
drivers/infiniband/hw/qib/qib_init.c
drivers/infiniband/hw/qib/qib_verbs.c
include/rdma/rdma_vt.h