mirror of
https://github.com/torvalds/linux.git
synced 2024-12-31 23:31:29 +00:00
RDMA/qedr: Fix rdma_type initialization
Initialize the rdma_type (iWARP or RoCE) which is set according to
device configuration in qed.
Fixes: e6a38c54fa
("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>
This commit is contained in:
parent
0ff4b7e6db
commit
e538e0aca3
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user