diff options
author | Kalderon, Michal <Michal.Kalderon@cavium.com> | 2017-09-20 08:39:46 +0300 |
---|---|---|
committer | Doug Ledford <dledford@redhat.com> | 2017-09-29 18:18:56 +0300 |
commit | e538e0aca33f81fbfaa10a6954b40ff4360686dd (patch) | |
tree | 3f5256c7d044326bd648f921858e6d2c7ef141b9 | |
parent | 0ff4b7e6db6db3341a99a3f0afb5eb8927feb8ab (diff) | |
download | linux-e538e0aca33f81fbfaa10a6954b40ff4360686dd.tar.xz |
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>
-rw-r--r-- | drivers/infiniband/hw/qedr/main.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/infiniband/hw/qedr/main.c b/drivers/infiniband/hw/qedr/main.c index ca9317107ab7..1afc26785049 100644 --- a/drivers/infiniband/hw/qedr/main.c +++ b/drivers/infiniband/hw/qedr/main.c @@ -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); |