Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp3698088ybg; Sun, 20 Oct 2019 19:49:59 -0700 (PDT) X-Google-Smtp-Source: APXvYqx4tsAhy0u6oD3AuOpx6LtH8Fum08SPLnTZbuy20gsm6Lg+mU+6QBuRY8mB7AALJ9wiXe4U X-Received: by 2002:a17:906:4545:: with SMTP id s5mr19238204ejq.223.1571626199139; Sun, 20 Oct 2019 19:49:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571626199; cv=none; d=google.com; s=arc-20160816; b=vJQx/Ieu5KYvn3OuUh0lwFxqOtJOfmFDcH92qHkrrFUGYfl1QuPhoErrWYU3pwJA2U 5jOKVVlpWNdtC6hGx4aeLM+Pn6JEhZvcRRvS9P4f+seNYM5eGSzZbC9Fg/NN4ieDkeSA eZP2s78ubYFREEuCIbo6LtKt5xVa16aVVW5RoN9vcu9xH8QWlmSoZkTu/3ZkXoFCkquu CDvPQaOA/jE7yRJQSCxYvQ+zzZ0FJk6n+QjhYk+/bHXUPwr6X6yqPXHvlFN098CNyXE5 figxu+80rmf8cnipc/wDt+aDNu2l7pn74ppMj2DMSLA9QrBhM2VFT9+Uw5LK6NcdKQjZ /Vbw== 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=+g8dbmU0gwK2qHEhGcyEjLWgi+qoJCaA2Aftx1wjA6s=; b=kYzJHcbPF3jAb/4lH79rU2bOe9LijHP/wcF/0yBHH8AMNWlJlo+e/07M6z7wmGXadD olbb5pBOABGfrnWNFmcHgEmo2tOXtEi3B6OVvv33zxZbc7iOG+d8cRStceO/r+4/mQB3 6fVKn67DLmB6QAQG0JOMUFfOthXBli8zu3omLhciZaswKWYboszVaPN/ZNyYueEa0wBE sW7f6pVkasNUGWACUQTW9kMZbUv4+xpDpD9yERJ1Idlx6pxF8X52zMhqie/htbrBWe5z MVOvwC/RWKWATguisYeEJo8ylE2rLstwQu0koRNM6ttWdOhrboffOtvXsCR4bohbsfGN lbTQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=slvxP8Re; 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 h12si8415034edq.437.2019.10.20.19.49.35; Sun, 20 Oct 2019 19:49:59 -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=slvxP8Re; 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 S1727000AbfJUCrT (ORCPT + 99 others); Sun, 20 Oct 2019 22:47:19 -0400 Received: from mail-pg1-f194.google.com ([209.85.215.194]:33103 "EHLO mail-pg1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726764AbfJUCrT (ORCPT ); Sun, 20 Oct 2019 22:47:19 -0400 Received: by mail-pg1-f194.google.com with SMTP id i76so6834673pgc.0; Sun, 20 Oct 2019 19:47:19 -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=+g8dbmU0gwK2qHEhGcyEjLWgi+qoJCaA2Aftx1wjA6s=; b=slvxP8RerMUtvj1Jc+4t7+Wpf099PvxRFAVdalfEcVEuXpe0esCCbR8OgIaH8rImbs s6XLyAgRuZlcfMpRAbzPzwja7oOoBeSs1A/S2P++csla8o26e5/4yCcg8M0o/fEmrK4K KUzgmZGtoy2t44S7CytSuIQ1oPVY6q32fdBeqfrScS92BoyhQKhtoaADXYYyWz260Rti Vbms8/vi+xy6r9AyD8edc4hNcCyXcKngeROwNE/5RcwX9urgB9aU6xWHo37O3yMN2wLB F4s1G/sOw/25AwP+H0jIqrBLxy6+J6whqgnblEv2cjMvpM7wXDupLygvxIjjV9UA74AU cAWA== 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=+g8dbmU0gwK2qHEhGcyEjLWgi+qoJCaA2Aftx1wjA6s=; b=ANLRlNlq9L9PXlNCYAqMc+k3vZcvL/vuoe5g0r9Nmk7/3o8oFrom2M/PZJzsDbJnRg 1wY3tRTPHy1n54HO6+9I5cYd7sAyZZ79jvjiiLDdWOM/RT4tJDdJkV0xJ8QXJDB2dRc5 BAjWWRxHQTc1LomMSad6HZ9YVCkNKYf6O9K0r8jspsGmFWfuwiVa5ubPc8evI5TWJImy m1I8evw+A+7/YQAcSb3jdkndlQogOfTid7yTR5ltLxwgFPPSCH4ppznePswCMFT4d5qh hfDzuAPhAx9+kOMvwvGyeZfA8SSsUpia+2D9YnJk9i90ZgfP46fiwmAx005cSNlPevb5 aSBw== X-Gm-Message-State: APjAAAW5zEjTGWziHAD2MfT8h5hXrgYBiLRxM4AoBf7zoywXoagD3YA6 ekPqqbCnm/IWlcxker4X1sMxKY8M X-Received: by 2002:a63:f40e:: with SMTP id g14mr11381805pgi.62.1571626038445; Sun, 20 Oct 2019 19:47:18 -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 w11sm15204603pfd.116.2019.10.20.19.47.17 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 20 Oct 2019 19:47:17 -0700 (PDT) Subject: Re: [PATCH net-next 10/16] net: dsa: use ports list to setup default 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-11-vivien.didelot@gmail.com> From: Florian Fainelli Message-ID: <2e1dbdc0-d1c3-cf9d-d495-fa9d52a3534b@gmail.com> Date: Sun, 20 Oct 2019 19:47:17 -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-11-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 setting up the default CPU port. Unassign it on teardown. > > Now that we can iterate over multiple CPU ports, remove dst->cpu_dp. > > At the same time, provide a better error message for CPU-less tree. > > Signed-off-by: Vivien Didelot Reviewed-by: Florian Fainelli -- Florian