Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp2326590ybi; Thu, 20 Jun 2019 13:05:47 -0700 (PDT) X-Google-Smtp-Source: APXvYqw8VCql8S8vQH8//g/WeVTwlAC2SY1/6Y4ru4kLgmR4ua8luI2Qf2svqEQaXoAlOtmScfcB X-Received: by 2002:a17:90a:d595:: with SMTP id v21mr1443703pju.34.1561061147775; Thu, 20 Jun 2019 13:05:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561061147; cv=none; d=google.com; s=arc-20160816; b=Vs+Uvwk7cIfil6NO0K4Rz2RIdFfhZQl+YuzsIwV0Wa+oQBhkVYYr9MTqHK4D5aArqL YGoM37qzP6UCBRG8OZgf5hKT+MFvUeLnj56cFjuyz4AkptkczNcw+Cs+eHKGZ1ne5y6s 47qP1oZKLVkxnumNbe+3UZY37dZad4lN/RHULi4wq9xIaBykU37Pu7zh8lj1Jqx8NkV7 JeumbKAPQJokCJr9hygsRPNoR+/GVF8GH/YPC8rHCWn7qRi7OTH+02anZ2Z87uqCutTx ZosR0k8YLdLIT4WkFyGBIR6WnsFwzFqa5p40HsJzNPjudwfjRA2LbsW/FDfVlnm4m9xr 6kdA== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=oV5n+hG/iDk/9OF+6N7nMWGif15jpvZOqqVcrMdGLdQ=; b=hNPaMdTCuFeqHwA4nlY7lDGNi4R6z/DAQ+SoHRD6GeFHuZyqEYRINUAu5MQoIfTfLY 7+QVaemVdoRSnPez9nUlmqJGjTbxsDw+LdHGLdsLp/q8dofj/B87qr7LiQrlQJgv9EUK PA2r0KXsBgZ0vZ618RZLr99GMjazsH7NFTgyW3AE2e1akmqBX71tWphVtENXaDsBIr7T pNbvYgu5ncWcVFXrkxi0ZI2/KevZHiLy4EQtQd37QN8fAe354CLB8xRaOkOHI6TXOMtL WuNvcqwVcIHpL8UxSlUA70SMAbeAQLcQAsmiaAfxorWde07V9rydUCZELEJdnt65dm5X ul8Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=WlLli7rh; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x7si596751plv.130.2019.06.20.13.05.32; Thu, 20 Jun 2019 13:05:47 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=WlLli7rh; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726338AbfFTUF2 (ORCPT + 99 others); Thu, 20 Jun 2019 16:05:28 -0400 Received: from mail-io1-f65.google.com ([209.85.166.65]:34490 "EHLO mail-io1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725903AbfFTUF1 (ORCPT ); Thu, 20 Jun 2019 16:05:27 -0400 Received: by mail-io1-f65.google.com with SMTP id k8so2303813iot.1 for ; Thu, 20 Jun 2019 13:05:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=oV5n+hG/iDk/9OF+6N7nMWGif15jpvZOqqVcrMdGLdQ=; b=WlLli7rhK352YrkdYhTWCUxS9keTIV34ykdCozEbWM+IlSiZzPXmB52PmCJffTHs5R sU+s9swPh+Y+B4sPRk6AkBpg9n68GAd3WxQWCZRQMYBatKkdEWxu0+joM8Ieqqp8rZBW q3bztjPJGUigsPtRKZG952iOeDOIU6pyxpekvHxwBrKrJk5BH6UZGLFJrgM7U/TBD1vD W1+batFYwwR2Nw3DjzySYBSSxBC2/H2/EZKzVmUKNKlSANr+UuaCUlFuLSKdIVIVs6wd w6gPm3wuO9mxhc314gd0WnYsPOxz3r1p9mVx50QcSA0eEyBupvNMMHgkJFQjnoOYTrGh CBFQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=oV5n+hG/iDk/9OF+6N7nMWGif15jpvZOqqVcrMdGLdQ=; b=T20Lws/10t9xpQW9AQTFVkazkWIjzcbDEFz8/QBzcSc0sSjcuz6woB+bFMOQZOKBLa rqaEOph1ev3yILACGJjbPhkQZfBye390ZYG5QuGZTwIjmVSmCrcwc1hR6SDjXYHy9Rf7 BPk2kjyygmcYM55OlkNOcopEMTb+tHZMCWFdDwhbRsdVTtNV4z7ZlmOBekUtkUGmt+Ic e4dO/Cw9/1SYhgijSCeQpPiv2MXKmoiYysUZE6yIV6GSsSi/Y/DL3tpWeNmPhvxnPaeU z/I0G093R8rqoghiGN+QFmHNMe7/pvg/g7bel093vU93z//52xf5Wp855oJiQvSYmA2M 5GXg== X-Gm-Message-State: APjAAAVhlbSS5S/lsqueTAbzw7tbEv++PdN+WmGGWpoVQ9ibJt8qMLtz 9vy0XCbRJdwEVcxH3tk9fwXBIsGy X-Received: by 2002:a5d:8ccc:: with SMTP id k12mr9669813iot.141.1561061126855; Thu, 20 Jun 2019 13:05:26 -0700 (PDT) Received: from new-host-2.home ([2605:a601:808:1001:37ba:4f0a:192f:f945]) by smtp.googlemail.com with ESMTPSA id m4sm560977iok.68.2019.06.20.13.05.26 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 20 Jun 2019 13:05:26 -0700 (PDT) Subject: Re: [PATCH 3/3] nl80211: Include wiphy address setup in NEW_WIPHY To: Johannes Berg Cc: linux-wireless@vger.kernel.org References: <20190619223606.4575-1-denkenz@gmail.com> <20190619223606.4575-3-denkenz@gmail.com> <7da9b924-78c7-ba72-fecc-a11700a34ff4@gmail.com> <44923833f1068e360b1f9534a9bbd37be41e4833.camel@sipsolutions.net> From: Denis Kenzior Message-ID: <427f488f-98f5-f888-f079-e2bbbb6eedf3@gmail.com> Date: Thu, 20 Jun 2019 15:05:25 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.3.0 MIME-Version: 1.0 In-Reply-To: <44923833f1068e360b1f9534a9bbd37be41e4833.camel@sipsolutions.net> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org Hi Johannes, On 06/20/2019 02:17 PM, Johannes Berg wrote: > 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. Ugh. So, if I understand this correctly, NEW_WIPHY events that are generated when a new wiphy is plugged would only send the old 'legacy' info and any info we add in cases 9+ would be 'lost' and the application is forced into re-dumping the phy. This is pretty much counter to what we want. If you want to keep your sanity in userspace, you need proper 'object appeared' / 'object disappeared' events from the kernel. And those events should have all or nearly all info to not bother the kernel going forward. It sounds like nl80211 API has run into the extend-ability wall, no? Any suggestions on how to resolve this? Should NEW_WIPHY events also do the whole split_dump semantic and generate 15+ or whatever messages? Regards, -Denis