RDMA/qedr: Fix rdma_type initialization
authorKalderon, Michal <Michal.Kalderon@cavium.com>
Wed, 20 Sep 2017 05:39:46 +0000 (08:39 +0300)
committerDoug Ledford <dledford@redhat.com>
Fri, 29 Sep 2017 15:18:56 +0000 (11:18 -0400)
commite538e0aca33f81fbfaa10a6954b40ff4360686dd
tree3f5256c7d044326bd648f921858e6d2c7ef141b9
parent0ff4b7e6db6db3341a99a3f0afb5eb8927feb8ab
RDMA/qedr: Fix rdma_type initialization

Initialize the rdma_type (iWARP or RoCE) which is set according to
device configuration in qed.

Fixes: e6a38c54faf ("RDMA/qedr: Add support for registering an iWARP device")
Signed-off-by: Michal Kalderon <Michal.Kalderon@cavium.com>
Signed-off-by: Ariel Elior <Ariel.Elior@cavium.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/hw/qedr/main.c