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 <[EMAIL PROTECTED]>

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);
        }
 }
 
_______________________________________________
general mailing list
[email protected]
http://lists.openfabrics.org/cgi-bin/mailman/listinfo/general

To unsubscribe, please visit http://openib.org/mailman/listinfo/openib-general

Reply via email to