From f5c0bae56d8457611947d8707be672e2cf7ca0e0 Mon Sep 17 00:00:00 2001 From: shefty Date: Fri, 7 Aug 2009 18:48:52 +0000 Subject: [PATCH] ibal/cm: allow RDMA writes for QP attributes by default Enable remote RDMA writes as the default QP attributes for INIT transitions. Previously, RDMA writes were only enabled if the CM messages carried a responder resources > 0. However, responder resources indicates whether RDMA reads/atomics should be enabled, not RDMA writes. Without this patch, users of winverbs that connect in-band that want to perform RDMA writes without performing RDMA reads will see QP errors when performing writes. Signed-off-by: Sean Hefty git-svn-id: svn://openib.tc.cornell.edu/gen1@2334 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86 --- trunk/core/al/kernel/al_cm_cep.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/trunk/core/al/kernel/al_cm_cep.c b/trunk/core/al/kernel/al_cm_cep.c index be0a0045..f1ee5499 100644 --- a/trunk/core/al/kernel/al_cm_cep.c +++ b/trunk/core/al/kernel/al_cm_cep.c @@ -6198,12 +6198,10 @@ al_cep_get_init_attr( p_cep->av[p_cep->idx_primary].attr.port_num; p_init->state.init.pkey_index = p_cep->av[p_cep->idx_primary].pkey_index; - p_init->state.init.access_ctrl = IB_AC_LOCAL_WRITE; + p_init->state.init.access_ctrl = IB_AC_LOCAL_WRITE | IB_AC_RDMA_WRITE; if ( p_cep->resp_res ) { - p_init->state.init.access_ctrl |= IB_AC_RDMA_READ | - IB_AC_RDMA_WRITE | - IB_AC_ATOMIC; + p_init->state.init.access_ctrl |= IB_AC_RDMA_READ | IB_AC_ATOMIC; } status = IB_SUCCESS; break; -- 2.41.0