[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20240402180155.GM11187@unreal>
Date: Tue, 2 Apr 2024 21:01:55 +0300
From: Leon Romanovsky <leon@...nel.org>
To: Breno Leitao <leitao@...ian.org>
Cc: "David S. Miller" <davem@...emloft.net>,
Eric Dumazet <edumazet@...gle.com>,
Jakub Kicinski <kuba@...nel.org>, Paolo Abeni <pabeni@...hat.com>,
quic_jjohnson@...cinc.com, kvalo@...nel.org,
dennis.dalessandro@...nelisnetworks.com,
Jiri Pirko <jiri@...nulli.us>, Simon Horman <horms@...nel.org>,
Daniel Borkmann <daniel@...earbox.net>,
Lorenzo Bianconi <lorenzo@...nel.org>,
Coco Li <lixiaoyan@...gle.com>,
"open list:NETWORKING DRIVERS" <netdev@...r.kernel.org>,
open list <linux-kernel@...r.kernel.org>,
Dennis Dalessandro <dennis.dalessandro@...el.com>,
RDMA mailing list <linux-rdma@...r.kernel.org>
Subject: Re: [PATCH net-next] net: create a dummy net_device allocator
On Wed, Mar 27, 2024 at 01:08:04PM -0700, Breno Leitao wrote:
> It is impossible to use init_dummy_netdev together with alloc_netdev()
> as the 'setup' argument.
<...>
> Also, create a helper to allocate and initialize dummy net devices,
> leveraging init_dummy_netdev_core() as the setup argument.
<...>
> Suggested-by: Jakub Kicinski <kuba@...nel.org>
> Signed-off-by: Breno Leitao <leitao@...ian.org>
Exciting read for people who remember this conversation:
"""
> I prefer to see some new wrapper over plain alloc_netdev, which will
> create this dummy netdevice. For example, alloc_dummy_netdev(...).
Nope, no bona fide APIs for hacky uses.
"""
https://lore.kernel.org/linux-rdma/20240311112532.71f1cb35@kernel.org/
Thanks
Powered by blists - more mailing lists