Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1686861 > unrolled thread

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

Started byMustafa Ismail <mustafa.ismail@intel.com>
First post2017-07-13 21:40 +0200
Last post2017-07-14 08:50 +0200
Articles 3 — 3 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.


Contents

  [PATCH 2/2] RDMA/core: Initialize port_num in qp_attr Mustafa Ismail <mustafa.ismail@intel.com> - 2017-07-13 21:40 +0200
    RE: [PATCH 2/2] RDMA/core: Initialize port_num in qp_attr "Steve Wise" <swise@opengridcomputing.com> - 2017-07-13 22:30 +0200
    Re: [PATCH 2/2] RDMA/core: Initialize port_num in qp_attr Greg KH <gregkh@linuxfoundation.org> - 2017-07-14 08:50 +0200

#1686861 — [PATCH 2/2] RDMA/core: Initialize port_num in qp_attr

FromMustafa Ismail <mustafa.ismail@intel.com>
Date2017-07-13 21:40 +0200
Subject[PATCH 2/2] RDMA/core: Initialize port_num in qp_attr
Message-ID<u2S7U-1jT-5@gated-at.bofh.it>
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(+)

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]


#1686886

From"Steve Wise" <swise@opengridcomputing.com>
Date2017-07-13 22:30 +0200
Message-ID<u2SUi-1Tu-19@gated-at.bofh.it>
In reply to#1686861
> 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>

[toc] | [prev] | [next] | [standalone]


#1687097

FromGreg KH <gregkh@linuxfoundation.org>
Date2017-07-14 08:50 +0200
Message-ID<u32Ai-84Q-15@gated-at.bofh.it>
In reply to#1686861
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>

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web