[ewg] [PATCH] krping: Remote Write Access requires Local Write Access (resend)
Jon Mason
jon at opengridcomputing.com
Mon Oct 5 13:38:18 PDT 2009
per IB Spec, 11.2.8.2:
"Remote Write Access requires Local Write Access to be enabled."
Signed-off-by: Jon Mason <jon at opengridcomputing.com>
---
krping.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/krping.c b/krping.c
index 5f6e893..095b556 100644
--- a/krping.c
+++ b/krping.c
@@ -871,7 +871,7 @@ static u32 krping_rdma_rkey(struct krping_cb *cb, u64 buf, int post_inv)
if (buf == (u64)cb->start_dma_addr)
cb->fastreg_wr.wr.fast_reg.access_flags = IB_ACCESS_REMOTE_READ;
else
- cb->fastreg_wr.wr.fast_reg.access_flags = IB_ACCESS_REMOTE_WRITE;
+ cb->fastreg_wr.wr.fast_reg.access_flags = IB_ACCESS_REMOTE_WRITE | IB_ACCESS_LOCAL_WRITE;
cb->fastreg_wr.wr.fast_reg.iova_start = buf;
p = (u64)(buf & PAGE_MASK);
for (i=0; i < cb->fastreg_wr.wr.fast_reg.page_list_len;
--
1.6.0.4
More information about the ewg
mailing list