Received: by 2002:ab2:6309:0:b0:1fb:d597:ff75 with SMTP id s9csp264143lqt; Thu, 6 Jun 2024 02:57:05 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVqOYlfpQJoK09FxrhyfCNQJietLGkCvm5i9obinrNE/hBhoaz/OXhoLcHsbsW/kIQHCJkiUoci4W7S9Pn+dlX6J0kMRgybOZikmfkc7Q== X-Google-Smtp-Source: AGHT+IG/AFb13moX/55DT21kGInyuMBmj1lQ00Kvkl5ytIgcn2pm7iHW/y2jtRoaOi791lfWMwcK X-Received: by 2002:a05:6a20:7487:b0:1b0:34ed:c931 with SMTP id adf61e73a8af0-1b2b70434damr6279931637.37.1717667825605; Thu, 06 Jun 2024 02:57:05 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717667825; cv=pass; d=google.com; s=arc-20160816; b=QYDXvLkSYBarvx2zUTGjQ08ISdG3lJ8+BE4LtMQIDlfb7vWywnVM+oG21TS+3kQUDu Oi6i103q8fEPtE7Ky5GcpreDtNC3fw7GWios367/PbbpQPaFqLC8z4t9xYYaLAKfR/Yh e9KktU30pjhjuee/ZGqgOrwF1iRk2Q9q2CQSWgQKr/mFrENvC8e0TxwFt3E66UDEkFBZ 0FK/893KOKg5X+/vCYN7a0SdNzRnwdgphw/zsTtwKI29IqZgNVIfwEvcZKXcp0jnSwxg UZIj8CD/IvayT8YKOok+TL2vVL3sdbDkWt0J2ng7RLHT5Ooq17jaVCBx/TGDvWmy+dAy 3wRw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :user-agent:message-id:in-reply-to:date:references:subject:cc:to :from:dkim-signature; bh=4tDXJ9r/xfi0G4Pw/DZk3WZvgrFr8Kn1S7QrBI12z9Y=; fh=1c3g7JNDLMeT3kUTg03CvUlZnnOte8/ffUkIxfqFsjI=; b=P0jxJAaFDBT/62BqkLish9GLU1DmQPq2Dbljmqa03iSOD8f6qT/br66enmtG2hUR6e mjmGnl8xT0fo+g/BrO3N74qGFC0oCM78cY7C9ZquZqW92VEZ1/76zioDKDK4yyZjqiOX b6U5TdgSnUQoyFuwlbURPbQ0tDDJ17IofPQGZM9VOOznJQnStLtU7hmYj79nWhFRepys gtO2IyBkhLUE7hlGbilX4QKkyAqWS8ondlwCII6fWqenFaxSsulipqQOuivB+041MUmP NJ8P+nVen5vvBMHIyYrx6eNe7kHE0AcoO6fTjlRrNpOFBcq9tetgIDTmkgs20JzHJ0/s mPNA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=DIGfcoP0; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-wireless+bounces-8600-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-wireless+bounces-8600-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id d9443c01a7336-1f6bd7d5996si8993175ad.217.2024.06.06.02.57.05 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 06 Jun 2024 02:57:05 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless+bounces-8600-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=DIGfcoP0; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-wireless+bounces-8600-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-wireless+bounces-8600-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 sy.mirrors.kernel.org (Postfix) with ESMTPS id AB69EB27CEF for ; Thu, 6 Jun 2024 09:31:23 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9A0671514ED; Thu, 6 Jun 2024 09:27:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="DIGfcoP0" 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 7693213C694 for ; Thu, 6 Jun 2024 09:27:58 +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=1717666078; cv=none; b=AOhaoZAiTO7hepqvk3l0Iz8fQUVcj+l9Te6YkmB9BdmljS5aNLOEWw0E+cIVRUKFALadgGFHUv3by6g6C0k/JpFlmPM9dRudjJZqILEGf39VvIgLKEnipHVjB3opULUTMnCgLED+NxjN1QBMBug4+1f4JAsIDwluQkxtXIfXptA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717666078; c=relaxed/simple; bh=ZLRB10DeE9fB/+Yw17V5ZhGzmx/s3CQEE+iaGmM5pAM=; h=From:To:Cc:Subject:References:Date:In-Reply-To:Message-ID: MIME-Version:Content-Type; b=utU2BBfJdYzrMhHoGRtHSu9hzIz2MFUcVQKHSf3ieG/yIFhWo9lFocjRs53ZdnSrSzumJ8jK4ieXCSkI0BQsO85YnyTrgralXrmRPJz16h4LBU65JV4tLyLR7hrdS8v7c5womDndUZzRrSv3cw4+vheebyPIkOUSuiWks5TLM08= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=DIGfcoP0; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id C4C44C32782; Thu, 6 Jun 2024 09:27:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1717666078; bh=ZLRB10DeE9fB/+Yw17V5ZhGzmx/s3CQEE+iaGmM5pAM=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=DIGfcoP0qiWqH9jb5VStLpEUjka3xaqxokFoyvozyDrVHx4z6sKnu7iIljFGfRVVw puM/kUtswDHhCUwYK65ErRA3XWsxcUZ5CJmtHQwC25inhKUv2Qq/hxxS1B/sSWZ1Jj fIq7qbkn5ZTsn32UeTggqZroROi1YiqS5yM2iLt7F8xlaz2AxSyHI+THMQ9QbUIhRg gXLEASsj5gZ09e0tDRFr265gg7GKfiPpH4hpRLBdlEewuRdSA2uMjKM4zEY+AWio+y VwupgLAHbL76HMHPR7RPQKVkt1La5kivYexxVnWhtP8YBgkdzNv/QG+HPB0Zx13wzz 6fv0V2KSxRxgg== From: Kalle Valo To: Miri Korenblit Cc: johannes@sipsolutions.net, linux-wireless@vger.kernel.org, Ilan Peer , Johannes Berg , iil_jenkins iil_jenkins Subject: Re: [PATCH 6/7] wifi: cfg80211: Add support for interface usage notification References: <20240605105722.2034610-1-miriam.rachel.korenblit@intel.com> <20240605135233.23d15e758640.I7a62740a6868416acaed01e41157b3c0a7a41b4d@changeid> Date: Thu, 06 Jun 2024 12:27:54 +0300 In-Reply-To: <20240605135233.23d15e758640.I7a62740a6868416acaed01e41157b3c0a7a41b4d@changeid> (Miri Korenblit's message of "Wed, 5 Jun 2024 13:57:21 +0300") Message-ID: <875xummndx.fsf@kernel.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux) Precedence: bulk X-Mailing-List: linux-wireless@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain Miri Korenblit writes: > From: Ilan Peer > > In some cases, when an interface is added by user space, user space > might not know yet what is the intended type of the interface, e.g., > before a P2P Group Ownership Negotiation (GON) an interface is added > but only at the end of the GON flow the final interface type is > determined. This doesn't allow the kernel drivers to prepare for the > actual interface type, e.g., make resources available for the > interface type etc. > > Generally, adding an interface doesn't necessarily imply that it will > actually be used soon, and as described the interface might not be used > with the type it's added as. > > This new API allows user space to indicate that it does indeed intend to > use the interface soon, along with the types (of which the interface > must be one) that may be selected for that usage. This will allow the > underlying driver to adjust resources accordingly. > > Signed-off-by: Ilan Peer > Reviewed-by: Johannes Berg > Tested-by: iil_jenkins iil_jenkins This new command just looks weird to me, do we really need it? I would expect to see a workaround like this in out-of-tree drivers but not in upstream. -- https://patchwork.kernel.org/project/linux-wireless/list/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches