Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp4216965ybg; Mon, 21 Oct 2019 05:43:52 -0700 (PDT) X-Google-Smtp-Source: APXvYqwodXnb8NoAYBZDeX3pfMxntP7WkTa0nUD5lPtIPvGg5quenoRF8tvBNgWw3weFOyaSU3pZ X-Received: by 2002:aa7:d5d3:: with SMTP id d19mr24305650eds.213.1571661832797; Mon, 21 Oct 2019 05:43:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571661832; cv=none; d=google.com; s=arc-20160816; b=N/PuCfEYyNV1RKwzEo0ndjdSV8QdoHE8tRKT4gFsl8MXAW4tAKxUUK7RirC1GDjYlR Bnfe4PhE9VyFrrEUEelVb8XfIPtCIIPxHrcmf5YFEPn8Jd28x+TwObWAs81rZC0vX9Yr lPmL5nGjP21n14PzuVTfCkTg9XzzgoT/pqHqRRrub20jcJ6f1ODwNl67D3yjjN0t2LZL DdawAH54mYkWGJSje5/pXDg3Lu8/HjTbOpJmCD76Da0VKFyTQyt8a/8mjNppPDcTohqT sOVuC++rjiCkpuFEpkY9d/l7ZJ8vRR6OV54kRlpKktuK5K3GPtpJxwwTnxvSD+1LWQlc yrGg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=5/q/HAAEyJa7QTGW8FuycbCRafWtLbecUDPYaHM9qUU=; b=ICeNtSAP8PL9Ltf+alnwNcHYZZ7KIB1nLsj5Bew4MHi41DxQ/QyweCEp3QBy8MaNMg 4ov52u8GEmR/5+TcLFMumqvj4pdFvrOYMoD6vBFaAohYY/IFkdOBZhT52A5BwvMlpzo4 cGsd3vRZRRw502Exx+VGCkr+QqSJJON/vBbmlRzcrJQZsHrrVrAM7UnDe052gNRMz2mH +qsExROPVcCD4hpcfZBp3i6jRN8ASX9wxgSlF4fQyw7dh5u+r+WrlmXrKB3goUUhXoT0 87rEEFJXQCgMvzWSMVSs9dcoZvxC4yyyPoI3PARgHX5HmBHV9H3htsbl9v7UIyeH2w8K j2cQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@lunn.ch header.s=20171124 header.b=CU5CP9Lm; 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 g7si4431427edg.66.2019.10.21.05.43.29; Mon, 21 Oct 2019 05:43:52 -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=fail header.i=@lunn.ch header.s=20171124 header.b=CU5CP9Lm; 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 S1728714AbfJUMmj (ORCPT + 99 others); Mon, 21 Oct 2019 08:42:39 -0400 Received: from vps0.lunn.ch ([185.16.172.187]:55424 "EHLO vps0.lunn.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727959AbfJUMmi (ORCPT ); Mon, 21 Oct 2019 08:42:38 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lunn.ch; s=20171124; h=In-Reply-To:Content-Type:MIME-Version:References:Message-ID: Subject:Cc:To:From:Date:Sender:Reply-To:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=5/q/HAAEyJa7QTGW8FuycbCRafWtLbecUDPYaHM9qUU=; b=CU5CP9LmUzmQ4jxa6zXoSMIXfA MG6grlDXkX95tix8YxpxZpq2rPtTBO2sqlbCvIdN9CSHA2aDak+5E579KmtK+YUjR/Czjh9gYt+ui UfvKgye+Wibo6Rr5BOfCA7ws24lcr5zVM21tI7knJjDU47o2Ww2mImepbnLAcazCGneI=; Received: from andrew by vps0.lunn.ch with local (Exim 4.92.2) (envelope-from ) id 1iMX1A-0004Ms-3W; Mon, 21 Oct 2019 14:42:36 +0200 Date: Mon, 21 Oct 2019 14:42:36 +0200 From: Andrew Lunn To: Vivien Didelot Cc: "David S. Miller" , linux-kernel@vger.kernel.org, Florian Fainelli , netdev@vger.kernel.org Subject: Re: [PATCH net-next 04/16] net: dsa: use ports list to find slave Message-ID: <20191021124236.GE16084@lunn.ch> References: <20191020031941.3805884-1-vivien.didelot@gmail.com> <20191020031941.3805884-5-vivien.didelot@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20191020031941.3805884-5-vivien.didelot@gmail.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Oct 19, 2019 at 11:19:29PM -0400, 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: Andrew Lunn Andrew