Received: by 2002:ab2:7a55:0:b0:1f4:4a7d:290d with SMTP id u21csp99594lqp; Thu, 4 Apr 2024 08:04:27 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVyKZEbLhZhyml7xSpvAB1KrYIwVp9mu4WTow/PyfiOXGy3vDWMivEuk8QSYbZB37m/tgRV/tdg0U78lwtxliPO3AG07G33+W8x0xuERA== X-Google-Smtp-Source: AGHT+IFORC4UvHHiOamW3u3kuYzTEFnmYly/nxSt2vxWVXUkaBA7hnlUAfUDMhQAXrI+ygYmsk80 X-Received: by 2002:a17:90a:43c5:b0:29b:2268:3349 with SMTP id r63-20020a17090a43c500b0029b22683349mr2643257pjg.18.1712243067391; Thu, 04 Apr 2024 08:04:27 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712243067; cv=pass; d=google.com; s=arc-20160816; b=RoOQZKYD7+bpRqgwvTDCdYJg1PY7uw8dLH9qSISRmlRHpydWPkKBEK7wrqgo6X6DVP gOfarU/5sGLyLBNgW8s2WD4n6rc/T3CPT5AhTgxqx1tt3xOV/sJumTD5nj6nW5Be0krF 7eyNzAbRX0D0WL9urC0YA/rVQmkqmLeramPGqvtZ9BZ4btxu7Ipia4QE1oHrp1ODPxj3 JNd82IHXhWmqa2QvFkafiRSD5Bz+IBcztny3/+a3G+Jsb2DkuND6PuZlo6BpnVDfvJrL 0zmHFzNLXgegQli8SIu3XVR6pPLNsvyzmsAGZUR36UiBMkCBo/Qp6+CO11LkU/PBGlDI sk+w== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :user-agent:message-id:in-reply-to:date:references:subject:cc:to :from:dkim-signature; bh=uUPDhE1q5hkt+SC375AMLgdntEYjuu8uCDanunsROIg=; fh=E/IVC0PGUd2tECMadVOk2PakZOZvdlY+XGXObn8xOsQ=; b=caN8W1JaajKXQ72SIMdQmFh1vVeJH239WTZf8gQE6srk5mykFwPcbNN4cJnfMPfTqJ 6ffSjUa+cI2ePF+9fUVRzbyTR3IUkG5koVGzPe9ti4UakcKbyicCkSzI2uAH+wsrqaJP +e70YoNSekLEAjqg2GH4+QmjBCyykN7Ws3G6IZBDeRflTWM5gBwBMwt84hgJvSpqh6yA YtxyN5c4UG0d7YceJuMzb0STm2OXvy9nutMDRIloK/MRc9eM4e5zuz6LLLjjVDBYygjA 2VYr66moD8uVINV5gqoIiDTTOU5eY7FwQIms1dLZKPXfvnaR0iAwCLrBA00N4nWa6YDU U6EA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=qaVIpo7K; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-131669-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-131669-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id iq2-20020a17090afb4200b002a2e9a79271si809945pjb.38.2024.04.04.08.04.27 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 04 Apr 2024 08:04:27 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-131669-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=qaVIpo7K; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-131669-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-131669-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 4F53B2917AB for ; Thu, 4 Apr 2024 15:03:05 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0EF7812BF02; Thu, 4 Apr 2024 15:02:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="qaVIpo7K" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 2A5411D551; Thu, 4 Apr 2024 15:01:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712242919; cv=none; b=CNgwtdJYgSWk/6HCzfKI5PtHheMhPDt1V5N2Ec9sVxNtgK8sBXYw95dxhgxagGgjLmsGBt0fXScCxlW2AClr1uxgq2P7yjT62PrHPs86JzQx54qDTsU2uQfrEcmOO9AkITaXfcISHbZ+Wol4VdUHI06eJkV599ZjzsP1S2DhRWY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712242919; c=relaxed/simple; bh=m37CGWgGDzDmqqe0wk4eeU3R+P2kwq9EU6P+HBudePA=; h=From:To:Cc:Subject:References:Date:In-Reply-To:Message-ID: MIME-Version:Content-Type; b=VOAfbJGO5BUgzB3qSD/o1HLUVN24QIMCpvD+jBGS9p/DlZyr8ruVzX1dz3LlPk218+wxqwTg/cXzKgQcHZiObEfDYgEoyIzs2/kCOYBY930KBwX6LtJRQoQHFG/MFrnrNBOrL1v4zvERcpfViEpFG53aHsi/9tqAMb56H/mFh90= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=qaVIpo7K; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5D121C433C7; Thu, 4 Apr 2024 15:01:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1712242918; bh=m37CGWgGDzDmqqe0wk4eeU3R+P2kwq9EU6P+HBudePA=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=qaVIpo7KcwdH/2KGDFx1mUZTuMagPUnp8++R3YOCdX87zDybHhWnCcJC3PyNi2bW9 BI7jfEPRj8JzPlIooc9+HkzESGwDGV6Y9ij240rM/UHWhO20Q+XTXJCTPeNzihyEbG TYRbqil/VAwNNwbUzFisJ6vOTzjsdxiX39pCHfqNImY5YpMsM3zV3vGydohSsx0veC Kik4rPAp1JZYjLXiu55enmnEQ6MnLLMfpUpbPN/UwffcReqM68sIBC+paK/A+EYTL6 AeJMDxRdfWiHbkDTbZANN2Rsvjl38dw5kKQ5XVqVo4cDL+4hxI+lFqFr95RcUZOJCs dLhuGXRiUHz0g== From: Kalle Valo To: Breno Leitao Cc: aleksander.lobakin@intel.com, kuba@kernel.org, davem@davemloft.net, pabeni@redhat.com, edumazet@google.com, elder@kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, nbd@nbd.name, sean.wang@mediatek.com, Mark-MC.Lee@mediatek.com, lorenzo@kernel.org, taras.chornyi@plvision.eu, Matthias Brugger , AngeloGioacchino Del Regno , quic_jjohnson@quicinc.com, leon@kernel.org, dennis.dalessandro@cornelisnetworks.com, linux-kernel@vger.kernel.org, netdev@vger.kernel.org, bpf@vger.kernel.org Subject: Re: [PATCH net-next v3 0/5] allocate dummy device dynamically References: <20240404114854.2498663-1-leitao@debian.org> <87plv549ts.fsf@kernel.org> Date: Thu, 04 Apr 2024 18:01:52 +0300 In-Reply-To: (Breno Leitao's message of "Thu, 4 Apr 2024 07:22:03 -0700") Message-ID: <87le5t41en.fsf@kernel.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain Breno Leitao writes: > Hello Kalle, > > On Thu, Apr 04, 2024 at 02:59:59PM +0300, Kalle Valo wrote: >> Breno Leitao writes: >> >> > struct net_device shouldn't be embedded into any structure, instead, >> > the owner should use the private space to embed their state into >> > net_device. >> > >> > But, in some cases the net_device is embedded inside the private >> > structure, which blocks the usage of zero-length arrays inside >> > net_device. >> > >> > Create a helper to allocate a dummy device at dynamically runtime, and >> > move the Ethernet devices to use it, instead of embedding the dummy >> > device inside the private structure. >> > >> > This fixes all the network cases except for wireless drivers. >> > >> > PS: Due to lack of hardware, unfortunately all these patches are >> > compiled tested only. >> >> BTW if it helps, and if you have an ath10k or ath11k patch already, I >> can run a quick test on real hardware. > > That would be very much appreciated! Thanks! > > I don't have them ready yet, but, I will work on them soon and I will > send it to you probably tomorrow. > > Should I send them as RFC, or as a regular patch, and we iterate over? > What would you prefer? A regular patch, like you did last time with ath11k, is fine for me. But please do add a lore or patchwork link to the depency patchset so that I'm testing with correct patches. -- https://patchwork.kernel.org/project/linux-wireless/list/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches