Messages in this thread | | | From | Leon Romanovsky <> | Subject | Re: [PATCH v4] IB/hfi1: allocate dummy net_device dynamically | Date | Mon, 01 Apr 2024 14:53:48 +0300 |
| |
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@kernel.org>
| |