Received: by 2002:a05:7412:b10a:b0:f3:1519:9f41 with SMTP id az10csp1415069rdb; Fri, 1 Dec 2023 16:28:56 -0800 (PST) X-Google-Smtp-Source: AGHT+IHJuCGkJq4OxPv/bN7wOOKmobf3AQZYOm5ZouF2hEWPYOUeL/Z25bmDrUun3nhC0sLBiuiE X-Received: by 2002:a17:902:8f8c:b0:1d0:6ffd:e2d5 with SMTP id z12-20020a1709028f8c00b001d06ffde2d5mr419235plo.111.1701476935940; Fri, 01 Dec 2023 16:28:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701476935; cv=none; d=google.com; s=arc-20160816; b=uLYz65c1/j8DStqvkt2cj+jC/LZVe3L3EUU2RGIJ8QRJfT5Ei9TvwBEgP7t0irSzon zySVqUgmd1FElcwPw6caEsJi+NxXR85NdWqIWn+/FxrRiCM+j6pj0bWvIlW6dkEtQpjU mhc932UeCH/LaaC6O/nSgOc+X2WPCBv8+Y/nb7c5YmdAQimSSgvnQMetKSRAEbmgwzD8 f32i8DfdH/CwVmJawU4hq4G5nOXZs3nagphIf50q9d1TszsFiDpSlIjouXAZNpEsHq9K gxfZ5rpDHp+kpw5VxcajUUygbc27Z3QvAukymxReIs/4P8W4CuH8dLrBqBX/tMvG+m/a KT7A== 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=aWKQ1wdngbhODooc4rWX0AfJZY/qZjTVmze43FDfcM8=; fh=wF9sg2YKRy/mhluOpUwroQPBxl99MdbRccr9km/XeIg=; b=d/vdivGRnXuMOvr8+Vw2mqZviwWFZyHdaiCfFF6DzHFZKXM2KtJ9xkytyuHAtHeroH hMZb7eN33PaFzun0yqvo4dqZw39tTSvCo+st+8QfIgcP0B6pvw4Vfe36JQiTBorypjU7 50HfGC7XEpzZsSyflpwPbwLChAppeK9CFjD4x3zsn39MJDOzjme6AQ1d7LBwQatj2rNA zTgBLmXdJ9QTnxYGAGb5NysBKDxXFr8V4AbzJarwEwTP/Ta0hSXbRNDh4q3WQvMuvjM5 BvgkPyxo/WsCFnJl0Ehd0H/tseLNbZUOxOg0mCztQqZt3SuWbPW6B3ErP7KrvSZBu2iG 9fEA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=XCO6gc5Y; spf=pass (google.com: domain of linux-wireless+bounces-317-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-wireless+bounces-317-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. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id t7-20020a170902e84700b001d005539a1dsi4158973plg.409.2023.12.01.16.28.55 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 01 Dec 2023 16:28:55 -0800 (PST) Received-SPF: pass (google.com: domain of linux-wireless+bounces-317-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=XCO6gc5Y; spf=pass (google.com: domain of linux-wireless+bounces-317-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-wireless+bounces-317-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 13D1FB20F47 for ; Sat, 2 Dec 2023 00:28:52 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id DBD29800; Sat, 2 Dec 2023 00:28:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="XCO6gc5Y" 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 BADB4180; Sat, 2 Dec 2023 00:28:45 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6C8B4C433C7; Sat, 2 Dec 2023 00:28:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1701476925; bh=R0k0tXYJ+7iYYb4PuYlDXmyrZ419znNCZk78MJognfE=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=XCO6gc5YMrsqvtUec95lwReeHXO5R8bI0Ex9DtHRiUJXNZ63Teeyhqo7Om3Sxt4WS gc1qn1MvOYLzYbNKc4+psBCm5dnBIV/8qFazpLjIiTIGosJ1N5P0/bX+qilx2kZjUU Ol1tD8AIHrhn/Y+0Xt6LELQSaw72nd/q8cmsudFfaCRtjV5cSpGBusIqYWYpIm5wmo kW+Z2+jhOkmht4aR2adt32/IbIZO4gfx+YJP5oH/tE/gK7Cw3aVQwKmW6uGT9u9rOJ jImLtnsURwka7Sdd2Tc1DybR0fHRb2WuZXRE6cQv7rZXaukjHzdsKls5tWADvHCTj5 VrGNFHVBRoRqw== Date: Fri, 1 Dec 2023 16:28:44 -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: <20231201162844.14d1bbb0@kernel.org> In-Reply-To: <20231201104329.25898-5-johannes@sipsolutions.net> References: <346b21d87c69f817ea3c37caceb34f1f56255884.camel@sipsolutions.net> <20231201104329.25898-5-johannes@sipsolutions.net> 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 Fri, 1 Dec 2023 11:41:14 +0100 Johannes Berg wrote: > So I had put this aside for a while, but really got annoyed by all > the test failures now ... thinking about this again I basically now > arrived at a variant of solution #3 previously outlined, and I've > kind of convinced myself that userspace should always get an event > with a new carrier_up_count as it does today. Would it work if we exposed "linkwatch is pending" / "link is transitioning" bit to user space? Even crazier, would it help if we had rtnl_getlink() run linkwatch for the target link if linkwatch is pending?