Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp2675309yba; Mon, 8 Apr 2019 02:08:43 -0700 (PDT) X-Google-Smtp-Source: APXvYqyaBAtKzfDTl1e1+CWPDgF73cpgheKAwDGV0X3srH8MP7BRkU+ZMmpviJJYiA40GI+p0tUd X-Received: by 2002:a62:4115:: with SMTP id o21mr28433441pfa.153.1554714523261; Mon, 08 Apr 2019 02:08:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554714523; cv=none; d=google.com; s=arc-20160816; b=arRfmxxua0cT2T8UQTvoiizVMa6WL2Rfe0k49Ouy3g5cM9cQyHlOgHVqc9PxZDtjNB EUsxbyjARqsFIPkxLmK2/5Rlwpkzg2IUEAQmv6HxVTS6+eID37rZ+rZTQnkioO8/rrzx QzSRy+jGFX2ja8QwPoI57uxL2D+AbyRzjEGNnlz7lT3lsoxoiy6jILSSzfq+4SJ9Kh+x mV4h8c7X44sbZS9vxyySlgIDu6woisvZ4KkcvzZkHvpV+7rudMYFpwLH5mPyhyldsUTo 8cKOvnCXNXRuW1VDtTLDQCeF+uf5lKZpyp/8pYGIgmrAXpj1X1nAi0rI/756a362FK2x 903g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:organization:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=8VwuXaz6bdEOWkjhagBimJCrCAyw8TnnJ0gJZieNIXI=; b=nEZiKs60HG6C7BeKtig7ft+BGaNE1csVFqe4CjB8zhvd/Yky/y9U3EgqX7/Xp1AgWQ LaDPZd/A1YTU++sYOXQz8yb3mIbqjkglcKz1mYb3ijMq7R7sh4GpF9NTefIsJi+hSxCm 2Bxd3I8d4I37dl3LWxvfQNnRuvyEYIkMGo/C+4aT3echv5VvPyz5ESbLKdo1yInYkt83 WOFqsTfMUUAQXz58XjuUrtYWVnM/yneOx9UJh3w2qUHgTB6J9HyNc0d/qxJF4iSmtUql jLiKb7rFifTx6Wiyf8NcgfzSJjE0c2S5ulC1LVIiduF8473Dz/GAu7ml1SBsQdPmjceD rkZw== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s5si25599581plr.307.2019.04.08.02.08.27; Mon, 08 Apr 2019 02:08:43 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726513AbfDHJHv (ORCPT + 99 others); Mon, 8 Apr 2019 05:07:51 -0400 Received: from mga18.intel.com ([134.134.136.126]:43389 "EHLO mga18.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726189AbfDHJHu (ORCPT ); Mon, 8 Apr 2019 05:07:50 -0400 X-Amp-Result: UNSCANNABLE X-Amp-File-Uploaded: False Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by orsmga106.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 08 Apr 2019 02:07:48 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.60,324,1549958400"; d="scan'208";a="138442916" Received: from lahna.fi.intel.com (HELO lahna) ([10.237.72.157]) by fmsmga008.fm.intel.com with SMTP; 08 Apr 2019 02:07:45 -0700 Received: by lahna (sSMTP sendmail emulation); Mon, 08 Apr 2019 12:07:44 +0300 Date: Mon, 8 Apr 2019 12:07:44 +0300 From: Mika Westerberg To: Lukas Wunner Cc: linux-kernel@vger.kernel.org, Michael Jamet , Yehezkel Bernat , Andreas Noever , Andy Shevchenko , Christian Kellner , Mario.Limonciello@dell.com Subject: Re: [PATCH v3 19/36] thunderbolt: Extend tunnel creation to more than 2 adjacent switches Message-ID: <20190408090744.GK3622@lahna.fi.intel.com> References: <20190328123633.42882-1-mika.westerberg@linux.intel.com> <20190328123633.42882-20-mika.westerberg@linux.intel.com> <20190407165425.2z5kqm3wcfrxvqzb@wunner.de> <20190408073517.GA3622@lahna.fi.intel.com> <20190408085337.slcnajkgxjq4twkh@wunner.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190408085337.slcnajkgxjq4twkh@wunner.de> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo User-Agent: Mutt/1.11.3 (2019-02-01) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Apr 08, 2019 at 10:53:37AM +0200, Lukas Wunner wrote: > Hm, what other cases are there, i.e. what is the meaning of a tb_regs_hop's > "next_hop" field if "out_port" doesn't have a remote? (And why does it > need to be tracked on the out_port? In case a remote is added later?) We also need to program HopIDs for adapter ports (PCIe, DP, NHI) in order to enable a path. The "next_hop" from NULL port to an adapter port tells the HopID a packet gets when it is routed to the adapter port and the adapter port registers then are used to specify which HopID means what (for PCIe there is only 8 but for DP there is 8 and 9, for NHI it can be anything the service driver has negotiated).