Received: by 2002:ab2:1149:0:b0:1f3:1f8c:d0c6 with SMTP id z9csp2240226lqz; Tue, 2 Apr 2024 11:02:13 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXfDMtJgRny7zygc3eImafT/tPi0KM1GtluXW/UfVP27f0BkRywJ+Z3jrdzNikUzFXqUfCTgQ4j+RIf98nlcbbmorSVZ9ptTQ+NjGNVeQ== X-Google-Smtp-Source: AGHT+IF/3S4E6nX+sK/DSXdttdqxNtya2P/H8jDMYd0oBQa3KIibF54F3VIliAU0nAOuW/vEjh69 X-Received: by 2002:a05:6402:35d0:b0:56d:c722:93a3 with SMTP id z16-20020a05640235d000b0056dc72293a3mr8208671edc.21.1712080933788; Tue, 02 Apr 2024 11:02:13 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712080933; cv=pass; d=google.com; s=arc-20160816; b=lMz8cLxMNcGIzryzOpLhm2speEydGzhqW03CrXr3/ccH5Fdzl/cfQTiow4QrFnEVP0 I5yhdYjaJ9iveYi+CguEET/KzrLQ/+nAHgHNTtz3vExPUyEFKxVuoPSAJWQpCKQZ1JQC AkBOWMqeeU81TMVkVIPqEihaGY1yFtfygg7L27JhUHyygJ8vS/B1+Rkb4egbu/DE7faY T5hYm2cg9zSn23f5NA3VB32rfVoAmMgS7llTarWflaehu8jlNeuUIEbuW7dVTSaFrsjn ZkvHbp3oSz9Whsrx5jPFK2LwrGw0iSP3UJBSiciNZepqiYd1njE7Am3dgYgocZYqaEDf jHnw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=jgNUXYu1jRIztdQCASbkUlcVKeh+MppapS0v1JVme0k=; fh=2840MqwIE9MVAt0WC6uBvLoulNUKY9zaIh0jS0qDED8=; b=gjOhxeLeT2fzxlGY09x21DhCVYp8tn7t5r9uNTSbkWum3f+ZoEK3tNMhPNhdUfxtQy ghDPD+iUy6YS4Q+ptlV03Im1x6J/N0cetAJ+BAqcCQ/ls4FNIKUvCbTVXHVYD4jBTDMw 0rO/3KaDDTs00migSJDDXe7oWXsiVCbYhHy93yi8zCsQ+E7+lpEtJ80Ucst3q5t6ynNt b/yK2NJmNUG70b0xSimoUz6ngh1hBhlZdzBT9r42vBQA6aIgmVWe5dfIhBZyAY4h8MiQ oL3UASAlShy6ldRAfZjWq52OWbx0EkUVT7VS4u6/7L9RCOrXQ2IHsn5Gz866rjNDXxx/ tKPA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=sWy71i60; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-128475-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-128475-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id e4-20020a50d4c4000000b0056c3c5dfca7si5624889edj.21.2024.04.02.11.02.13 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 02 Apr 2024 11:02:13 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-128475-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=sWy71i60; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-128475-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-128475-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 243301F224FD for ; Tue, 2 Apr 2024 18:02:13 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 100FA15AD80; Tue, 2 Apr 2024 18:02:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="sWy71i60" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 1810C60264; Tue, 2 Apr 2024 18:01:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712080920; cv=none; b=bBSCZ/xHXi9fssdFQ4oz2Lhp5E9kgXDCtt6iVASBVSnJ36r3nS44Fq+f9BOMqMziCF7fQ5a8wS6iX/onKT9UATKARADaBc23uyeDnsCJh35Fv3U5fPTFiQs1sx5knouSwtnVA3hRxqPTdhrgbquy+pD28rzLU3HDYrIXCRwynSk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712080920; c=relaxed/simple; bh=o93icfGi1dhjdqK+DWRm8T4/nnvdI7svFWxa5S8pbXU=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=Cb1qX4Z4ENtW7zkM6QtjwgAPMcrFHiRFbq7zFuIp+ncWD2CcaJ70zuRtzjPUhGUTUSaTlX5FI1Gv1RatsaIcvZV7V72Qp4D+dffnxz+zcE8g8LomvsOo4jG8lXA1OfDucNzHpyUHklzXBUW2EQYNgplMQ1uvk8dM5vpL56S7kQ4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=sWy71i60; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id D4081C433C7; Tue, 2 Apr 2024 18:01:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1712080919; bh=o93icfGi1dhjdqK+DWRm8T4/nnvdI7svFWxa5S8pbXU=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=sWy71i60tVSzCeG/cF9EaKZujwpBxgdtNjvso3dWIPRIENTJYnaHEMIYOaSdUI4NJ UYWKDPONzDM1gM/wYc5zYmGr0Wo4zmBZNrxfrfrI2xN+AFWf7sU0aOC83hL3qQj8Zr kQYCbMzaNgmKv4vk3fdSBRMNMAsnteZxFhICEEwCdbkK1a9NFReHT+rW7JA0yHV+q5 fhO7vhEPXWZwndkAI6uX5gK0IpZXWxuI8dUzEWypkspw4Z+Wv1S3PTDv3mkb5b3hf5 66u6+PdQJe2uKPhynC4v0v0lAPPt2ZEwF2lndm1yPPcDFHOLnqa87WL8UxB7C1ftNS mH67vBQB/bZbw== Date: Tue, 2 Apr 2024 21:01:55 +0300 From: Leon Romanovsky To: Breno Leitao Cc: "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , quic_jjohnson@quicinc.com, kvalo@kernel.org, dennis.dalessandro@cornelisnetworks.com, Jiri Pirko , Simon Horman , Daniel Borkmann , Lorenzo Bianconi , Coco Li , "open list:NETWORKING DRIVERS" , open list , Dennis Dalessandro , RDMA mailing list Subject: Re: [PATCH net-next] net: create a dummy net_device allocator Message-ID: <20240402180155.GM11187@unreal> References: <20240327200809.512867-1-leitao@debian.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240327200809.512867-1-leitao@debian.org> 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 > Signed-off-by: Breno Leitao 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