aboutsummaryrefslogtreecommitdiffstats
path: root/net/rds/ib_send.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/rds/ib_send.c')
-rw-r--r--net/rds/ib_send.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/net/rds/ib_send.c b/net/rds/ib_send.c
index eac30bf486d7..f27d2c82b036 100644
--- a/net/rds/ib_send.c
+++ b/net/rds/ib_send.c
@@ -195,7 +195,7 @@ void rds_ib_send_init_ring(struct rds_ib_connection *ic)
195 195
196 send->s_op = NULL; 196 send->s_op = NULL;
197 197
198 send->s_wr.wr_id = i | RDS_IB_SEND_OP; 198 send->s_wr.wr_id = i;
199 send->s_wr.sg_list = send->s_sge; 199 send->s_wr.sg_list = send->s_sge;
200 send->s_wr.ex.imm_data = 0; 200 send->s_wr.ex.imm_data = 0;
201 201
@@ -263,9 +263,7 @@ void rds_ib_send_cqe_handler(struct rds_ib_connection *ic, struct ib_wc *wc)
263 263
264 oldest = rds_ib_ring_oldest(&ic->i_send_ring); 264 oldest = rds_ib_ring_oldest(&ic->i_send_ring);
265 265
266 completed = rds_ib_ring_completed(&ic->i_send_ring, 266 completed = rds_ib_ring_completed(&ic->i_send_ring, wc->wr_id, oldest);
267 (wc->wr_id & ~RDS_IB_SEND_OP),
268 oldest);
269 267
270 for (i = 0; i < completed; i++) { 268 for (i = 0; i < completed; i++) {
271 send = &ic->i_sends[oldest]; 269 send = &ic->i_sends[oldest];