[azure][PATCH] RDMA/core: Initialize port_num in qp_attr

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

[azure][PATCH] RDMA/core: Initialize port_num in qp_attr

Marcelo Henrique Cerri
From: Ismail, Mustafa <[hidden email]>

BugLink: http://bugs.launchpad.net/bugs/1709681

Initialize the port_num for iWARP in rdma_init_qp_attr.

Fixes: 5ecce4c9b17b("Check port number supplied by user verbs cmds")
Cc: <[hidden email]> # v2.6.14+
Reviewed-by: Steve Wise <[hidden email]>
Signed-off-by: Mustafa Ismail <[hidden email]>
Tested-by: Mike Marciniszyn <[hidden email]>
Signed-off-by: Doug Ledford <[hidden email]>
(cherry picked from commit a62ab66b13a0f9bcb17b7b761f6670941ed5cd62)
Signed-off-by: Marcelo Henrique Cerri <[hidden email]>
---
 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 acd10d666f1c..087e9a7ca326 100644
--- a/drivers/infiniband/core/cma.c
+++ b/drivers/infiniband/core/cma.c
@@ -1043,6 +1043,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


--
kernel-team mailing list
[hidden email]
https://lists.ubuntu.com/mailman/listinfo/kernel-team
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

APPLIED: [azure][PATCH] RDMA/core: Initialize port_num in qp_attr

Marcelo Henrique Cerri
Acked-by: Marcelo Henrique Cerri <[hidden email]>

--
kernel-team mailing list
[hidden email]
https://lists.ubuntu.com/mailman/listinfo/kernel-team
Loading...