Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp2925459pxk; Mon, 28 Sep 2020 04:04:23 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzNWhfhsDYil32wtCdGFInwsg/T+ZKRmdNa7omRMU1PGknWQuZfhajTgA751bDCBS4ZgA2B X-Received: by 2002:a17:906:5f96:: with SMTP id a22mr1110113eju.335.1601291063079; Mon, 28 Sep 2020 04:04:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1601291063; cv=none; d=google.com; s=arc-20160816; b=jclXSBqUXs/KuzDqQhEGTcNttJF527t59FiCIQuMn91vAooLSItf8kgW52gcTRSVVZ I4nI/6qsquwIFiUc/d7NO+17iYhm2+OhP2sjWN1o0oZcn0BOq9U7KpPp0hkyHETO+93P IV+THgJmFVYWaf5rTxG9Q6fdfpIfQKkZ4BQZ3YUz1O+s/7FyORk0Ay9o+C+G6ZktUZ8b IcN9xOaVLOVzlOT4NniRH1EHvE0EftBBR6Hk2xDB/ZnAno7+6KQyz8tn1xn3dP2Xu8yE 9Y11tHGtT/kEbb9g+z2zA+RDdeNJ1Z2S1Lw149GoGmZP+jFGPYvHrGd+mhsAF3hyMXjk RDHg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:date:cc:to:from:subject :message-id; bh=Pe0bGlWT1Iwp1qk8OXADsLKteuYA/PKzl4iEPpOCvyA=; b=KWbE51AW5QWvF+maugwYnHLIePm+Wh4Y50kA+GDF0RDsJ71fpty1aWyzhDVd5ldeNG pDDYBK2UxUtAa4ocVDrcPnah14Sdy/yq+6n24OY7sfEOJuT2EamxVoAKNGq8CV6rOEHi 7LbK7uKxOY404KCE2AwkxNZq8YWqQLFh/d0xu585OavqVCPv3WcPTF3qrsi6j5S8/QYm eo1YKwsiGll6oAr527scPHwdyqya1woMGiyy52nj+YoOxVfXuxLz1Rx10EQJ6LZyhdHN KFvxXoXvRwlihR7m0/is/BJRFYp333qIFIYL0lZ0kf9YnyjwlI5vpQojNa5zHuHhxtlA 9lig== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g11si316228eds.232.2020.09.28.04.03.51; Mon, 28 Sep 2020 04:04:23 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726559AbgI1LDo (ORCPT + 99 others); Mon, 28 Sep 2020 07:03:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36482 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726500AbgI1LDo (ORCPT ); Mon, 28 Sep 2020 07:03:44 -0400 Received: from sipsolutions.net (s3.sipsolutions.net [IPv6:2a01:4f8:191:4433::2]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6304BC061755 for ; Mon, 28 Sep 2020 04:03:44 -0700 (PDT) Received: by sipsolutions.net with esmtpsa (TLS1.3:ECDHE_SECP256R1__RSA_PSS_RSAE_SHA256__AES_256_GCM:256) (Exim 4.94) (envelope-from ) id 1kMqwX-00CRSX-Rz; Mon, 28 Sep 2020 13:03:42 +0200 Message-ID: Subject: Re: [PATCH] nl80211: Include supported RX/TX frames in split phy dumps only From: Johannes Berg To: Martin Willi Cc: linux-wireless@vger.kernel.org Date: Mon, 28 Sep 2020 13:03:40 +0200 In-Reply-To: <20200904091235.11342-1-martin@strongswan.org> References: <20200904091235.11342-1-martin@strongswan.org> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.36.5 (3.36.5-1.fc32) MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org Hi Martin, > With the recent additions of new features, non-split phy dumps exceed the > maximum Netlink size of 4096 bytes. Depending on their feature set, not all > radios are affected, but for example hwsim is. Hmm, ok. I wonder which features in particular? > While userspace dumping phys can request a split dump as a work around, > legacy tools without split support may get oversized dumps. Much more > problematic are phy new/del notifications, which are always limited to > a page size: Generating these messages fails, and Netlink notifications > are silently dropped. This breaks userspace relying on these events. Right, not good. > There is no single commit that broke these events, as their size highly > depends on the phy feature set. Finding attributes to strip is challenging: > The largest attributes are the frequency lists, but they are already > reduced to the minimum and have rather useful information. Right. > HE information > probably could be stripped, Right, bad. We should strip that entire stuff. > but the saving is about 200 bytes, not enough > to fix dumps for many cases. :( > The next larger attributes are usually the > RX/TX frame attributes. Removing these attributes can reduce a hwsim phy > dump from 4576 to 3288 bytes, and it seems to be the most reasonable > approach. Well the problem with that approach is that it kinda results in a different regression because the RX/TX stuff *was* present before split wiphys were even introduced. OTOH, I just checked, and back then wpa_supplicant wasn't using that information, so it seems fair game to remove. I've ended up with a patch that's a bit different - I'll post it in a minute. johannes