From patchwork Tue Aug 17 18:59:07 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ralph Campbell X-Patchwork-Id: 120003 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter.kernel.org (8.14.4/8.14.3) with ESMTP id o7HIxG6Q028242 for ; Tue, 17 Aug 2010 18:59:16 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1761073Ab0HQS7P (ORCPT ); Tue, 17 Aug 2010 14:59:15 -0400 Received: from avexcashub1.qlogic.com ([198.70.193.61]:52300 "EHLO avexcashub1.qlogic.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1763330Ab0HQS7P (ORCPT ); Tue, 17 Aug 2010 14:59:15 -0400 Received: from avexcashub2.qlogic.org (10.1.4.116) by avexcashub1.qlogic.org (10.1.4.161) with Microsoft SMTP Server (TLS) id 8.1.436.0; Tue, 17 Aug 2010 11:59:14 -0700 Received: from [10.29.2.82] (10.29.2.82) by avexcashub2.qlogic.org (10.1.4.162) with Microsoft SMTP Server id 8.1.436.0; Tue, 17 Aug 2010 11:59:12 -0700 Subject: RE: CQ overrun with ib_send_bw From: Ralph Campbell To: Amir Ancel CC: Tziporet Koren , "Hefty, Sean" , Ido Shamay , Sumeet Lahorani , "linux-rdma@vger.kernel.org" , Raz Baussi In-Reply-To: <1EEC75D0B27041449A1EEA2927D1B145380145A7DA@MTLMAIL.mtl.com> References: <4C659288.4030402@oracle.com> <1281726396.2313.44.camel@chromite.mv.qlogic.com> <1281727297.2313.47.camel@chromite.mv.qlogic.com> <1EEC75D0B27041449A1EEA2927D1B145380145A7DA@MTLMAIL.mtl.com> Organization: QLogic Date: Tue, 17 Aug 2010 11:59:07 -0700 Message-ID: <1282071547.2313.100.camel@chromite.mv.qlogic.com> MIME-Version: 1.0 X-Mailer: Evolution 2.28.3 (2.28.3-1.fc12) Sender: linux-rdma-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-rdma@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter.kernel.org [140.211.167.41]); Tue, 17 Aug 2010 18:59:17 +0000 (UTC) diff --git a/send_bw.c b/send_bw.c index ddd2b73..e3f644a 100644 --- a/send_bw.c +++ b/send_bw.c @@ -746,6 +746,8 @@ static struct pingpong_context *pp_init_ctx(struct ibv_device *ib_dev, if (user_parm->use_mcg && !user_parm->servername) { cq_rx_depth *= user_parm->num_of_clients_mcg; } + if (user_parm->duplex) + cq_rx_depth += ctx->tx_depth; ctx->cq = ibv_create_cq(ctx->context,cq_rx_depth, NULL, ctx->channel, 0); if (!ctx->cq) { fprintf(stderr, "Couldn't create CQ\n");