[rds-devel] [PATCH] rds: Fix IB regression from last patch

Jon Mason jon at opengridcomputing.com
Thu Oct 30 15:03:04 PDT 2008


The patch I sent out on 10/10/08 for iWARP zcopy enablement on RDS broke
IB support.  The patch below fixes the regression.  More testing is
needed on iWARP zcopy, but fixing IB is paramount.

Thanks,
Jon

Signed-Off-By: Jon Mason <jon at opengridcomputing.com>

diff --git a/net/rds/ib_recv.c b/net/rds/ib_recv.c
index 2ca48d5..1da664e 100644
--- a/net/rds/ib_recv.c
+++ b/net/rds/ib_recv.c
@@ -97,12 +97,12 @@ void rds_ib_recv_init_ring(struct rds_ib_connection *ic)
 		sge = rds_ib_data_sge(ic, recv->r_sge);
 		sge->addr = 0;
 		sge->length = RDS_FRAG_SIZE;
-		sge->lkey = 0;
+		sge->lkey = rds_ib_local_dma_lkey(ic);
 
 		sge = rds_ib_header_sge(ic, recv->r_sge);
 		sge->addr = ic->i_recv_hdrs_dma + (i * sizeof(struct rds_header));
 		sge->length = sizeof(struct rds_header);
-		sge->lkey = 0;
+		sge->lkey = rds_ib_local_dma_lkey(ic);
 	}
 }
 



More information about the rds-devel mailing list