Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp3706849ybg; Sun, 20 Oct 2019 20:01:54 -0700 (PDT) X-Google-Smtp-Source: APXvYqxvU4ouNGcuhMxX0pX3xe9RMXgDcQsotsw1uIDZv90kYpHQbqzPXSBrqe0UcZEedxV5Ba0b X-Received: by 2002:a05:6402:1514:: with SMTP id f20mr22935180edw.35.1571626914631; Sun, 20 Oct 2019 20:01:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571626914; cv=none; d=google.com; s=arc-20160816; b=wx/6jua2/ULMdW8ij2syM78Eb7wdFZotvO2qIcOj2LqwXZyK86p78jBgSh4TMvlZHh yx/7ibHK+bIoBYd3j5cGR9XujA5y0aoMqYYoYUXWHADDQE61ZLnqRllb//U4hFJVSfup 6P8/I5xmlwuxugiZ3LTUxSJEYtsil4okHFR8/3ou+5sV1GXp8llkvtFxNxggaX7/U7Z9 sfnK96iguSWbXFS27MZpjhKITCcNkUm4VBamnx3RfnPBvSd3Hnkqhc45V5Jur67cj9Wh pjyXUOS19Qt7/HB7DzxLCVSNgpUgRiDFxP+VzW8DiuOmfJMNkAPJ+70qDR2XrFBKBtDA pSxg== 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=5viSdignwBd+hP0QdUGF2BJiCA6pTj2uN3VG3vY6NRA=; b=uzUK/u62B8ngxx0GwXc0w01tienaJjdeJ359+FaC2/0CKsanAaI1nDlyoZqS0vAvkF S3HWp5z3J8CTkogCueNIRC8hpPzIZClTbjtHgACChs97UW6ro79lzK+gX/LX3KRQwULe THSi/yOmZI9z48FAVEDYs54BCP47YkE8h0o22CNVMRN344F/1KR+52fVOExW0tAOPjJr V/v3KGftMeBCsaNHXgI4iR3oz7ioRXV9fmYA946x8Ka2vCePfQykaKBMjP2IlU5hQPyR sJL3Y8Vu2jkeaxCFajGj94wN3Kx+4CAsmDWpcRLESgyI7MNfho5MSJv+2ME2F6JWP7Ta LEVw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=oMYWbfHr; 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 y27si3722126ejr.328.2019.10.20.20.01.30; Sun, 20 Oct 2019 20:01:54 -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=oMYWbfHr; 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 S1726971AbfJUC6h (ORCPT + 99 others); Sun, 20 Oct 2019 22:58:37 -0400 Received: from mail-pf1-f194.google.com ([209.85.210.194]:34883 "EHLO mail-pf1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726768AbfJUC6h (ORCPT ); Sun, 20 Oct 2019 22:58:37 -0400 Received: by mail-pf1-f194.google.com with SMTP id 205so7459862pfw.2; Sun, 20 Oct 2019 19:58:36 -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=5viSdignwBd+hP0QdUGF2BJiCA6pTj2uN3VG3vY6NRA=; b=oMYWbfHr1Pn9wB5dKoGj67iZ4euP7QNCOCByzvS0/V4quzp8hXHCuz1OoqVlI0DsRd dUU7qWXdqHXK56E4YeVoFrG81Q3KFoHT64HOia3IuA4h1sSR8rgmXuXIuScmLZPWTPZw GZobFSfyJTqAfkX+jZeNT/zY+zwOR44kns2z0cfIN8a2R6C5JoaxpBTR48XprrTyOQsv hCC1pbpWtPUUxz+aCxpUa3I+/fXvta/iiZq8aOCKP8IP8MI9dVHRsdE3fmi1K3NgA7uX I8XtUpS7SzO0kyYwe49n5osG5jbXH/44XllFwGkhD1p5tMHV6ldpKpyAn05waOLQkwpD KcZQ== 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=5viSdignwBd+hP0QdUGF2BJiCA6pTj2uN3VG3vY6NRA=; b=UjKlUzvUr2JWJbDW8KFoTPPe88hvlgDCuJA+p7A78ERTV2XZ5AZbB/bEcoDGdUjzCm iFhfkcffuJOKe6o00TFtLw7z799BnRDyJI8zMLmMGKm8M5jQzNRUJPXUoercgaHdTZ46 S8obZ8ZzwN+NHWaZXVo1OMSL3Tx4A9Wvl1+qBw0xqc0r84NBCoS1Ezc9ioRwpJ8KFlIe 38xNTw7d0797vVRHnCxfQluEcriJ5FJmjSgC4ASmtrXf+fUBWEkNF5ORs6WC7844tAv9 8/YbfvARnAUtOG0l3fwH/h8RNlxk0PH77zleM2znWpYcwZ4ztm5NFPjjjQVxCEH9UlE4 dYfg== X-Gm-Message-State: APjAAAUZwXvAbzba4gnLC3p0lAbWZx42l1LFU8RZsW3vWwBH87n6JDc4 mREcNoyp2X2XdSBQAXA1epGlFdjP X-Received: by 2002:a62:ac02:: with SMTP id v2mr10973737pfe.26.1571626716163; Sun, 20 Oct 2019 19:58:36 -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 h4sm14524838pfg.159.2019.10.20.19.58.35 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 20 Oct 2019 19:58:35 -0700 (PDT) Subject: Re: [PATCH net-next 02/16] net: dsa: add ports list in the switch fabric 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-3-vivien.didelot@gmail.com> From: Florian Fainelli Message-ID: Date: Sun, 20 Oct 2019 19:58:34 -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-3-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: > Add a list of switch ports within the switch fabric. This will help the > lookup of a port inside the whole fabric, and it is the first step > towards supporting multiple CPU ports, before deprecating the usage of > the unique dst->cpu_dp pointer. > > In preparation for a future allocation of the dsa_port structures, > return -ENOMEM in case no structure is returned, even though this > error cannot be reached yet. BTW, this patch had a small hunk while applying which forced git am to ask for manual resolution, my net-next tree was based off v5.4-rc1-582-gebcd670d05d5. -- Florian