From: Andy Grover Date: Tue, 20 Jul 2010 00:15:57 +0000 (-0700) Subject: Use CQ_NEXT_COMP for recv completions X-Git-Tag: v4.1.12-92~319^2^2~2^2~70 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=574f3128c5b2d2ef095c587c967a55bda8499186;p=users%2Fjedix%2Flinux-maple.git Use CQ_NEXT_COMP for recv completions We want to get interrupts for incoming data with no delay. Splitting the CQs lets us have different policies here and for send, where we don't want an event for each send completion. Signed-off-by: Andy Grover Signed-off-by: Chris Mason Signed-off-by: Bang Nguyen --- diff --git a/net/rds/ib_cm.c b/net/rds/ib_cm.c index bd0301ae05fb8..96c4cc01fba57 100644 --- a/net/rds/ib_cm.c +++ b/net/rds/ib_cm.c @@ -312,7 +312,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_SOLICITED); + ib_req_notify_cq(ic->i_rcq, IB_CQ_NEXT_COMP); poll_cq(ic, ic->i_rcq, ic->i_recv_wc, &ack_state); if (ack_state.ack_next_valid)