Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp4678806ybg; Mon, 21 Oct 2019 12:41:06 -0700 (PDT) X-Google-Smtp-Source: APXvYqwk1tVLaucWLmtwk2EPAgzanF6/2ncVJpa9l8k+YHa5Wo6vvlUUv+5sktaiXkcAiWEJFt/r X-Received: by 2002:a17:906:6094:: with SMTP id t20mr23899444ejj.316.1571686866816; Mon, 21 Oct 2019 12:41:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571686866; cv=none; d=google.com; s=arc-20160816; b=J4InSO9bX/kDIPJL+PsWxIr1hYb6pS8bD0BhllRHSPlIvWg2k5P80Ay8rdnnH3lANp fCEcl6vRfjlHm42fadxNkTrvp3YrBANG44DTtK/eW7plpgJuM+FOcmH2KH7M2eZm3wHT 4mCFhBj4fmLADQ7450tce4EWsu0hJ8jRze1rHDDVUEQyMo/Aeu2Pa0qRB4nvsA5Q/6QL rtKbxmIWCvb1gReySZhyvSvENBNlc039sUYRE6vTybv+7mrrOB+oSZVkY0FAICsUwxMj mSfAFrmoikKZmdSPEfSekDCpr8IuerviF947p8sva/OvUOvrZgLcjs8qepNrMdNLWFAu b8mg== 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-disposition:mime-version:references:in-reply-to:subject:cc :to:from:message-id:date:dkim-signature; bh=OvR7qZTN7z+OQITB5g0tsZqaN65/2chZfmtHixddV6M=; b=kja6M6zRHWSBev31wKmvoa02+qUtxrHRv5morhi67JWANbjJiPvzE2QDterB0/W9go 4hBscBI8YKvYI6MuhRPw3FTnXsgg3aapfbyUPesWRnmHqsiJCwknOlbnv2ppjCNQAuR3 QDlplzfFcFzjRQLK2inl3kt6x5TWFaZ5oOj4i7b6HgFEYB+lcq45SE+7l1WKB0/U+RSd RWtbPdB3Okt7gv7TM1r5TpsGBPswmhV0V4scyPcxiGRh5cyualLWBjlsDFBg4yebZ4VC MojuFyCU4i2bokR+zqunmh+rcP4FaE4kjtypANXc+OpxfLSjOyqYQ/UaVGQRGewbUGu2 cGDA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=UddYj1I1; 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 w26si9763299ejb.6.2019.10.21.12.40.43; Mon, 21 Oct 2019 12:41:06 -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=UddYj1I1; 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 S1730203AbfJUThz (ORCPT + 99 others); Mon, 21 Oct 2019 15:37:55 -0400 Received: from mail-qt1-f195.google.com ([209.85.160.195]:45477 "EHLO mail-qt1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727211AbfJUThz (ORCPT ); Mon, 21 Oct 2019 15:37:55 -0400 Received: by mail-qt1-f195.google.com with SMTP id c21so22866436qtj.12; Mon, 21 Oct 2019 12:37:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:message-id:from:to:cc:subject:in-reply-to:references :mime-version:content-disposition:content-transfer-encoding; bh=OvR7qZTN7z+OQITB5g0tsZqaN65/2chZfmtHixddV6M=; b=UddYj1I13Df1ib5gS+cO7AEnjxjMACvGxxpBFhhPxy6aqTFoOVSCk004bJPWlHaLol 3uJCaoZcyXgFrmMm7tudkLK2Quk00vEFpX4tZxfs9EddWODhyi4QYAF9vfAgko3fA05O XZlJVqhV/mX/Q1OtpWPvVeDGdc28+TEuMXp8ODlb547QQlJfHi82vuoOzUImN/K7arlt /SDIe/0ngQLnMDPFOIouSz/l9PaLE9tix0sHw2o/+m42TMI7cN79WjyC6mLbxebyrr0o 6a2N6vaskyLWDNwYub8jJTCZ36/bBsbAQwWlnz1Dv4dUgA2eXScEPG0w0HXwfWS7DMxK OynA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:message-id:from:to:cc:subject:in-reply-to :references:mime-version:content-disposition :content-transfer-encoding; bh=OvR7qZTN7z+OQITB5g0tsZqaN65/2chZfmtHixddV6M=; b=UWz3Lgj4CFuxVXTHQyGHMe5kgJ4RAgLzncTaHrujA1RZjjlxxdp8G14ue+YuBHCI47 2ZTGyhnjMF0cgn01iaGbXRBwIJ2VMpGVP226ZS6hfvFsn/yuZySirxKqJgwHKSOCI/pY cyCY2UHlbn0Dy/o13q+lbT+v1n4vS8NHRM15REHM2pcxH6VQ4v4HczhjEus+1SyCZnhG zd2LsC7hNCsd/ubdtkTEtcgBKxprBerruniNDfCWcxbxCVx7WkJP/8VLFXFgUELhN07l 1+jHK8rlerUJGGECOtQD1q11raALnek7F7KxPpaUr4nYngu4j0X51Iix+fSkjTFxgroD zh7w== X-Gm-Message-State: APjAAAVbB8NUn0mjkHAAmuiOxj+LKaba8PjJH4Hf9D1IJhmzX9AxezbT CNGAWKA97BtWQdl9N/F5ioJAGD/Q X-Received: by 2002:ac8:2c86:: with SMTP id 6mr25828203qtw.317.1571686673828; Mon, 21 Oct 2019 12:37:53 -0700 (PDT) Received: from localhost (modemcable249.105-163-184.mc.videotron.ca. [184.163.105.249]) by smtp.gmail.com with ESMTPSA id z5sm7851619qkl.101.2019.10.21.12.37.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 21 Oct 2019 12:37:53 -0700 (PDT) Date: Mon, 21 Oct 2019 15:37:52 -0400 Message-ID: <20191021153752.GB90634@t480s.localdomain> From: Vivien Didelot To: Andrew Lunn Cc: Florian Fainelli , "David S. Miller" , linux-kernel@vger.kernel.org, netdev@vger.kernel.org Subject: Re: [PATCH net-next 05/16] net: dsa: use ports list to setup switches In-Reply-To: <20191021124902.GF16084@lunn.ch> References: <20191020031941.3805884-1-vivien.didelot@gmail.com> <20191020031941.3805884-6-vivien.didelot@gmail.com> <21738767-7e98-6c4c-ba1c-bea29142d481@gmail.com> <20191021124902.GF16084@lunn.ch> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 21 Oct 2019 14:49:02 +0200, Andrew Lunn wrote: > On Sun, Oct 20, 2019 at 07:42:15PM -0700, Florian Fainelli wrote: > > > > > > On 10/19/2019 8:19 PM, Vivien Didelot wrote: > > > Use the new ports list instead of iterating over switches and their > > > ports when setting up the switches and their ports. > > > > > > At the same time, provide setup states and messages for ports and > > > switches as it is done for the trees. > > > > Humm, that becomes quite noisy, would it make sense to have those > > messages only for non-user ports that are not already visible because > > they do not have a net_device? > > I agree, it looks noise. Maybe change them to _dbg()? > > > If you have multiple switches in a fabric, it might be convenient to use > > dev_info(dp->ds->dev, ...) to print your message so you can clearly > > identify which port belongs to which switch, which becomes even more > > important as it is all flattened thanks to lists now. What do you think? > > I do think it needs to identify both the dst and the ds. It is noise indeed and doesn't add much value, I'll remove them. Thanks, Vivien