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)
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

index ca9317107ab7d9855355f5796ae86b30b5f6b829..1afc26785049db18cb2df635d77ea8fcf4999016 100644 (file)
@@ -870,6 +870,7 @@ static struct qedr_dev *qedr_add(struct qed_dev *cdev, struct pci_dev *pdev,
                goto init_err;
 
        dev->user_dpm_enabled = dev_info.user_dpm_enabled;
+       dev->rdma_type = dev_info.rdma_type;
        dev->num_hwfns = dev_info.common.num_hwfns;
        dev->rdma_ctx = dev->ops->rdma_get_rdma_ctx(cdev);