]> err.no Git - linux-2.6/commitdiff
RDMA/cma: Remove local write permission from QP access flags
authorDotan Barak <dotanb@dev.mellanox.co.il>
Tue, 17 Jul 2007 14:58:57 +0000 (17:58 +0300)
committerRoland Dreier <rolandd@cisco.com>
Wed, 18 Jul 2007 03:30:22 +0000 (20:30 -0700)
Local write permission makes no sense as part of the QP access flags,
since the access flags only control what the remote end of the
connection is allowed to do.  Remove the code in the RDMA CM that
initializes qp_access_flags with IB_ACCESS_LOCAL_WRITE.

Signed-off-by: Dotan Barak <dotanb@mellanox.co.il>
Acked-by: Sean Hefty <sean.hefty@intel.com>
Acked-by: Steve Wise <swise@opengridcomputing.com>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
drivers/infiniband/core/cma.c

index 23af7a032a035fbb1c082ca69fdc69053d026515..9ffb9987450a8ef2ddf294ab32dd300b9621c2cf 100644 (file)
@@ -573,7 +573,7 @@ int rdma_init_qp_attr(struct rdma_cm_id *id, struct ib_qp_attr *qp_attr,
                break;
        case RDMA_TRANSPORT_IWARP:
                if (!id_priv->cm_id.iw) {
-                       qp_attr->qp_access_flags = IB_ACCESS_LOCAL_WRITE;
+                       qp_attr->qp_access_flags = 0;
                        *qp_attr_mask = IB_QP_STATE | IB_QP_ACCESS_FLAGS;
                } else
                        ret = iw_cm_init_qp_attr(id_priv->cm_id.iw, qp_attr,