linux-rdma.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v1 rdma-next] RDMA/qedr: Fix rdma_type initialization
@ 2017-09-20  5:39 Michal Kalderon
       [not found] ` <1505885986-5873-1-git-send-email-Michal.Kalderon-YGCgFSpz5w/QT0dZR+AlfA@public.gmane.org>
  0 siblings, 1 reply; 12+ messages in thread
From: Michal Kalderon @ 2017-09-20  5:39 UTC (permalink / raw)
  To: michal.kalderon-YGCgFSpz5w/QT0dZR+AlfA,
	dledford-H+wXaHxf7aLQT0dZR+AlfA, leon-DgEjT+Ai2ygdnm+yROfE0A
  Cc: linux-rdma-u79uwXL29TY76Z2rM5mHXA, Michal Kalderon, Ariel Elior

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-YGCgFSpz5w/QT0dZR+AlfA@public.gmane.org>
Signed-off-by: Ariel Elior <Ariel.Elior-YGCgFSpz5w/QT0dZR+AlfA@public.gmane.org>

---
This patch applies cleanly on k.o/for-next-merged

Changes from V0:
- Added Fixes in commit comment.

---
 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] 12+ messages in thread

end of thread, other threads:[~2017-09-29 15:22 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-09-20  5:39 [PATCH v1 rdma-next] RDMA/qedr: Fix rdma_type initialization Michal Kalderon
     [not found] ` <1505885986-5873-1-git-send-email-Michal.Kalderon-YGCgFSpz5w/QT0dZR+AlfA@public.gmane.org>
2017-09-27 13:27   ` Doug Ledford
     [not found]     ` <1506518845.82712.15.camel-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2017-09-27 16:18       ` Kalderon, Michal
     [not found]         ` <CY1PR0701MB20126E3E86A45619079DFCAC88780-UpKza+2NMNLHMJvQ0dyT705OhdzP3rhOnBOFsp37pqbUKgpGm//BTAC/G2K4zDHf@public.gmane.org>
2017-09-27 16:53           ` Leon Romanovsky
     [not found]             ` <20170927165339.GI2297-U/DQcQFIOTAAJjI8aNfphQ@public.gmane.org>
2017-09-27 16:56               ` Leon Romanovsky
     [not found]                 ` <20170927165610.GJ2297-U/DQcQFIOTAAJjI8aNfphQ@public.gmane.org>
2017-09-27 20:33                   ` Kalderon, Michal
     [not found]                     ` <CY1PR0701MB2012A41A0744D17AD3CD10DB88780-UpKza+2NMNLHMJvQ0dyT705OhdzP3rhOnBOFsp37pqbUKgpGm//BTAC/G2K4zDHf@public.gmane.org>
2017-09-28  3:27                       ` Leon Romanovsky
     [not found]                         ` <20170928032725.GO2297-U/DQcQFIOTAAJjI8aNfphQ@public.gmane.org>
2017-09-28  6:22                           ` Kalderon, Michal
     [not found]                             ` <CY1PR0701MB20122CDD0A73BB963A43755288790-UpKza+2NMNLHMJvQ0dyT705OhdzP3rhOnBOFsp37pqbUKgpGm//BTAC/G2K4zDHf@public.gmane.org>
2017-09-28  6:49                               ` Leon Romanovsky
     [not found]                                 ` <20170928064955.GP2297-U/DQcQFIOTAAJjI8aNfphQ@public.gmane.org>
2017-09-28  6:51                                   ` Kalderon, Michal
2017-09-28 14:05                               ` Doug Ledford
2017-09-29 15:22       ` 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).