Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp2286100ybi; Thu, 20 Jun 2019 12:17:28 -0700 (PDT) X-Google-Smtp-Source: APXvYqyIM0jb3s6y9H6l1HCHkN0une/xJQYNAttjPorXOmXjCDYAzUY2ojtJUIX8lW1gIoHzAaOx X-Received: by 2002:a17:90a:8a0b:: with SMTP id w11mr1211752pjn.125.1561058248537; Thu, 20 Jun 2019 12:17:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561058248; cv=none; d=google.com; s=arc-20160816; b=iULf7XS6+FtDc+6kmGgmoxySIif2O0YSoOOYwBJeghW1NXMMHSLI7Q6kqy7QPy/Txm cGqf5iwx+yOF4zAihlyII1MsMLKpFQvpUdTWI3wTo4+AIM9YPlOQqVF8p89ugev7MmJ6 tFwL3sGnPeyIXeYZZxR5+qUKmzlryJo47VPEK7b7OUGvO3na7CstyegNetdtR44Eq+oh NtEi9zMEIzvUJHyvuKwJxwYho4zPbWURv8JC7m/9T6NXApDxHAd1ZVWgyiNTDEVTke63 r1g5gBkx2tAPWTCWzqOj4mzb4cr7T+tWkJ1Xwn02M1qA5C9Urn0oORMMnXbuN0iMOWJ2 8CQA== 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 :references:in-reply-to:date:cc:to:from:subject:message-id; bh=/tVcZag43Et0HfDrI9qJWJEOEMzD/nFaTUbYvv05ukM=; b=O9wG5gK2zNQM2itRVkvUVxira3c7yzC5brZpgLaFB1OENToiCVbtyx2k1olfq6JhrB Xj0iMH/QHMysk520pH1jFyM9g9IG7ika2WhKOGZsIkPKjfMzaySJss9zwV486mPvWuQJ 5NHq36RFj+WO0yjF1kToRIuRursxHMXXoE7duiJlFkH+5vVO0ke6daQDekhElY8iIfRd UNVyuFKiNt1KQehan05rb+ZfgjPnfCaOP5sgSXSD8QrPjoT4wUSCGfOwOL8zIQaDlysG DbmyHc4Pm4wX3LMR1s9EKVsBj3sk7kKJXp3eBZRUTdMuZW3bQAprbKVyjLDNwFJ1S0aF FfYg== 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 188si311841pfv.146.2019.06.20.12.17.04; Thu, 20 Jun 2019 12:17:28 -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 S1726075AbfFTTRD (ORCPT + 99 others); Thu, 20 Jun 2019 15:17:03 -0400 Received: from s3.sipsolutions.net ([144.76.43.62]:44146 "EHLO sipsolutions.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725897AbfFTTRD (ORCPT ); Thu, 20 Jun 2019 15:17:03 -0400 Received: by sipsolutions.net with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1he2YP-0003mX-9H; Thu, 20 Jun 2019 21:17:01 +0200 Message-ID: <44923833f1068e360b1f9534a9bbd37be41e4833.camel@sipsolutions.net> Subject: Re: [PATCH 3/3] nl80211: Include wiphy address setup in NEW_WIPHY From: Johannes Berg To: Denis Kenzior Cc: linux-wireless@vger.kernel.org Date: Thu, 20 Jun 2019 21:17:00 +0200 In-Reply-To: <7da9b924-78c7-ba72-fecc-a11700a34ff4@gmail.com> (sfid-20190620_181637_972412_D6CA9362) References: <20190619223606.4575-1-denkenz@gmail.com> <20190619223606.4575-3-denkenz@gmail.com> <7da9b924-78c7-ba72-fecc-a11700a34ff4@gmail.com> (sfid-20190620_181637_972412_D6CA9362) Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.28.5 (3.28.5-2.fc28) 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 Denis, > > We generally can't add anything to any of the cases before the split was > > allowed, for compatibility with old userspace. > > Can you educate me here? Is it because the non-split dump messages would > grow too large? No. Those messages aren't really relevant, userspace will need to do a larger buffer for it. The problem is that old userspace (like really old) didn't split even dumps. Eventually, we had so much information here that the default dump message size is exceeded, and we simply couldn't dump that particular wiphy anymore. We solved this by splitting the wiphy information into multiple messages, but that needed new userspace, so when userspace doesn't request split dumps, we fall through all the way to "case 8" and then stop - old userspace cannot care about new information anyway. The reason it was split into cases 0-8 that are combined in non-split dumps is that it was safer that way - there were certain configurations where even the original data would go above the message size limit. > Anyhow, What is the cut off point? It didn't seem worthwhile to send > yet-another-message for ~60 bytes of data, but if you want me to add it > as a separate message, no problem. It doesn't matter if you add it as a separate message or not, you can add it to later messages, i.e. anything in or after "case 9" is fine. johannes