From: Moni Shoua Date: Mon, 3 Feb 2014 13:39:15 +0000 (+0200) Subject: IB/core: Fix QP attr mask when resolving smac X-Git-Tag: v4.1.12-92~293^2~1^2~45 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=73fdcc3093ebf1444f4055547406708352531913;p=users%2Fjedix%2Flinux-maple.git IB/core: Fix QP attr mask when resolving smac When rdma_accept() is called rdma_cm modifies the QP to RTR. During this stage the source mac needs to be resolved and put in the QP atrr. Before modifying the QP. This patch also adds the flag IB_QP_SMAC to the atrr_mask which was missing. Signed-off-by: Moni Shoua --- diff --git a/drivers/infiniband/core/cma.c b/drivers/infiniband/core/cma.c index c8db3951942f5..ef46b3d00834e 100644 --- a/drivers/infiniband/core/cma.c +++ b/drivers/infiniband/core/cma.c @@ -675,7 +675,7 @@ static int cma_modify_qp_rtr(struct rdma_id_private *id_priv, rdma_port_get_link_layer(id_priv->id.device, id_priv->id.port_num) == IB_LINK_LAYER_ETHERNET) { ret = rdma_addr_find_smac_by_sgid(&sgid, qp_attr.smac, NULL); - + qp_attr_mask |= IB_QP_SMAC; if (ret) goto out; }