From d40d928b41d921763adf8973a4ea3e2b1ce28307 Mon Sep 17 00:00:00 2001 From: Bang Nguyen Date: Fri, 3 Feb 2012 11:09:49 -0500 Subject: [PATCH] RDS: Use IB_CQ_NEXT_COMP instead of IB_CQ_SOLICITED for TX CQ Signed-off-by: Chris Mason Signed-off-by: Bang Nguyen --- net/rds/ib_cm.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/net/rds/ib_cm.c b/net/rds/ib_cm.c index 8beeed4c0bae..12ccb1447e56 100644 --- a/net/rds/ib_cm.c +++ b/net/rds/ib_cm.c @@ -294,7 +294,7 @@ void rds_ib_tasklet_fn_send(unsigned long data) rds_ib_stats_inc(s_ib_tasklet_call); poll_cq(ic, ic->i_scq, ic->i_send_wc, &ack_state); - ib_req_notify_cq(ic->i_scq, IB_CQ_SOLICITED); + ib_req_notify_cq(ic->i_scq, IB_CQ_NEXT_COMP); poll_cq(ic, ic->i_scq, ic->i_send_wc, &ack_state); if (rds_conn_up(conn) && @@ -314,7 +314,7 @@ void rds_ib_tasklet_fn_recv(unsigned long data) memset(&ack_state, 0, sizeof(ack_state)); poll_cq(ic, ic->i_rcq, ic->i_recv_wc, &ack_state); - ib_req_notify_cq(ic->i_rcq, IB_CQ_NEXT_COMP); + ib_req_notify_cq(ic->i_rcq, IB_CQ_SOLICITED); poll_cq(ic, ic->i_rcq, ic->i_recv_wc, &ack_state); if (ack_state.ack_next_valid) @@ -403,7 +403,7 @@ static int rds_ib_setup_qp(struct rds_connection *conn) goto out; } - ret = ib_req_notify_cq(ic->i_scq, IB_CQ_SOLICITED); + ret = ib_req_notify_cq(ic->i_scq, IB_CQ_NEXT_COMP); if (ret) { rdsdebug("ib_req_notify_cq send failed: %d\n", ret); goto out; -- 2.50.1