Received: by 2002:ab2:6857:0:b0:1ef:ffd0:ce49 with SMTP id l23csp495432lqp; Thu, 21 Mar 2024 07:26:21 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWVEDynqunq+rZfyGwoO4gYsdzVoPRvg8Jg0PDcrz0FjywNP96H7rp9JFdK855vN7L9fw8ZWepYyNKRbb6guxfBQO5q9Bi0nRqRTy+q5A== X-Google-Smtp-Source: AGHT+IGLq/D7UljnT/RcgSsRHJH44pMKzMj3bk+qLU5r8KyoyQ2Vf0Iic0lDmgtU6OGmas19lrz5 X-Received: by 2002:a17:906:81ce:b0:a46:2512:aa4f with SMTP id e14-20020a17090681ce00b00a462512aa4fmr2577723ejx.33.1711031180990; Thu, 21 Mar 2024 07:26:20 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711031180; cv=pass; d=google.com; s=arc-20160816; b=EmSL9UJHYiTuIm1o/xGHdRtrA8tyDHCgo3BV4hXNA6dR8iBFjiKwM6q/JPGDfEZRXk DvFURCGBg8D3h5ffhImul58d0Vz+/iqgXPkMtrL08elpGSDZkEInNUyYZMn94pYOLK92 bGgJ+6VgWwV3ZDcMA5RK0b7MtGI1ZRFDJ00OoBtDsTt20TKs3mkx7mdxHBI4BphHq9IT wgZXDwuYDqp1BHoAcqEs7UKCefwkA4CJGEWoIZJ5MRBQtSnLO8AxPKG3/mJQMwUQn4gW E1UXGeJj9miorf3cK9nHq8Hoo/UeQUKS1dPxjXxZUtdAIrGCIb9rbtUBBBePZLV7CrpV PR/w== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :subject:cc:to:from:date:dkim-signature; bh=046LXnkm5D11YWjihvJQgPE1kROYQWwSjc9Z72muVEY=; fh=LS5PtVv33ljH41zjHlbd2tRAhuYGawRbxVCXamR6Qag=; b=KH+pq6xFzOsUkKx0W+7Scn6IvwBZ+d10tKfCpETsHOMBzmaWLTAfpHCM+mmGQbp1D/ BGDUAm6ctkTJ3zcKVi0fU3Dh9LkwI3/NrjMP8VQDPhy8YnmKHPNhj/HGngDB9XQfFepR DS5FZ9W2jupMdBzOkqYGiAIyzoOV9OESUCHXlTTcEUDI0fVrxY/7dzmSpT66A1eYdiff tGKv2wJiqdRnLK9Oeax0htCp7Iy+W/CdTZgz9JxcrbY5CESPEIZEgMTBYYK6XRnX5jfK Iwm4dYLoec1VgYppfoMWUWTv0yNegk5pgeXsDXsyFJdqaeZJwmsQj3LGIKL3ltd9aips R3lQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=O9c+rvX8; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-wireless+bounces-5092-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-wireless+bounces-5092-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. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id i5-20020a1709061cc500b00a466df8867esi7013413ejh.67.2024.03.21.07.26.20 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 21 Mar 2024 07:26:20 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless+bounces-5092-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=O9c+rvX8; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-wireless+bounces-5092-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-wireless+bounces-5092-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 571DF1F227E8 for ; Thu, 21 Mar 2024 14:26:20 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2C52285276; Thu, 21 Mar 2024 14:26:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="O9c+rvX8" X-Original-To: linux-wireless@vger.kernel.org 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 04B8985274; Thu, 21 Mar 2024 14:26:14 +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=1711031175; cv=none; b=Sg09+/+wr51JgRWgZs4tTIZA19i0hCObl6425ynnT4KI9seSs4J02C9MwASIg88frb+vNPZrR/sy7H+S52WX7i7XifGnsK1P3dwJ4Egwd+PFCu+y8eEnmLmIYAhPa7hMFjR8bjQ6pxtpthZlAv+8OmhTQED72AiQpAfLmxVx+54= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711031175; c=relaxed/simple; bh=VmkGFNifUtWmSip+krIO7T42x5hHDlDV33XxA8/204k=; h=Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=DCyHcz+gYKNw429XyQ/ADk4ogYiV03xcyzv0fOhn2I4+0XqChS+j0GhvEOqO5/zhHF+I7WLxs5Sa/YLHJp1EYNx1bD+Wa5jCQbdMjIcngNEvkYFhJRAqLRAkEI+KlsJwso1mVvSCr27lqUG0KelX6X3J9Fx9/E8xw0pLCNuVDqs= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=O9c+rvX8; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 351DDC433C7; Thu, 21 Mar 2024 14:26:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1711031174; bh=VmkGFNifUtWmSip+krIO7T42x5hHDlDV33XxA8/204k=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=O9c+rvX8i4il61QRCvQZZIAiCk8lK6SIcYkVxy8tvu8VVBa7Vxh3vIkSosuIIrzbx bQuomSoRPhCETV48+mILsD6OlGTXpRlTGtmWPLF8gCGNOTrheMvrvJ8F1de5P3tZBg KqOe3RMDdhE2z81ls9sa6N0IaYoR79yShQ7AniqyB9joJefWrsfdNx+zD55kh34Atp Ome4EhWb6agk3vxKuMuKa/X7HHwRFbYbt8MxBP3KrSCo8tHes35diAzPqR1n53LpQH rsaIIw2LEQ8olXaPHT84Ki8mRv3EOkHeeTgoRBExiYTSLXLyJDwp2/XQWs5DN1rWA4 fbsTNlQruF4tQ== Date: Thu, 21 Mar 2024 07:26:13 -0700 From: Jakub Kicinski To: Florian Fainelli Cc: Breno Leitao , Kalle Valo , Jeff Johnson , keescook@chromium.org, "open list:NETWORKING DRIVERS (WIRELESS)" , "open list:QUALCOMM ATHEROS ATH11K WIRELESS DRIVER" , open list Subject: Re: [PATCH] wifi: ath11k: allocate dummy net_device dynamically Message-ID: <20240321072613.67466168@kernel.org> In-Reply-To: References: <20240319185735.1268980-1-leitao@debian.org> Precedence: bulk X-Mailing-List: linux-wireless@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit On Wed, 20 Mar 2024 07:05:42 -0700 Florian Fainelli wrote: > > @@ -533,8 +534,11 @@ static int ath11k_ahb_config_ext_irq(struct ath11k_base *ab) > > > > irq_grp->ab = ab; > > irq_grp->grp_id = i; > > - init_dummy_netdev(&irq_grp->napi_ndev); > > - netif_napi_add(&irq_grp->napi_ndev, &irq_grp->napi, > > + irq_grp->napi_ndev = alloc_netdev(0, "dummy", NET_NAME_UNKNOWN, > > + init_dummy_netdev); > > Is not this going to be a problem with multiple network device drivers > loaded in a given system and all using "dummy" here? While > NET_NAME_UNKNOWN ensures that this is not exposed to user-space, there > is still this part of alloc_netdev_mqs() which is going to be non-unique: > > ref_tracker_dir_init(&dev->refcnt_tracker, 128, name); Names are allocated are registration time, I think, so basically all devices will get an non-uniquely named ref tracker dir. For ethernet it will be unconverted "eth%d". The name only shows up in some prints, AFAICT, so not very important?