Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp3691833ybg; Sun, 20 Oct 2019 19:40:02 -0700 (PDT) X-Google-Smtp-Source: APXvYqyXVsqXrTkDeZIMEPPughve1o9fvQtGQZWkHS+76Dt1boFs5KwBsNUQlWelhjjAbH+CBDc2 X-Received: by 2002:a50:8a90:: with SMTP id j16mr22967993edj.283.1571625602435; Sun, 20 Oct 2019 19:40:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571625602; cv=none; d=google.com; s=arc-20160816; b=HQomItecnhng5xCVx2GMM6vzqzSiPVtH569WugIN99/OhpFe/B9jxSacM2JA2+C/Rr 78JK5ibnTTy92zNVJDb4pkT02/ILVMBA8ULoxwALEqX3xGdP+uYmAyxohLIHoIptBs9c h9C0ODWMGHgE4eboy/PCm0kyBL5w0OuJc8ycbw+indWLyreR+sNf8ae8d8aj3uoz/xCH 4QBt3CyfWXzNcrdnepOpnyQx5ZaAAuNENCuCWGzT3xivj5KL07XQLfMt1et88h/kDt65 pELZSbKo3IJta00dLmXutHzUJZyzfDITgb8k+/bBPYnQrJrlyxHfC9+M9QzNATE/uOY9 Y6VQ== 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=FXX0eimPN51agwu4IUgl2Y0MLDo3hLD4MB7m/Xqc9Vk=; b=PBIjq/FYxauSfbaPR8sks657clZS3Zj4C7a1bpwEqdSfLziTBKP3oaobqUbWf1gzGm 37bW1lHyOSCSC3za7FZHmmDVZKi7n+3I2b6IB3mgZHA3WgVNfGZIHhsC7+qRPFFn77r4 eb7G4hL4NsOLjKek63HcCUWEj9hpgaBTOYdI11Pms9VqO4QPocHE+HZre68WHiqQsoel ijCBCaCxvjlYBC6vucGwXdiAiZc6zdhzfy2d8ySg8XP1PZ8ZteE08ObpoWAQwOxuzaoj 2M8R1fsqw9EQTk2Wf6V/++Fb2kI3MzANWBB6i2SYGC9Y14DP+zpQ65w75OAj7DT40PQ/ EJvw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="V/lNMqIv"; 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 d44si1901221ede.149.2019.10.20.19.39.39; Sun, 20 Oct 2019 19:40:02 -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="V/lNMqIv"; 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 S1726955AbfJUCjS (ORCPT + 99 others); Sun, 20 Oct 2019 22:39:18 -0400 Received: from mail-pg1-f194.google.com ([209.85.215.194]:43208 "EHLO mail-pg1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726738AbfJUCjR (ORCPT ); Sun, 20 Oct 2019 22:39:17 -0400 Received: by mail-pg1-f194.google.com with SMTP id l24so1875498pgh.10; Sun, 20 Oct 2019 19:39:17 -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=FXX0eimPN51agwu4IUgl2Y0MLDo3hLD4MB7m/Xqc9Vk=; b=V/lNMqIv52M7BGUqI7bDaG9JIhTtFuYkms/GF44oEjDACl1JaxMdpa/agcoVNiWlkL oNdxM/UZKAbywRpq4fyC/wnO9+VVOZA64fvIsc9rFYsTQxVWs7Dfqxdymjktz/x9veXj /HjowO7T0Z5UBxEZ+/rkiCNz7Fiug3dmpeYtIo31olX7j9EeCl5ebieKBKLz8tn8bzhy IoLT9QHm2fPx7u7xoOoqI0u7fcV/UajMO2S1IeHjS7CtQlCSrIyY1x6GNuBXIhOUJyb8 YDz2W0R+VyFQDwaHiq1ojDXkyYI1653s19VdKx+JDcHjCFtZo9ViqejdCvcatT9N4LOi W+zw== 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=FXX0eimPN51agwu4IUgl2Y0MLDo3hLD4MB7m/Xqc9Vk=; b=A73eCSzQo741z/3wc3BRLroQ3AzoD8qApv33fs0MB/+D6gPQH647M5hn4cFbFL7Jtz mcn0/DgD2xwAykc05bGCXr7LvPZyFAntqlzk43tSbm2Ux0kzYEPWem4FHcjo/XZxRqv1 hPUcpLQt8Lm38kPqED+2HJnG/5L6LtVcx0wYykzqpjrrsd1DHcC1rZElc6fXArEo7vN3 2AikysanV6njhlRQ6FzVpaSVDkrnHTqlu+Q7LZ00hGOOHI2c6xhQBYAb2EgY6m33ihAo gnbmpz2jJzNupgPRPPDAbjBl+hjfY7MG+8ArdkUraNJzqGs+NIag+vUvBUm5vfr/+hbu jZkw== X-Gm-Message-State: APjAAAVPBxNfRBA1EQFBzlUFxkLG9i8jIfhQsCHVoxgXj6xgNTJypDLs 2gn+98fem8FOLp1qvmMzLUFd65dg X-Received: by 2002:a62:7c4d:: with SMTP id x74mr19913197pfc.259.1571625556961; Sun, 20 Oct 2019 19:39:16 -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 z25sm14410808pfn.7.2019.10.20.19.39.16 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 20 Oct 2019 19:39:16 -0700 (PDT) Subject: Re: [PATCH net-next 04/16] net: dsa: use ports list to find slave 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-5-vivien.didelot@gmail.com> From: Florian Fainelli Message-ID: <0b1fbb2e-a7d9-de3a-eac3-0bc4e2e717c9@gmail.com> Date: Sun, 20 Oct 2019 19:39:15 -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-5-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 for a slave device from a given master interface. > > Signed-off-by: Vivien Didelot Reviewed-by: Florian Fainelli -- Florian