Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp3697710ybg; Sun, 20 Oct 2019 19:49:20 -0700 (PDT) X-Google-Smtp-Source: APXvYqz3I5BlDqPOY94pFNify8H+RMuPO7zbioVFH/720Y469OIMcABHYJJX2PMieLK2p2fHrPsh X-Received: by 2002:a05:6402:149a:: with SMTP id e26mr22435972edv.123.1571626160760; Sun, 20 Oct 2019 19:49:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571626160; cv=none; d=google.com; s=arc-20160816; b=EBKicdoQa7vsjphGnzaO8IuzjmuKgAikIc1M1K6AqI2lo5+ymjAnQbjJvzh1GRQatE WMKpLyKWglZpRTdCcwmz+r9PmUoTpXiCpo7chWO1QLoln4RfYHciSsxi6Zp1LimJbsN5 yaR5T63dZZNwKGsv9pVGYDVDSCtBVIgCGcV/QnRcNW8zxL//ejBaP7cLLfXu8U2f7Hhg n1Fa++f3UdPQd9GPqpc2f7wVJf1kSHvDS1hU4Z9CTE3ZKhKas8juS6PHGCcj0seg8p46 nTnPx0ADAzUrbpDEEYtaQUIgcsWucCzToyqIyjA1r78vS1kxp8+uxf1mkK8fUFvQT2TV leDA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=DTpTVkESn2vrQ+FsIrJTz16bCNnqcqqTMFT1dR0+ZsM=; b=wGqdO0X6VcqhqexrtOTYAkREbbWh3/vNKrQO+s+fSnjs7jFE/V2xPONVxzfYpKcEl9 PnSuZg0Uo+DlDT5T5IwgSVYm5PDnhJ0q30MBfRpl1kXKLzldAwBT2MZK1bhwo7Lyh+MX ZkMvMnlaAFwVeYdX7u7na+kX+EDD6/549RIIT1DSicApXABQ0FwNmR2BCqFdWyngc0El zL1SXyYNKY9BlIahK89bWSO+r3A2zbpavnvLc3/wboEeL9tnT/TzABAVQzpXu+wkqhmK qwHG+iZOm4bBlFlXw0y0xFy7ESRzBAt6liRMT+4DCag8gVd/WGngYpppClK0UdiXXDzR aENg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=aH0WYxbD; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n11si7891955ejb.240.2019.10.20.19.48.57; Sun, 20 Oct 2019 19:49:20 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=aH0WYxbD; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726909AbfJUCqR (ORCPT + 99 others); Sun, 20 Oct 2019 22:46:17 -0400 Received: from mail-pf1-f196.google.com ([209.85.210.196]:46720 "EHLO mail-pf1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726764AbfJUCqQ (ORCPT ); Sun, 20 Oct 2019 22:46:16 -0400 Received: by mail-pf1-f196.google.com with SMTP id q5so7424573pfg.13; Sun, 20 Oct 2019 19:46:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=DTpTVkESn2vrQ+FsIrJTz16bCNnqcqqTMFT1dR0+ZsM=; b=aH0WYxbDf/0OBoHNaXb2q5bVYzYHKGTipxNLaDcvWqq/6nttgpVGsjoXuANiNg/Xif FZmOudKgonGJ5H+MCNLmhRJAbrAEzJFwkbnCRGyP/SDpJ18wNQ/Ierf5auqi8oNWCO3J oy/EeZzhda+jjygYXSq12jSvTmrDnNyOvarWnQqFPwvz6lXY7vT1bo8IjJcZ+k9I2YkY c3u0uGe3+Lc8B5k23t9OOWw8OHFjH/zhxUSbfUbKlCzrJtqmzcduB9Ep85U+mmFZ9mUk v+Abi8OK70ZNSpKDmF7xSyNRN4NcIuxGz8f9XlA1Wj5lAXfMPWu0FtqC/E6VOAbGSkvD WjJw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=DTpTVkESn2vrQ+FsIrJTz16bCNnqcqqTMFT1dR0+ZsM=; b=EMmFUlU4NEUouSnw5xJJxrtI42uk0RFHqBtEVhRBXLQsAvwtR5b3XO9JK+Zg+QMuno l6bAuoiJnSogUXr2VN6nl6PnzS2OOEHTT1gygGHEztliCaRALl9z6hxA0YgHH27yo/wl /9SA3nPIyheJUlgS8EYn9tL3SO4mLwA70UQgEA/6V9pnXDlEZeXQGua5mx6vvUQWlyR0 nR5pwVpSe5Ekw2v3634PgmLJmQlLIQtS7DQJPHWgzBOzCS9atD1zcnkDvDDMONdrdtsi upXxneMKqI58KJrZ2AN2UNPYzMCdQg17jp4bNlMVSUFJ8zkQNlxClINbBaoHgSKA3esW x3MQ== X-Gm-Message-State: APjAAAUeQbx6YsLq9WPAQqBOQkVbRJ5U7L+O0AIcyChkTSjKDw1st9g6 N3UpVyBnNfgEdBhBv37hZ/shesik X-Received: by 2002:a62:60c6:: with SMTP id u189mr20352460pfb.4.1571625975586; Sun, 20 Oct 2019 19:46:15 -0700 (PDT) Received: from [192.168.1.3] (ip68-111-84-250.oc.oc.cox.net. [68.111.84.250]) by smtp.gmail.com with ESMTPSA id q6sm16416016pgn.44.2019.10.20.19.46.14 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 20 Oct 2019 19:46:14 -0700 (PDT) Subject: Re: [PATCH net-next 09/16] net: dsa: use ports list to find first CPU port To: Vivien Didelot , "David S. Miller" Cc: linux-kernel@vger.kernel.org, Andrew Lunn , netdev@vger.kernel.org References: <20191020031941.3805884-1-vivien.didelot@gmail.com> <20191020031941.3805884-10-vivien.didelot@gmail.com> From: Florian Fainelli Message-ID: Date: Sun, 20 Oct 2019 19:46:13 -0700 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.1.2 MIME-Version: 1.0 In-Reply-To: <20191020031941.3805884-10-vivien.didelot@gmail.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 10/19/2019 8:19 PM, Vivien Didelot wrote: > Use the new ports list instead of iterating over switches and their > ports when looking up the first CPU port in the tree. > > Signed-off-by: Vivien Didelot Reviewed-by: Florian Fainelli -- Florian