lkml.org 
[lkml]   [2024]   [Apr]   [1]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: [PATCH v4] IB/hfi1: allocate dummy net_device dynamically
Date

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>


\
 
 \ /
  Last update: 2024-05-27 16:18    [W:0.055 / U:0.148 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site