Skip to content

Commit e538e0a

Browse files
mkalderondledford
authored andcommitted
RDMA/qedr: Fix rdma_type initialization
Initialize the rdma_type (iWARP or RoCE) which is set according to device configuration in qed. Fixes: e6a38c5 ("RDMA/qedr: Add support for registering an iWARP device") Signed-off-by: Michal Kalderon <[email protected]> Signed-off-by: Ariel Elior <[email protected]> Signed-off-by: Doug Ledford <[email protected]>
1 parent 0ff4b7e commit e538e0a

File tree

1 file changed

+1
-0
lines changed
  • drivers/infiniband/hw/qedr

1 file changed

+1
-0
lines changed

drivers/infiniband/hw/qedr/main.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -870,6 +870,7 @@ static struct qedr_dev *qedr_add(struct qed_dev *cdev, struct pci_dev *pdev,
870870
goto init_err;
871871

872872
dev->user_dpm_enabled = dev_info.user_dpm_enabled;
873+
dev->rdma_type = dev_info.rdma_type;
873874
dev->num_hwfns = dev_info.common.num_hwfns;
874875
dev->rdma_ctx = dev->ops->rdma_get_rdma_ctx(cdev);
875876

0 commit comments

Comments
 (0)