|
@@ -868,7 +868,6 @@ static int cma_modify_qp_rtr(struct rdma_id_private *id_priv,
|
|
{
|
|
{
|
|
struct ib_qp_attr qp_attr;
|
|
struct ib_qp_attr qp_attr;
|
|
int qp_attr_mask, ret;
|
|
int qp_attr_mask, ret;
|
|
- union ib_gid sgid;
|
|
|
|
|
|
|
|
mutex_lock(&id_priv->qp_mutex);
|
|
mutex_lock(&id_priv->qp_mutex);
|
|
if (!id_priv->id.qp) {
|
|
if (!id_priv->id.qp) {
|
|
@@ -891,12 +890,6 @@ static int cma_modify_qp_rtr(struct rdma_id_private *id_priv,
|
|
if (ret)
|
|
if (ret)
|
|
goto out;
|
|
goto out;
|
|
|
|
|
|
- ret = ib_query_gid(id_priv->id.device, id_priv->id.port_num,
|
|
|
|
- rdma_ah_read_grh(&qp_attr.ah_attr)->sgid_index,
|
|
|
|
- &sgid, NULL);
|
|
|
|
- if (ret)
|
|
|
|
- goto out;
|
|
|
|
-
|
|
|
|
BUG_ON(id_priv->cma_dev->device != id_priv->id.device);
|
|
BUG_ON(id_priv->cma_dev->device != id_priv->id.device);
|
|
|
|
|
|
if (conn_param)
|
|
if (conn_param)
|