Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1687480 > unrolled thread
| Started by | Mustafa Ismail <mustafa.ismail@intel.com> |
|---|---|
| First post | 2017-07-14 16:50 +0200 |
| Last post | 2017-07-17 21:20 +0200 |
| Articles | 2 — 2 participants |
Back to article view | Back to linux.kernel
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
[PATCH v2 2/2] RDMA/core: Initialize port_num in qp_attr Mustafa Ismail <mustafa.ismail@intel.com> - 2017-07-14 16:50 +0200
RE: [PATCH v2 2/2] RDMA/core: Initialize port_num in qp_attr "Marciniszyn, Mike" <mike.marciniszyn@intel.com> - 2017-07-17 21:20 +0200
| From | Mustafa Ismail <mustafa.ismail@intel.com> |
|---|---|
| Date | 2017-07-14 16:50 +0200 |
| Subject | [PATCH v2 2/2] RDMA/core: Initialize port_num in qp_attr |
| Message-ID | <u3a4N-4Lm-5@gated-at.bofh.it> |
Initialize the port_num for iWARP in rdma_init_qp_attr.
Fixes: 5ecce4c9b17b("Check port number supplied by user verbs cmds")
Cc: <stable@vger.kernel.org> # v2.6.14+
Reviewed-by: Steve Wise <swise@opengridcomputing.com>
Signed-off-by: Mustafa Ismail <mustafa.ismail@intel.com>
---
drivers/infiniband/core/cma.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/drivers/infiniband/core/cma.c b/drivers/infiniband/core/cma.c
index 31bb82d..d65a093 100644
--- a/drivers/infiniband/core/cma.c
+++ b/drivers/infiniband/core/cma.c
@@ -1044,6 +1044,8 @@ int rdma_init_qp_attr(struct rdma_cm_id *id, struct ib_qp_attr *qp_attr,
} else
ret = iw_cm_init_qp_attr(id_priv->cm_id.iw, qp_attr,
qp_attr_mask);
+ qp_attr->port_num = id_priv->id.port_num;
+ *qp_attr_mask |= IB_QP_PORT;
} else
ret = -ENOSYS;
--
2.7.4
[toc] | [next] | [standalone]
| From | "Marciniszyn, Mike" <mike.marciniszyn@intel.com> |
|---|---|
| Date | 2017-07-17 21:20 +0200 |
| Message-ID | <u4jIJ-Dg-7@gated-at.bofh.it> |
| In reply to | #1687480 |
> Subject: [PATCH v2 2/2] RDMA/core: Initialize port_num in qp_attr
>
> Initialize the port_num for iWARP in rdma_init_qp_attr.
>
> Fixes: 5ecce4c9b17b("Check port number supplied by user verbs cmds")
> Cc: <stable@vger.kernel.org> # v2.6.14+
> Reviewed-by: Steve Wise <swise@opengridcomputing.com>
> Signed-off-by: Mustafa Ismail <mustafa.ismail@intel.com>
Tested-by: Mike Marciniszyn <mike.marciniszyn@intel.com>
[toc] | [prev] | [standalone]
Back to top | Article view | linux.kernel
csiph-web