Message ID | 1499974658-6180-3-git-send-email-mustafa.ismail@intel.com (mailing list archive) |
---|---|
State | Superseded |
Headers | show |
> Initialize the port_num for iWARP in rdma_init_qp_attr. > > Signed-off-by: Mustafa Ismail <mustafa.ismail@intel.com> Looks fine. Reviewed-by: Steve Wise <swise@opengridcomputing.com> -- To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
On Thu, Jul 13, 2017 at 02:37:38PM -0500, Mustafa Ismail wrote: > Initialize the port_num for iWARP in rdma_init_qp_attr. > > Signed-off-by: Mustafa Ismail <mustafa.ismail@intel.com> > --- > drivers/infiniband/core/cma.c | 2 ++ > 1 file changed, 2 insertions(+) <formletter> This is not the correct way to submit patches for inclusion in the stable kernel tree. Please read: https://www.kernel.org/doc/html/latest/process/stable-kernel-rules.html for how to do this properly. </formletter> -- To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
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;
Initialize the port_num for iWARP in rdma_init_qp_attr. Signed-off-by: Mustafa Ismail <mustafa.ismail@intel.com> --- drivers/infiniband/core/cma.c | 2 ++ 1 file changed, 2 insertions(+)