Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp1460139imm; Fri, 8 Jun 2018 17:11:05 -0700 (PDT) X-Google-Smtp-Source: ADUXVKInvA2UdFq14eNNwUcypjf/0M2zg3j3+b6NJkOnzJVJyC5JbbXL/kT4Djzt2uZamfLrCYZV X-Received: by 2002:a62:859c:: with SMTP id m28-v6mr8057474pfk.42.1528503065047; Fri, 08 Jun 2018 17:11:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528503065; cv=none; d=google.com; s=arc-20160816; b=riL2aLVX6eHo9Bjp9hynVjjWRLIsnySWEqGIRmYvacFlxflgfXb4OZL7gzrlUmWePK S1wnwWEp5XlXHxharZha3jnH4DrTY8J+8d1O3ELyLec5vYlPweTyBhrdLEh5SbdshLTc iWNE0cxI2sUTK0wiKgQhG2ZOblQhzN53OpQoQP+P/YocXqzDf8LOAghMIJrQG4M4+NKX 1e+HFVr/sPMCxc+VXoA+JbaKEiZUN4TJ4wXRZole7dhMuOzj9inV1d7/c1iqDMPTKlvK zoWiQ5RTzRAOyHHcRCoPoYoYdMEeC/WtoKtc+dmWT14+argvFciFGF/roF87ubN2Up5E ubYA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:subject:references:in-reply-to:message-id :date:cc:to:from:arc-authentication-results; bh=2mBmo9wPPabuRuYkeU2I+p7iqJBTHK351gG1glxUMqw=; b=XmchMcf4Ql+3UYAVoETBsyp6kWOuGytG0nnQD6/ML3fJy7tCNTyTwzMQn7V3PWRsH/ qqVU4ET8LJyyut6LckfFik9ktW/jM+ZlSlFrcaPiPT4xpo4dxYd6Ulf2oncvEeS+lxCG Q01euXoSmiZWoqIzotnjEfceuCtx7TQgPPkYSFo6cP2Yfs/zDTrXxFWSImPCkxttkHGd 2QTZ2dBar4gcuOpBhdRqF135fFr93rZVrmRzV691Cpzl1HBpG4CCig82n8a2j6EiJvcq TwqF0jmiYJmwaHDdhfNCqGlPe7X6oSAVfk0lW9elyOR+xFjYlKR1oiKEuz+bdKMaz9eg Puag== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t5-v6si15939604pgc.189.2018.06.08.17.10.50; Fri, 08 Jun 2018 17:11:05 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753301AbeFIAJc (ORCPT + 99 others); Fri, 8 Jun 2018 20:09:32 -0400 Received: from ale.deltatee.com ([207.54.116.67]:60538 "EHLO ale.deltatee.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752911AbeFIAI1 (ORCPT ); Fri, 8 Jun 2018 20:08:27 -0400 Received: from cgy1-donard.priv.deltatee.com ([172.16.1.31]) by ale.deltatee.com with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1fRRQd-00043s-2R; Fri, 08 Jun 2018 18:08:23 -0600 Received: from gunthorp by cgy1-donard.priv.deltatee.com with local (Exim 4.89) (envelope-from ) id 1fRRQc-0003d2-2S; Fri, 08 Jun 2018 18:08:22 -0600 From: Logan Gunthorpe To: linux-kernel@vger.kernel.org, linux-ntb@googlegroups.com Cc: Jon Mason , Dave Jiang , Allen Hubbe , Serge Semin , Shyam Sundar S K , Shuah Khan , Logan Gunthorpe Date: Fri, 8 Jun 2018 18:08:16 -0600 Message-Id: <20180609000819.13883-7-logang@deltatee.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20180609000819.13883-1-logang@deltatee.com> References: <20180609000819.13883-1-logang@deltatee.com> X-SA-Exim-Connect-IP: 172.16.1.31 X-SA-Exim-Rcpt-To: linux-kernel@vger.kernel.org, linux-ntb@googlegroups.com, jdmason@kudzu.us, dave.jiang@intel.com, allenbh@gmail.com, fancer.lancer@gmail.com, Shyam-sundar.S-k@amd.com, shuah@kernel.org, logang@deltatee.com X-SA-Exim-Mail-From: gunthorp@deltatee.com X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on ale.deltatee.com X-Spam-Level: X-Spam-Status: No, score=-8.7 required=5.0 tests=ALL_TRUSTED,BAYES_00, GREYLIST_ISWHITE,MYRULES_NO_TEXT autolearn=ham autolearn_force=no version=3.4.1 Subject: [PATCH 5/8] NTB: perf: Don't require one more memory window than peer X-SA-Exim-Version: 4.2.1 (built Tue, 02 Aug 2016 21:08:31 +0000) X-SA-Exim-Scanned: Yes (on ale.deltatee.com) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org NTB Perf should not require more than one memory window per peer. This was probably an off-by-one error. Fixes: 5648e56d03fa ("NTB: ntb_perf: Add full multi-port NTB API support") Signed-off-by: Logan Gunthorpe --- drivers/ntb/test/ntb_perf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/ntb/test/ntb_perf.c b/drivers/ntb/test/ntb_perf.c index 2a9d6b0d1f19..fe27412ffe91 100644 --- a/drivers/ntb/test/ntb_perf.c +++ b/drivers/ntb/test/ntb_perf.c @@ -655,7 +655,7 @@ static int perf_init_service(struct perf_ctx *perf) { u64 mask; - if (ntb_peer_mw_count(perf->ntb) < perf->pcnt + 1) { + if (ntb_peer_mw_count(perf->ntb) < perf->pcnt) { dev_err(&perf->ntb->dev, "Not enough memory windows\n"); return -EINVAL; } -- 2.11.0