lkml.org 
[lkml]   [2024]   [Apr]   [2]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: [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@kernel.org>
    > Signed-off-by: Breno Leitao <leitao@debian.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

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