Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp1198442imm; Fri, 15 Jun 2018 12:52:17 -0700 (PDT) X-Google-Smtp-Source: ADUXVKIH41Q4jtKXBdt9N6hZLYzHronS47PBhWpIQX5UloT+b2NdRSGOZPZl4mqhKtBe6bpBOjYp X-Received: by 2002:a65:62ce:: with SMTP id m14-v6mr2809765pgv.407.1529092337362; Fri, 15 Jun 2018 12:52:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529092337; cv=none; d=google.com; s=arc-20160816; b=DOChE99l7CgJ1pWKWlh5ipzZPZvY88Krof2RCp/cjfsNeqJOZs7vsIED7dkotHnZNx so9Qk0eKX9pmgHSv3mg9wNhizCBRBz5iJffdsbpL9zHaVSM495cdC0kfPauDA21Pl5Dj p1C/0whqJdc/0EeZG6eIqcLstnUcgNbRdYXYQ5knvNKx+by1BrNoutGqi9kt8c22SZsP kf+Ivb6zg+grPyBAHLFGMnHkvOwHinuRc8YyZr6FzMBJt7NmI/FbVXnE5Jz50F8JZpDj UTi2ZchpYfGTzrPdcUJGHi5IUeB/e83ek7/yMNUPfEvsShb0CBUZdnYk7kL6flm+gXLd jDrg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:subject:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:arc-authentication-results; bh=vTco3czLBFJJWGocWsKp3DIGJheFIPVNu0f1hjvuYvM=; b=SuDUXr9LU5UVZrNKzfaJpXQQDSakWw2aCKvN9cPJKfv1QSLzQQxN84YkoeJxZGWlCN 5qEN/Pl3OGgu9MrsXZyb7H/LwlG3qwAmKOJKppWNfEiIVtx4z2+zIaJLydL/R/tIXReg CiOgAfj9QNfKtOs2iwv9Twe7Pbo9ZReddbp4gIZ9FS3lys0FoxKYhcW4M4LIRUSqDYGH w6CcLZjDxG/a9b61XzfnhTgESDcxwr1IXLAIIiMTb2qkc5Q7WdfED7z66fIotLu0K8If /mGXOmNU3HEPc/R85N+mTCes/27i/MNcGO/BnmXhAcaJJyTCnbEfGG8dsjJn9Ab+f95W Wigg== 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 x24-v6si8720710pln.22.2018.06.15.12.52.03; Fri, 15 Jun 2018 12:52:17 -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 S966424AbeFOTvc (ORCPT + 99 others); Fri, 15 Jun 2018 15:51:32 -0400 Received: from ale.deltatee.com ([207.54.116.67]:52666 "EHLO ale.deltatee.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S966065AbeFOTvb (ORCPT ); Fri, 15 Jun 2018 15:51:31 -0400 Received: from guinness.priv.deltatee.com ([172.16.1.162]) by ale.deltatee.com with esmtp (Exim 4.89) (envelope-from ) id 1fTuki-0006yD-8W; Fri, 15 Jun 2018 13:51:20 -0600 To: Serge Semin Cc: linux-kernel@vger.kernel.org, linux-ntb@googlegroups.com, Jon Mason , Dave Jiang , Allen Hubbe , Shyam Sundar S K , Shuah Khan References: <20180609000819.13883-1-logang@deltatee.com> <20180609000819.13883-4-logang@deltatee.com> <20180615194848.GA22880@mobilestation> From: Logan Gunthorpe Message-ID: <5fbee1ec-b66d-3e82-c19f-dbb8d8582509@deltatee.com> Date: Fri, 15 Jun 2018 13:51:16 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.8.0 MIME-Version: 1.0 In-Reply-To: <20180615194848.GA22880@mobilestation> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-SA-Exim-Connect-IP: 172.16.1.162 X-SA-Exim-Rcpt-To: shuah@kernel.org, Shyam-sundar.S-k@amd.com, allenbh@gmail.com, dave.jiang@intel.com, jdmason@kudzu.us, linux-ntb@googlegroups.com, linux-kernel@vger.kernel.org, fancer.lancer@gmail.com X-SA-Exim-Mail-From: logang@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.9 required=5.0 tests=ALL_TRUSTED,BAYES_00, GREYLIST_ISWHITE autolearn=ham autolearn_force=no version=3.4.1 Subject: Re: [PATCH 3/8] NTB: Fix the default port and peer numbers for legacy drivers 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 On 15/06/18 01:48 PM, Serge Semin wrote: > Concerning the fix of the discovered issues and fixes introduced by this > patchset. I'd suggest to add the ports-index callbacks to the Switchtec > driver, which identify local and peer ports. After this the current version > of all the test drivers shall perfectly work. Well that will work for the simple switchtec case. The crosslink topology CAN NOT produce port numbers like you ask. It is perfectly symmetric and the two hosts cannot reliably figure out which is port 0 and which is port 1. So these patches support this case. Logan