]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
IB/core: Fix QP attr mask when resolving smac
authorMoni Shoua <monis@mellanox.co.il>
Mon, 3 Feb 2014 13:39:15 +0000 (15:39 +0200)
committerMukesh Kacker <mukesh.kacker@oracle.com>
Tue, 7 Jul 2015 21:45:18 +0000 (14:45 -0700)
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 <monis@mellanox.co.il>
drivers/infiniband/core/cma.c

index c8db3951942f53e43bbaa3d39b9ed9d9a3277b84..ef46b3d00834e5e47f1d6a4d9286b0f5a6e1dd48 100644 (file)
@@ -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;
        }