Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp3702860ybg; Sun, 20 Oct 2019 19:57:00 -0700 (PDT) X-Google-Smtp-Source: APXvYqx/Q/XebUOCF43F6/ilAukp2qRldQktGRpDRMhzpjA7zn9Wy23oM1p5bqRnPGwV6mUJTo7v X-Received: by 2002:a17:906:538a:: with SMTP id g10mr19466950ejo.94.1571626620119; Sun, 20 Oct 2019 19:57:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571626620; cv=none; d=google.com; s=arc-20160816; b=Bi1KYcLKrdBRX5XgLoknYsXyrSAk+KE9f/fhyiL3Pz1ZCyoBcsM5qGrDJF/OnmIRrx jYpCN2LaWz/1bd+PwEF5GXn8Fb6FL2zRF8YaWH6btv44UWmSurFYSdUS31DEwmLrI83M nliG+rH9SlEOXmyWvCE0icLxGXVMzX/kAslMBU//pFNcRKykY0/eMiAM1gyWQaFo7x1L xxaps14o+6eejc2hbMwCWzBNclYkLZ5tp04xe5WijjUH/C+Bh3Whf2+aAz66ACw+6Sdu vEYnXZ0C4TjIXknDEAXOr7al7fEHn2lnv6f/U8ZCbDR2OkXSDV60bT/SaYyuhVR02Dhh fgVw== 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=bxMz0y2W7ERV0cHxluJ83jF2XfjJbXwAQncUIXq9fG8=; b=HxvTl8XMyz3/3dItqwasbM1qrnry3sKe7alWLzZMeaB9CA4DZij0Rk3wcpddc/+/9o 3wjzI0n0+FJ1iElUZsBv0V62mh2qdZYYANGHCx5EB6jYXDBExpqgIH6schCUKWB3TL1G euO1OBtV9OVYwRrmM22C1FTpQupVCt+yrmxBcH4YeidTTn8mkhefVHPBdArQZNlkLmy1 /xbmw/4LBaIeMaWXpc85Ze7xtNse0Cy+5d5SjWVhkqecE5KW4U7ccXpmj3FwpStv4xL9 inIZNu9u9pIjEqNbw6QAO3B3GNd2ekGIueE+tuF0jgmDFIVMPZSFD7mceP/RcjAkTtbT 16fA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=KcZuXBOe; 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 w13si8690656edx.361.2019.10.20.19.56.37; Sun, 20 Oct 2019 19:57:00 -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=KcZuXBOe; 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 S1727078AbfJUC4O (ORCPT + 99 others); Sun, 20 Oct 2019 22:56:14 -0400 Received: from mail-pl1-f193.google.com ([209.85.214.193]:42864 "EHLO mail-pl1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726768AbfJUC4O (ORCPT ); Sun, 20 Oct 2019 22:56:14 -0400 Received: by mail-pl1-f193.google.com with SMTP id c16so2140952plz.9; Sun, 20 Oct 2019 19:56:13 -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=bxMz0y2W7ERV0cHxluJ83jF2XfjJbXwAQncUIXq9fG8=; b=KcZuXBOeExAjM7tEqSfor7pThzloqeH1GLyIVzobO0ubEc55L0Rz0UXjYZ8VDKVcZa 7IFi3b9vyXts4wPcRKDqYrAiXWYVjU+hzcEerbD6cwQXhQMPT6GO2k++3yd2oi1l+/vR /y3rVC/dq6/YM1jIV81I96Ls0FAPD1QsluXoV/O/tA2eKLi7bKjr+3SlyRh9yXSMqjQk ls2urqlkRyIBShM/dNx2rcYYIEiRxvostyg0Kdc+I6Io1xiwTuYuI7HpE9Dhrmo2YIOz J4KTQYwJq8npEA7kn3PJdlhimN3j6EZz70KdDEareEC/72U9VHK0NxyUWmY27RFBKGos N83Q== 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=bxMz0y2W7ERV0cHxluJ83jF2XfjJbXwAQncUIXq9fG8=; b=P5cYbUTKG/gxPo/kLNXV8xXkL5LhqxO0lVNvmeSc0Z0uyZadlrsvR5MYwNacPw6zmq 6UtuO8ME6Ix3z1CCtCDO95JhG1LD29VMk8fCmQWw8rVNnMu4RYSTcMaSUmF7PRQCZGJR /hzQnVGVOGgZrgoQqws4snJzgf6977TtQwfaPnbYg4c36wCXe+jMfMjBGmIsEiG6viu6 icCBc2ahEPZetoeEQKJlODoUsELGgUif3DyHvOsnFgVPRg6tEC5OVsaN/4X7m63apQS0 RmJG3ZpCJzIfWopwArfqdsjovnaCX2aU6fPopyjGNlnGXfF/POxddYQ8cbk6N+9NEGNu no4Q== X-Gm-Message-State: APjAAAUYRz5nbrO1HxL8alAlKgfVu9D7GahWEy6D/HlNAtgILbcA5cQ4 UhjoXtn1Ik9cGDL5Dhaq1CXTCtKT X-Received: by 2002:a17:902:9881:: with SMTP id s1mr22664889plp.18.1571626573043; Sun, 20 Oct 2019 19:56:13 -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 v35sm15711929pgn.89.2019.10.20.19.56.12 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 20 Oct 2019 19:56:12 -0700 (PDT) Subject: Re: [PATCH net-next 15/16] net: dsa: allocate ports on touch 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-16-vivien.didelot@gmail.com> From: Florian Fainelli Message-ID: Date: Sun, 20 Oct 2019 19:56:11 -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-16-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: > Allocate the struct dsa_port the first time it is accessed with > dsa_port_touch, and remove the static dsa_port array from the > dsa_switch structure. > > Signed-off-by: Vivien Didelot Reviewed-by: Florian Fainelli -- Florian