[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <171197242851.77676.14242528699640486562.b4-ty@kernel.org>
Date: Mon, 01 Apr 2024 14:53:48 +0300
From: Leon Romanovsky <leon@...nel.org>
To: Dennis Dalessandro <dennis.dalessandro@...nelisnetworks.com>,
Jason Gunthorpe <jgg@...pe.ca>, Breno Leitao <leitao@...ian.org>
Cc: kuba@...nel.org, keescook@...omium.org, linux-rdma@...r.kernel.org,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH v4] IB/hfi1: allocate dummy net_device dynamically
On Tue, 19 Mar 2024 02:09:43 -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().
>
> [...]
Applied, thanks!
[1/1] IB/hfi1: allocate dummy net_device dynamically
https://git.kernel.org/rdma/rdma/c/c965b039a750c4
Best regards,
--
Leon Romanovsky <leon@...nel.org>
Powered by blists - more mailing lists