Received: by 2002:ab2:1149:0:b0:1f3:1f8c:d0c6 with SMTP id z9csp1487963lqz; Mon, 1 Apr 2024 07:53:16 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVoGdoa+bTIoFmpySzkEb8SlNezOQUOFdM6uNi4uYXZa6Mjhs70kO/qCWEf3qjHGlkZQuPadWW+9Cm7dr5SwJ4bQTOMoJgJDgPyX/0g1A== X-Google-Smtp-Source: AGHT+IFv1fVQaI31++/IaAl3j3FS2R6x5GOC9x/snZvc3ORsTtnd+yhcTqCBazR+4ro28DTbk2/N X-Received: by 2002:a0c:8cca:0:b0:690:beb7:c6da with SMTP id q10-20020a0c8cca000000b00690beb7c6damr9287999qvb.38.1711983196002; Mon, 01 Apr 2024 07:53:16 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711983195; cv=pass; d=google.com; s=arc-20160816; b=oMPP5XGro3zlucFi7DfrPwxg26J/2+fpjSxzxirQOm0ENemcaZfV0HJTSrGW7/3W7j iloOrI2/ZAdyGYRnN7EiLZD1PoknHn4WxqvyowU8TY6Bw20QRuDBpHR8ADkbEwLfyCm/ bYYSLs8Ef7ObpvKn4W7oUOtxtMHG8jRnPmLGvQIjwXFkNwPiVlF4PpyBtk/Mk0RaZ9gZ zQqsg9JLfww/c01xQSCAqlSf7q9CBnE5E9vt8r7icums6LA2ueCrwT4N5B9BzkOCaGcc jRv8gGs5+ph+ij4wDon/zajbCxBFIyPj6gYmExlwZxw6VXEVZhfnTT8dl3qXO8a9F7A2 MLMQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :subject:cc:to:from:date:dkim-signature; bh=TJEbFRhZBmuUuvPCs2G2YgR71rJWWyne4/LhPL1UGO8=; fh=AeE1o5rzxHCzYH7xl4kdgYFIu7LcT4n4Pp71fVWVZto=; b=RJsMKBWE9IkIuj2RTEfPJjc48buT1PL4cA2SqpUiwcL2uPgSNIgr+EmWipv6cNJeGb T3E0ItjeqQf9tCpm6w66vcvsxY18WxA/RlLI+NWoNtbIjaMpU19f5TbNXH8BNuX05Uul ieHl3uyox8bBsSG5pYYeGll/q2pruTx6elvxZBJKXyjMN8uyLLdDV4S7vOkuN0qOAx+n 5C/594avYEjnD6jgeQcKjCJwUgNGDyFwd42wXgWqIJonZetVPYJHA9IfKG0Pqh1KVGnD cYntGpj2ljyapMVJXhrPYebWgeLN2y9pxBaw4OLPf9Jh5XU7he55CdiWcVzcSjsO99qp b12Q==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=GGj9zHif; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-126761-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-126761-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id dc12-20020a056214174c00b0069671737b9bsi7158782qvb.231.2024.04.01.07.53.15 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 01 Apr 2024 07:53:15 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-126761-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=GGj9zHif; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-126761-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-126761-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id EAE031C21301 for ; Mon, 1 Apr 2024 14:53:14 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6741F446D5; Mon, 1 Apr 2024 14:53:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="GGj9zHif" 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 9120A43ADB; Mon, 1 Apr 2024 14:53:08 +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=1711983188; cv=none; b=mHC+QNKe6xNeUeTczLVEtQdV7AQWC3dwzuhebuOwM6puCrxFYilpERbcNQtNOs3iMFuG6mk1OkvXK/o+w5db3ESoXHhKVYg3eeSUJFj59HIratwGkxtTPkd5Iq0ZFjbaBz+rBcUlWZqBpRlN2sFkQwp/opa0qfEn4R2UqM/SNxg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711983188; c=relaxed/simple; bh=iyaoH6bcOO25NNyfcq9h4+csxLjCIbPx6O3NrMvYE/M=; h=Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=dYBhfWFPar62wrOtVUR+eIHMJE4JAQTG/KjxgGY0mZQxhQnX4auVVPNR9PT2uSjE2yfbEsjOEVXkAUTjPTwTdjDeIclG8beNQsuvTkg3Z65+O824zN4npzQEsBt8NnYYU7KC7Epfinmo78RBXsSinD9tY9EyV/eN4+pg98vwfyE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=GGj9zHif; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id D092CC433C7; Mon, 1 Apr 2024 14:53:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1711983188; bh=iyaoH6bcOO25NNyfcq9h4+csxLjCIbPx6O3NrMvYE/M=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=GGj9zHifgURy0amXELr6RKj4/a409NOYZq+9oNUHnmDVtufl0lamiJLcrKgtH6PI3 389MqmebbDzTVK34fSf3lNkX0w42/gRITTi56rIFqyOsM0g+m8b+Ix11pZrd3/ky7C 7dFhwAI34BXRbUDr6xKBYqwIfC7OvDdQloyHcpayNRJTwZihY8epKiQEXQVbW7bVlP o1a5L/DiM3zRpvT9rr3rIUKLkgLtgsfmnd7B9mbYKcpZifL0l36A6BOIYzdA9S7dbF yd+P8SdMi0SkipvzD5j5yVBNU4eSKLZnKDOXvG8+t+dCUoH7w8AiuFYbNDlN+RPpBB 2Fh0p/+XMyEhw== Date: Mon, 1 Apr 2024 07:53:06 -0700 From: Jakub Kicinski To: Leon Romanovsky Cc: Breno Leitao , Dennis Dalessandro , Jason Gunthorpe , keescook@chromium.org, "open list:HFI1 DRIVER" , open list Subject: Re: [PATCH v4] IB/hfi1: allocate dummy net_device dynamically Message-ID: <20240401075306.0ce18627@kernel.org> In-Reply-To: <20240401115331.GB73174@unreal> References: <20240319090944.2021309-1-leitao@debian.org> <20240401115331.GB73174@unreal> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit On Mon, 1 Apr 2024 14:53:31 +0300 Leon Romanovsky wrote: > On Tue, Mar 19, 2024 at 02:09:43AM -0700, Breno Leitao wrote: > > Embedding net_device into structures prohibits the usage of flexible > > arrays in the net_device structure. For more details, see the discussion > > at [1]. > > > > Un-embed the net_device from struct hfi1_netdev_rx by converting it > > into a pointer. Then use the leverage alloc_netdev() to allocate the > > net_device object at hfi1_alloc_rx(). > > > > [1] https://lore.kernel.org/all/20240229225910.79e224cf@kernel.org/ > > > > Signed-off-by: Breno Leitao > > Acked-by: Dennis Dalessandro > > Jakub, > > I create shared branch for you, please pull it from: > https://git.kernel.org/pub/scm/linux/kernel/git/rdma/rdma.git/log/?h=remove-dummy-netdev Did you merge it in already? Turned out that the use of init_dummy_netdev as a setup function is broken, I'm not sure how Dennis tested this :( We should have pinged you, sorry.