Received: by 2002:a05:7412:b10a:b0:f3:1519:9f41 with SMTP id az10csp2944336rdb; Mon, 4 Dec 2023 11:47:31 -0800 (PST) X-Google-Smtp-Source: AGHT+IHZ/GA+fKhky6EmdQ7uuC42rGeyFtNaFaVFDEDsz9+zR8UHTOi0gpr/yjscxBuTx7MTm/Ok X-Received: by 2002:a05:6214:5e8e:b0:67a:a61e:f1fa with SMTP id mm14-20020a0562145e8e00b0067aa61ef1famr82033qvb.52.1701719251339; Mon, 04 Dec 2023 11:47:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701719251; cv=none; d=google.com; s=arc-20160816; b=a0blOCkAY4ddxiY00BvJTFwlCB1nFAGVHOgrmoHQU2aOvsrSdzlzyfSpy0OhIkjmiW SosAW8cFKiCcTKQ5tsVjZ/v6BQogPnwGj7Vi51t8Q3vGt9+n54FOByCgyzkvn75nooXO OQmFh1+zEz6XcyfxcxGGyrIFjv5WSTJ+eb/mk5oPYnJLVl5InU5Jbqoht9msV8q9rd2C OxyvvLk/hRD8oNtBmo5w7dkw/O0YU+nVEmmXOG3KYLRAliksXK352ju5d7mqwJyyTztI n7uJmWpZD1om+cxMqFVEi4PKmGKvQEM2WRHxWWgMEZbQpmVIEVGRfiDZjUo8E1Gn8wPi nzNQ== ARC-Message-Signature: i=1; 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=mVecGgq1sbChaepPD/HEGlf3wWNPbPnWtMet4hJ5F78=; fh=wF9sg2YKRy/mhluOpUwroQPBxl99MdbRccr9km/XeIg=; b=UNV1BlvfGK6AKFq2TEkbt8oPVCTJI7s6xLI0SW7QKNCgp5KSHQJtsfP8ATEk7wZhaw LgaD3Nwq9foM3DPEDUJfRkocIZOqbybuyuhZZDUML/wgkfCplTczG41p2Ip6foV9u1H0 8eUGYkTHIfoaCnKQ4FK2dvfWEFVcCoNbnSr7Qgdb2AVg08S+E0Lpi08G4xxOogn8M3m2 oNGWRY71IwiIznVg9XfVVBUBW9ahI96xkI+6X7tXL9/4d94s6/dEKTRRnsXqKF4SmoCq rLDvaMLKwSrJtofCpMnEPx2cuFXuP3DSpnFKA4fzay8KMlFzk6gq9CCnbNRkoqDcwHxa NajA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=q17UQgS9; spf=pass (google.com: domain of linux-wireless+bounces-391-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-wireless+bounces-391-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id bb11-20020a05622a1b0b00b0042548782f0bsi5314318qtb.522.2023.12.04.11.47.31 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Dec 2023 11:47:31 -0800 (PST) Received-SPF: pass (google.com: domain of linux-wireless+bounces-391-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=q17UQgS9; spf=pass (google.com: domain of linux-wireless+bounces-391-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-wireless+bounces-391-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id AF26E1C209B1 for ; Mon, 4 Dec 2023 19:47:30 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6E45333074; Mon, 4 Dec 2023 19:47:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="q17UQgS9" 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 4CB133218E; Mon, 4 Dec 2023 19:47:26 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id EB87EC433C8; Mon, 4 Dec 2023 19:47:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1701719246; bh=mVecGgq1sbChaepPD/HEGlf3wWNPbPnWtMet4hJ5F78=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=q17UQgS9S5Kai9cMo9y8tTTe+eFTJ28EuhHVuRoZy3vjoRYcM5WtZ/zOlK6I/nCDZ r99MEqJWZ+SFl1cvxSiA/5o95KgESIWhGv/HEOWdE2Cb1tQkgMfoaMtK6O417svEa/ xtkosR4Cj5RqKhODaFzh+aujL6HBSszH9rjYzqjndINGnyGBkSmLdWpTS8M+5GmQ6n FMgcdoeqUYg4UgLp4pzMqy/aMdRSYpS1i/vnboc07LFkDIx9eOVhPLqyeD8A2otaL7 oXHkycsurdmDiYj2elEphyOj5F4DegUh/0gmy2UoGO0Gf8gXKSmFDqt2f7Akdxt0lp Oh4pNRZN2gIgA== Date: Mon, 4 Dec 2023 11:47:25 -0800 From: Jakub Kicinski To: Johannes Berg Cc: linux-wireless@vger.kernel.org, netdev@vger.kernel.org Subject: Re: [PATCH wireless-next 0/3] netlink carrier race workaround Message-ID: <20231204114725.76a986f6@kernel.org> In-Reply-To: References: <346b21d87c69f817ea3c37caceb34f1f56255884.camel@sipsolutions.net> <20231201104329.25898-5-johannes@sipsolutions.net> <20231201162844.14d1bbb0@kernel.org> <339c73a6318bf94803a821d5e8ea7d4c736dc78e.camel@sipsolutions.net> <20231202104655.68138ab4@kernel.org> <20231204082354.78122161@kernel.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 Mon, 04 Dec 2023 20:14:10 +0100 Johannes Berg wrote: > Heh. But do I want to get blamed for the (perhaps inevitable?) > performance regression? I guess I'll try ... I'd happily bet that nobody will notice. Feel free to add: Suggested-by: Jakub Kicinski If that makes it better? > Actually I could even still combine this with the netif carrier up count > in the wireless events, so we only have to do the rtnl_getlink if we > haven't seen an event yet, and - in the likely common case - save the > extra roundtrip? Though I guess it's not a huge problem, it's once per > connection basically. No objections to merging your carrier count patches to wireless, if you prefer to keep them. But it'd be nice to also have a generic mechanism.