Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp1208730ybe; Fri, 13 Sep 2019 12:46:58 -0700 (PDT) X-Google-Smtp-Source: APXvYqxfhqDVFoKUS6KPihcyAnsqW0pxKlf2/usO2c2/+PlEZ5qWeJN9tpwNl/KcnJlsu15lMLRt X-Received: by 2002:a05:6402:160d:: with SMTP id f13mr49830762edv.227.1568404018864; Fri, 13 Sep 2019 12:46:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1568404018; cv=none; d=google.com; s=arc-20160816; b=d4IyMvCauxjsWSiRwqWGKhC5DXnf0DBIL1f2s209YxmfroXJx1Y/PdAoLEvKUxXcHZ iiF5OlrdJIZ/nZdPt/+WFdOUxBHAEA7nBiAbJvJmJhlr4iZmTV9OevBG4dJYYKmxEHMS Eo2PTs/v4EDIuvtJQXzl9qWu8C7eGz9q7Kp9JUos0h9kmOOeYkQdJ6h4zofEoM2XKn+T zl5QT8iW3kiXEmGuTC0DqwwKAA8zss+VDtuGEITvJst+asXhlUj/YEGykYjKRKJTS7bL ivVoUzCtNo1pzMLw6/PvoVsX5BMRETfyZPgSLsC7voIUewdTYWD4qtMeUbAnlNoheHzi WjLg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:date:to:from:subject:message-id; bh=LGb8vXi8TjcZ/wdKAX0aP5zC6siZejvDuPukO4LBNkk=; b=mtLBkQuDYLOMevaFTIMhEU9aeIt3Re3DiFTbldiUuh0ie10GDKlVoedqgBrx0H7uGm SEtESG0kXtIId35ps/1fvwIVXgcAjvukcEbRgSBGex9FxYJHmppHKqAValqe0h7d6hWN SKT9lyAtxVp++3erBDryrSRKpCDBfDaQQbdZzSOlRItR2FkkbGJYBQG4XPhxzOlOZhgy 0hpO+uA406+aI+m2lybKXp1EaTKoFPmvpXlfrXdzNiDhI4Ii0SqRHTJJ1GJh7KRazFuh guOzppfbmeYPqw+XrKxe/Un/lD1IsPrc06hqztOtvJ0pOWDu4tc4LnJtBxAxbcQ5iArR mTMw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k12si15370282ejz.304.2019.09.13.12.46.21; Fri, 13 Sep 2019 12:46:58 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2389839AbfIMStt (ORCPT + 99 others); Fri, 13 Sep 2019 14:49:49 -0400 Received: from s3.sipsolutions.net ([144.76.43.62]:59706 "EHLO sipsolutions.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2389736AbfIMStt (ORCPT ); Fri, 13 Sep 2019 14:49:49 -0400 Received: by sipsolutions.net with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1i8qdf-0006el-Fh; Fri, 13 Sep 2019 20:49:47 +0200 Message-ID: Subject: Re: [RFC 0/4] Allow live MAC address change From: Johannes Berg To: James Prestwood , linux-wireless@vger.kernel.org Date: Fri, 13 Sep 2019 20:49:45 +0200 In-Reply-To: <896183390a396e8e0508622eceb3664effcb3c30.camel@gmail.com> (sfid-20190911_212249_094118_78051519) References: <20190904191155.28056-1-prestwoj@gmail.com> (sfid-20190904_221357_305070_478BF6CA) <4c43ea6a74cacc61184bc5b1387fecaa40711369.camel@gmail.com> (sfid-20190911_175613_316165_C021A0FB) <4909a428ee6fef2bf8b0e61841bc88062f534b13.camel@sipsolutions.net> <896183390a396e8e0508622eceb3664effcb3c30.camel@gmail.com> (sfid-20190911_212249_094118_78051519) Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.30.5 (3.30.5-1.fc29) MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org On Wed, 2019-09-11 at 12:20 -0700, James Prestwood wrote: > I see what your saying, but theses kind of state changes are all over > the place in other APIs, and undocumented: One example is > SCAN_FLAG_FLUSH clearing out the scanning state for all other > processes. Scanning always changes scan list state? > I'm sure I could find more. If we documented this attribute > and behavior I don't see an issue. But I'm sure you could actually find an example :-) That doesn't really mean it's the *right* thing to do though, IMHO. Also, who says that this is the only thing? Next up, somebody wants to randomize the MTU? Ok, probably not, but you could pick a random other rtnetlink attribute and have nl80211 set it. Where do we stop? Thinking this to the extreme - why not add an rtnetlink message interpreter into this code? ;-) Sure, none of that is really seriously likely to happen, but I'm really not convinced we (more or less arbitrarily) need many ways of doing the same thing in the kernel. Either way, regardless of that discussion, I think it'd be good if you could repost the patches for just the "quick win" that we can all agree on, and then we can get those reviewed and into the tree before we need to continue this discussion; after all, while we're discussing saving about 3 milliseconds, you're still wasting around 280 :-) (and the easy one can be done without affecting the other, just need to reorder the patches and split them a bit differently) johannes