linux-rdma.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH rdma-next] RDMA/qedr: Fix rdma_type initialization
@ 2017-09-19 17:38 Michal Kalderon
       [not found] ` <1505842717-26646-1-git-send-email-Michal.Kalderon-YGCgFSpz5w/QT0dZR+AlfA@public.gmane.org>
  0 siblings, 1 reply; 6+ messages in thread
From: Michal Kalderon @ 2017-09-19 17:38 UTC (permalink / raw)
  To: dledford-H+wXaHxf7aLQT0dZR+AlfA
  Cc: linux-rdma-u79uwXL29TY76Z2rM5mHXA, Michal Kalderon, Ariel Elior

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

Signed-off-by: Michal Kalderon <Michal.Kalderon-YGCgFSpz5w/QT0dZR+AlfA@public.gmane.org>
Signed-off-by: Ariel Elior <Ariel.Elior-YGCgFSpz5w/QT0dZR+AlfA@public.gmane.org>
---
 drivers/infiniband/hw/qedr/main.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/infiniband/hw/qedr/main.c b/drivers/infiniband/hw/qedr/main.c
index ca93171..1afc267 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);
 
-- 
1.8.3.1

--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2017-09-27 13:23 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-09-19 17:38 [PATCH rdma-next] RDMA/qedr: Fix rdma_type initialization Michal Kalderon
     [not found] ` <1505842717-26646-1-git-send-email-Michal.Kalderon-YGCgFSpz5w/QT0dZR+AlfA@public.gmane.org>
2017-09-19 17:47   ` Leon Romanovsky
     [not found]     ` <20170919174721.GL5788-U/DQcQFIOTAAJjI8aNfphQ@public.gmane.org>
2017-09-20  5:42       ` Kalderon, Michal
     [not found]         ` <CY1PR0701MB2012B48FC05034ED663DB1D188610-UpKza+2NMNLHMJvQ0dyT705OhdzP3rhOnBOFsp37pqbUKgpGm//BTAC/G2K4zDHf@public.gmane.org>
2017-09-25 12:29           ` Dennis Dalessandro
     [not found]             ` <1a07af53-0729-956e-129c-2c914e0e3d0c-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
2017-09-26  6:10               ` Leon Romanovsky
     [not found]                 ` <20170926061005.GD1230-U/DQcQFIOTAAJjI8aNfphQ@public.gmane.org>
2017-09-27 13:23                   ` Doug Ledford

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).