Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp4519264ybl; Tue, 20 Aug 2019 13:16:59 -0700 (PDT) X-Google-Smtp-Source: APXvYqyxru9eS7DMWBMymuDOL85sIwhCyIbO5F6HGJjDUMxw0LB4JpDylIQaWidtVX4g+z+uiXKo X-Received: by 2002:aa7:83c7:: with SMTP id j7mr32768458pfn.59.1566332219424; Tue, 20 Aug 2019 13:16:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566332219; cv=none; d=google.com; s=arc-20160816; b=NxOQ6/Rdk53De0jjrvPHJ3jgpNFX7gM+Yp8AbigALYTC8GzmMr8+P425WOV85gTEuv GxVLnUZQ1X8Pzg6XL93q0gqJ7+1LNoLvSEV5Dt1229rxK33O4Kmtclv5Bof1vv0dHd6B 3qFpm9Owv8lk7a0d1llLkN3ZG4WzMsvC1e71pR7sjx5jkS7JC/hsJOizECyg56NzB5m9 mqWlmnuGDD+oJmKoWOnyxZBSZcz3boTvJ8EwaJ/5tmAfvW6Kkx/4apSTWu06n2J4Oflw jC1D+GtiQ+cRu3bFvi4tGSX9YWgFngm7o09taM1pROMtVR1VSztJVEI7HeWjQUrmbXCK KUCw== 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:cc:to:from:subject :message-id; bh=M9tuMcof2aGXbzFpvZEHwcNhY6EpVWM5+1KiQSht7e4=; b=JexJ53wXCrj9XEN0d7jNOuVN3A+h7h2y5PAQTEwRRwLJwmBbE9iapuWIcv4xzCq8wj FcxM0gL+g0/1yHJBITWzpHkiRp3JSUpxenyJKdch9loBDnYizvLm3sHLJWEHR3Xw8Ff/ /MBjRP+/FOUW+NiC0DSZd2QkNZA/mvbYu1VhX18VCvVkoXQ7dCgSCYCUZ2wSJ4jTBfN3 yTlU26KSkLOocO25ccet+STRFrhu6l/Nj5URtJ6yerDcpIb/lCeDG/LC07JEhD2QQ/TN VFE0hYSqwAtaD0ORg+V6XWvHp08N08dMrPhlUAC3/DzPKHoQlr7CnfngcdvsuOICAVpF wkGQ== 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 s21si13662076pfe.204.2019.08.20.13.16.40; Tue, 20 Aug 2019 13:16:59 -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 S1730680AbfHTUPv (ORCPT + 99 others); Tue, 20 Aug 2019 16:15:51 -0400 Received: from s3.sipsolutions.net ([144.76.43.62]:43158 "EHLO sipsolutions.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729950AbfHTUPv (ORCPT ); Tue, 20 Aug 2019 16:15:51 -0400 Received: by sipsolutions.net with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1i0AXl-0007eV-8t; Tue, 20 Aug 2019 22:15:49 +0200 Message-ID: <3fd41591acd55535863f11a0cc4f0f5f2afd5bdf.camel@sipsolutions.net> Subject: Re: [RFC 0/1] Allow MAC change on up interface From: Johannes Berg To: Denis Kenzior , James Prestwood Cc: "linux-wireless@vger.kernel.org" , Dan Williams Date: Tue, 20 Aug 2019 22:15:45 +0200 In-Reply-To: <8c04da29-7515-1196-8431-67a6390bc00d@gmail.com> (sfid-20190820_220640_385053_F92EA8C6) References: <20190815185702.30937-1-prestwoj@gmail.com> <645af7dad899e8eb186b3fee0f8a8a151a408557.camel@sipsolutions.net> <394092a2f20697c9b055166a8254a5ef888551a5.camel@gmail.com> <4848c3a9d0b330fab4442436244387a2c127fa03.camel@sipsolutions.net> <6835732fcc59ba8dbbcda4abc6e17dad499a7d8d.camel@sipsolutions.net> <3576ad937c0b40b971a1b9c1a7c7396731a94bad.camel@sipsolutions.net> <8c04da29-7515-1196-8431-67a6390bc00d@gmail.com> (sfid-20190820_220640_385053_F92EA8C6) 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 Tue, 2019-08-20 at 14:58 -0500, Denis Kenzior wrote: > > But what actual complexity are we talking about here? If the kernel can > do this while the CONNECT is pending, why not? It makes things simpler > and faster for userspace. I don't see the downside unless you can > somehow objectively explain 'complexity'. It's just extra code that we have to worry about. Right now you want it for CMD_CONNECT and CMD_AUTH. Somebody will come up with a reason to do it in CMD_ASSOC next, perhaps, who knows. Somebody else will say "oh, this is how it's done, so let's add it to CMD_JOIN_IBSS", because of course that's what they care about. OCB? Mesh? AP mode for tethering? Etc. I don't see how this will not keep proliferating, and each new thing will come with its own dozen lines of code, a new feature flag, etc. Relaxing and defining once and for all in which situations while the interface is up you can actually allow changing the address, and then having userspace do it that way is IMHO a better way to design the system, since it forgoes entirely all those questions of when and how and which new use cases will come up etc. > This was an RFC. There isn't much point for us to cross all the 't's > and dot all the 'i's if you hate the idea in the first place. Sure, but I cannot distinguish between "we only want it on CMD_CONNECT" and "we'll extend this once we agree" unless you actually say so. It'd help to communicate which t's and i's you didn't cross or dot. > It would get the job done. But it is still a waste of time and still > slowing us down. Look at it this way, even if we save 10ms here. Take > that and multiply by 3-4 billion devices and then by the number of > connections one does each day. This adds up to some serious time > wasted. So why not do this elegantly and faster in the first place? It may be a bit faster, but I don't agree with elegantly. It may be more elegant from the point of view of that single operation, but to me it's a lot less elegant from a system view, with all the possible extensions to it that we'll no doubt see, and not have thought about today. johannes