Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp7162677ybi; Thu, 1 Aug 2019 04:10:36 -0700 (PDT) X-Google-Smtp-Source: APXvYqy3FFxqZbbhyrxUgAcokrHi5IUGfSBy8CXGWOyp+KcYkZInSdJeBhSmOJLSdZt/arPAY8+v X-Received: by 2002:a63:7205:: with SMTP id n5mr63794785pgc.443.1564657836363; Thu, 01 Aug 2019 04:10:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564657836; cv=none; d=google.com; s=arc-20160816; b=Wz1XfoFUyK7k25D0YF8NGfCZ33cLMvZjyxhkljYlivAUjYUrIlWaxO0VmV4yBeP04i /NskA6urw+XyybLPFDlteMwC3Kwpn2E0yapneLey790MCKIwohXmkUnIoAUce80z5SCC cYmgfaRzWG+VAp3KUrZ/Y3bbC1NXoTj7IIXVnBjlc2dUZ67lOXy0Ts7bX5OgjA9ohX59 YmT3U/Y81e7p9KBFdxQTFsMiwYC/rpHGBDKFYJZC69l2dqcJJeZ7ObQkFPiI7GdgY0vm fTy6E7s2+nBiaIVsnih/Ufmu/6DBOJLTLH3yG2VF/n5ItE3IAcWxQrXbQWWMW2B5WDsc H3BQ== 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=8NHNyMD5Q3m4Yb6/ccKwxpan7K4llBX2t1HEikpBGos=; b=CWEIjXfzbZgMjF4IDbGFzjEfgUpZ1KMnpJkiLoKxA2CxHRiPwJdOPQ0Cd18wwAgicz 45kuDEf2z/T+hVO/s40Qku0BrrqIPQT+gWrBX5VvcfzvnkGIgCQqWCXGc7+w/R3CR7sE KXEFFCqT3SGwIaTNLcmlbtsNtojnbaWOkS1BMF/vIEXcWtHsyt9cEgI7Tu2tuukYaJHK MKl7rKe6ORyiVQq4Mt1tvC4RgiSE5Rf1DVp/9x0j70yDpRLn6+7tS0fUzYjXHEaoRKpA /lg6BU0iJw3TIytmTEArJtxPSp5cb7hvpX8OwpSxco+Ya5c2fTBXpfVOC53iI6ijsev8 sG2w== 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 o2si51531547pgp.288.2019.08.01.04.10.21; Thu, 01 Aug 2019 04:10:36 -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 S1729846AbfHALFH (ORCPT + 99 others); Thu, 1 Aug 2019 07:05:07 -0400 Received: from s3.sipsolutions.net ([144.76.43.62]:58712 "EHLO sipsolutions.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728754AbfHALFH (ORCPT ); Thu, 1 Aug 2019 07:05:07 -0400 Received: by sipsolutions.net with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ht8tI-0004GA-8X; Thu, 01 Aug 2019 13:05:00 +0200 Message-ID: Subject: Re: [RFCv1 2/2] nl80211: Don't split-dump for clients with large buffers From: Johannes Berg To: Marcel Holtmann Cc: Denis Kenzior , linux-wireless@vger.kernel.org Date: Thu, 01 Aug 2019 13:04:57 +0200 In-Reply-To: <29DA5CC8-9CAF-4F9A-933C-ED3D6B25FA4E@holtmann.org> References: <20190801071455.4974-1-denkenz@gmail.com> <20190801071455.4974-2-denkenz@gmail.com> <29DA5CC8-9CAF-4F9A-933C-ED3D6B25FA4E@holtmann.org> 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 Hi Marcel, > > Also, I don't really buy the *need* for this since you're just removing > > a few kernel/user roundtrips here when new devices are discovered, a > > rare event. The parsing isn't really any more complicated for the > > userspace side. > > that is an argument that is coming to bite you. Forcing multiple > roundtrips or even collecting multiple split message for some ancient > legacy client behavior is just silly. If clients provide larger > buffers, we should start using them. I'm not arguing legacy/old client behaviour. > I have proven a long time ago that round-trips are causing delays and > creating visible user experience issues. Look up my DHCP presentation > from either LinuxCon or PlumbersConf. One round-trip leads to another > and at some point you end up with seconds wasted because you want to > sit here and ignore efforts in improving the situation. Comparing network roundtrips to local kernel access isn't exactly a very good comparison. > > And finally, I also see no reason to send out many KB of data for what > > might in the end (e.g. in iw) just be a debug message. > > Actually iw is just a dev tool. It should not be run in production and > so that is not an argument. Any proper client that cares about your > WiFi connections will want this information. Again, this isn't an argument. I said wpa_s is an example. Any other number of tools works, even wpa_s. Heck, probably even iwd, when configured to not care about some devices (unless you can't even make it ignore devices, which I'd consider a deficiency in its own right). > > But really I think the thing that kills this proposal is the fact that > > it reintroduces a message size limit (even if higher now) that we're > > somewhat likely to hit in the future. > > Maybe we need to accept that current nl80211 API is broken and start > over. Or we should at least start deprecating commands and replacing > them with new ones that are doing a better job for clients that > actually behave properly. I know you love throwing things away and rewriting them, but you're not going to solve the problem. I suggest you re-read my email and actually reply to it, rather than throwing out bullet points. Frankly, I'm tired of having a discussion where all you do is accuse me of not caring about the problem, but then you don't even respond to any arguments. johannes