Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp2733018yba; Mon, 8 Apr 2019 03:35:34 -0700 (PDT) X-Google-Smtp-Source: APXvYqxDcSrgz37tfpN+01/DL1whjj1dOce7g6Vi3/gtK//hDsYud6vuUkVFhuNmvLAmP84BE2cJ X-Received: by 2002:a17:902:28e9:: with SMTP id f96mr8792494plb.190.1554719734586; Mon, 08 Apr 2019 03:35:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554719734; cv=none; d=google.com; s=arc-20160816; b=Awtw8+tw/ATtEjfGIS/ncOqPAw1h4hwdBK3VOrtsqTy/lkyYwC8JGJq7RyLvTD1ehd GOvhFRF9h651yIQ0JuJ/u/5ISvoQLsieZW0Rs2MspqjAjLf7AV+RdxVZDLXSI/gFOSxL nq10VrttAaZja1/z+y7gw1FSnX4wAWwLK5+17BaR4ZHWOKq5XxyeBp+QZWa1pOmMIvot gsZvpcTaQqb/AkREgFbA77h4epFlKQ3CymfEik2FNSSuprMsPQEsWf6dI7XNIyHlgfd/ nLXteiY3I4Mcji7DtBxjEFAhXbjNs5qvuyn+/xnvMcdBeJtcxf3QUCgsd+YyoKJU80HX FVTQ== 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=ouy5BQUSLCDa+L9sg63aKtM6qeo015IcMilQekVPuM8=; b=GBfgRzZiSNCjkdoR2ts5a7ecInGBeBvBc4imybgPwjmr0MZIBI8PKhEyPF11rOFYK+ UJULNsbIN15ge4EFLvQtq9/7P3t1z+pJSn8hh+XnqUnTrZUGBAVP71POHMsTh1RoNLIl AYqQydtCBXylz6juPdmU4wa7653fo+4r3imu7jLtElQOZ8BSe8P5m6mCKrHJh8Mj6MUC astW2T9vyNXI9eE187rO2IIAz+m2WzZaMRtTTA4YvIGOoLjOAppFP+ztgcRN0s9Qzaef tq51uNETYjB14S1VVCwXpcna2yDwrxrKCUoTsjrteEFygPL0R0zvbF7ECTQvf3AVx9ZO 13Cw== 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 c5si25763985plr.5.2019.04.08.03.35.19; Mon, 08 Apr 2019 03:35:34 -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 S1726501AbfDHKel (ORCPT + 99 others); Mon, 8 Apr 2019 06:34:41 -0400 Received: from mga09.intel.com ([134.134.136.24]:19720 "EHLO mga09.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726025AbfDHKel (ORCPT ); Mon, 8 Apr 2019 06:34:41 -0400 X-Amp-Result: UNSCANNABLE X-Amp-File-Uploaded: False Received: from orsmga005.jf.intel.com ([10.7.209.41]) by orsmga102.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 08 Apr 2019 03:34:40 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.60,325,1549958400"; d="scan'208";a="314038453" Received: from lahna.fi.intel.com (HELO lahna) ([10.237.72.157]) by orsmga005.jf.intel.com with SMTP; 08 Apr 2019 03:34:37 -0700 Received: by lahna (sSMTP sendmail emulation); Mon, 08 Apr 2019 13:34:36 +0300 Date: Mon, 8 Apr 2019 13:34:36 +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: <20190408103436.GO3622@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> <20190408090744.GK3622@lahna.fi.intel.com> <20190408094904.o3fo2anhogyxpaja@wunner.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190408094904.o3fo2anhogyxpaja@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 11:49:04AM +0200, Lukas Wunner wrote: > On Mon, Apr 08, 2019 at 12:07:44PM +0300, Mika Westerberg wrote: > > 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). > > Okay, so in_hopids are the entries allocated in this port's hop config > space, whereas out_hopids only really bears significance for adapter > ports. For null ports (in-between two adapter ports on a path), > out_hopids is identical to the in_hopids of the next hop (IIUC). > > That probably merits mentioning in struct tb_port's kerneldoc. Sure, will do.