Received: by 2002:ab2:1149:0:b0:1f3:1f8c:d0c6 with SMTP id z9csp1599873lqz; Mon, 1 Apr 2024 11:00:44 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXglM0TJM0c9agB6ffsND7/Ysf8zUnQGMGJcmifU5bglD0qJJME1JJnFUeYh2mz62hWuTfN2l43NzCzrkVOUQ2agn1K3A+bk4lRpuxAGQ== X-Google-Smtp-Source: AGHT+IF9SJAVhuPpIgspDAYvst/4AgrBvQzNiM1xq47MXqgw8uk6slHmDirpSu0ce+oXIH0mrh9+ X-Received: by 2002:a17:903:1ce:b0:1dd:6263:62d4 with SMTP id e14-20020a17090301ce00b001dd626362d4mr11732051plh.3.1711994444671; Mon, 01 Apr 2024 11:00:44 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711994444; cv=pass; d=google.com; s=arc-20160816; b=0kQVmxZRl7aQ7DbxUuMbJGZqocFaWOCgsQiVYpKyYBy1EdNtOKSZ61ZUWFwSITBXfA 0dK28dDWMJntQt8zOqubMKAekgbGJX7wfSsObg+wVamNaG1zWm1NV2C3F8FZgjI01ybF bVrn2ALcrJdKP4x7+J+SfOYGDgX25NDqtScFqJ9tHYHTMVNkiBMdf6SdLGnq3sAfzC3A GQWWpfDFCOSwmpBaCn9s7nd3n/MpPEtdObp5HKyipw8TUHgJ5W/DQuAzZbFywvuVbUHk aNTI5OmiZupDeEGpLvLY7thWM7BEiKYFdmZoFzKjbrQNizCHwJ/eceoj/+mGj2W0fMDt J/zQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=bxTM+HSWKKQX2NBg6cMx5VDgxWGs0J10Ck86jt8oIzw=; fh=sGRbyWFP4RlmCOo70SvmgftCUa19j57cZ4oQ5xEe8Fg=; b=C0Jl0kJdwpH9D7x9iMkuZJ/0T9C0+duce4exm0xrF161VukJRWn0Qp4GS5ed1zH1JA qermBGDjyJq7eV3UnfaAaBeCg5M1kffhMX/43fB0xmJHmRF5tW1qm3f17/Tj6HdsKrDx ANX+Cc1gwn8o3lztBFd/QJwtLXI1BzLj2uWh7rG63tjFLSq8nxsCzYMumiKcJCEufnbG WrV6kUnFfdkbgF5TAycLmPYJc8bFdVG12/trXlw/6wdAhk/1eSYERYu3v6ragKoMTjQm d+6Fphi5Heh1PQKQJBTwywC+iiPPevb4GjHsEGO8BcGPJTLHtCOm8PvQ0ofVCO8OhByc wqQg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Ra9z7+Mk; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-126930-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-126930-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id k4-20020a170902ce0400b001e247a80f0esi4899279plg.591.2024.04.01.11.00.44 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 01 Apr 2024 11:00:44 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-126930-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Ra9z7+Mk; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-126930-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-126930-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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 3753CB21AB3 for ; Mon, 1 Apr 2024 18:00:40 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 29B634E1C4; Mon, 1 Apr 2024 18:00:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="Ra9z7+Mk" 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 48A5A481C6; Mon, 1 Apr 2024 18:00:30 +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=1711994430; cv=none; b=u4CbNzyus60IzBek3kyKdJDIZmwygevy1ngjNBL2EGXNchcCSsfXPZ/ukZsJRQJDoSpFiX+++vIP7XaYvPddU71ZqOc01CpVUqywKonhNZfVYV1ubyicJlCrzANqBrNdCFIt9cj3lpfAnnRJ7u6kCnpoMl7UUVgF34KhT5Lnd1s= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711994430; c=relaxed/simple; bh=KsJDpA4HqFHqybbFk4mMnc/KdyCUw208QlVKxgVl99E=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=AVWI6wI5zXw5SN63rZKkOzPMrwfBd0H2kUMtRsR/6VhQu/JRAlBw6sSZY8H9o475hLlWdV0QLLehjtR+t1P27LeNm/hFLI6QChRp9oSInhKZkb5BAEPBhTDL/st3kqotdgG7KPwDkB3KM2odWd19WoiieQbjLFOAIJfpu2+J7zc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=Ra9z7+Mk; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7AFB5C433F1; Mon, 1 Apr 2024 18:00:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1711994430; bh=KsJDpA4HqFHqybbFk4mMnc/KdyCUw208QlVKxgVl99E=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Ra9z7+MkqpOvjxcy1dF8N8W+Q+C2ZNIyTQ9oq8+Oh9AZ6Sz7FDGFThU1exMd6sK06 wxucqmeuuwOdhjyOYBLzF4Dbzv3R4nInpypgG1ULJNiAf/jj80hypRVEIQz2wk2+mo fyI91SwA7btROWgGiBnQ81MKjgptDEJTWSETxXgjv0D61HrRA3L0LWokbpwt5XoIeD YtQJont7ugiw7TOjmp9xipkKUKxfxnD+dd1eLPn0YW4KYw0V3VsANHjY4eosAvpPoe StHr4ojfQcPKCSM3oEsCeMSUYLke9fUB7OnVA8r58/46z2Q3ONye4Mmxn98b3qfjpg JSwEgDxGtlyYg== Date: Mon, 1 Apr 2024 21:00:25 +0300 From: Leon Romanovsky To: Jakub Kicinski 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: <20240401180025.GA11187@unreal> References: <20240319090944.2021309-1-leitao@debian.org> <20240401115331.GB73174@unreal> <20240401075306.0ce18627@kernel.org> 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-Disposition: inline In-Reply-To: <20240401075306.0ce18627@kernel.org> On Mon, Apr 01, 2024 at 07:53:06AM -0700, Jakub Kicinski wrote: > 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? I merged it into testing branch and dropped it now. Thanks