Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp590097pxk; Wed, 16 Sep 2020 11:34:47 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzfeRwkDuJDRlMO8z+lsyPYvjXY8RNHMIRURLsTgD4O0qTwjtSk7s7maEhBYoKsLEPf+54P X-Received: by 2002:a17:906:e4f:: with SMTP id q15mr28169620eji.155.1600281287156; Wed, 16 Sep 2020 11:34:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600281287; cv=none; d=google.com; s=arc-20160816; b=Pj74XI76ATscNdWe1MPv6jFRjBYXkf0nzgCJU4PMcT37rHtaZevJpWPHj0e1CKshYP ck7R0RiKSalYiztOrLHeE850ZEfSY0zWna0o4Nssk1HZbx2Tp1mEobsO/1v7D5o0i9+C rUccA3EwfSQj2aC9p6mtmFVbHZHdB5SxMPSS9si6DNinwnjeD1nAll6rBGNwZSXlV31a FH7eZcDfpzlQewVLxU6nsK0e/h2EmBK/77u7W/SuHJen8CMTvbb9i13iAQhqFnLfw8rS eJ26TmDc2GFJMV65Ur/4/aDXZ5tNVgkC1lMOJeuGYYywgw3iUQMEIHtGsW1BB+U+nenH YmyQ== 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:autocrypt:from:references:to:subject:dkim-signature; bh=q/bByvJDAe35pBgsrtg7buKFpe4T16lxDU+c+B5gDb0=; b=XPAIYu05VEEkoAI3JjYGsi+0GUCsPyArbmgjMk0Kgn3kxx28d37zDN5iSgT93dvWJS sOoO5DxPdP+bbbjpjcBlsI4+XFcmR00qVf2xSPTG4jVGjVgZJzQXTDv37OD6ceQ8Y/mQ hMZAqos9bYvsKvxbtTmcBBp96idwxGvPH6GeB1cC34fQqvWVY212FvBXIsCehTr21q30 /2BXlLYIPVbY9MJIuBMg28vDQoR1TD8RRgVASansJ+ietENmuu6Y0aQ4d/JKIfGBAQef Vfqbmgn3gY+Sx26wodkiiM3ayRXO49Z3ZJ/gnhLLZqvpkLhQ220SzcGROOpxjuVOLUok XMGQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@nbd.name header.s=20160729 header.b=rggje154; 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 h6si11977503ejx.417.2020.09.16.11.34.15; Wed, 16 Sep 2020 11:34:47 -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; dkim=fail header.i=@nbd.name header.s=20160729 header.b=rggje154; 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 S1727963AbgIPScC (ORCPT + 99 others); Wed, 16 Sep 2020 14:32:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42664 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728001AbgIPSbv (ORCPT ); Wed, 16 Sep 2020 14:31:51 -0400 Received: from nbd.name (nbd.name [IPv6:2a01:4f8:221:3d45::2]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 03D7EC06174A for ; Wed, 16 Sep 2020 11:31:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=nbd.name; s=20160729; h=Content-Transfer-Encoding:Content-Type:In-Reply-To: MIME-Version:Date:Message-ID:From:References:To:Subject:Sender:Reply-To:Cc: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=q/bByvJDAe35pBgsrtg7buKFpe4T16lxDU+c+B5gDb0=; b=rggje154u3gsAkymsEkYxkB4PI kja6gvQxTesLgz2CRQB/kMk1LjmYrJug+XvU/OwHRIsJBPT8n5hFHEwr5ySmW+AEwCHwoDW3Jbk3k QR+mjLV0hTS+S/EkCRwn6+2RZBa/sIb0xrMO6r9RUllNsKuK91pWJqPKidwaLn3ljOrY=; Received: from p4ff134da.dip0.t-ipconnect.de ([79.241.52.218] helo=nf.local) by ds12 with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.89) (envelope-from ) id 1kIcDc-0002vz-AR; Wed, 16 Sep 2020 20:31:48 +0200 Subject: Re: [PATCH] mac80211: allow bigger A-MSDU sizes in VHT, even if HT is limited To: Johannes Berg , linux-wireless@vger.kernel.org References: <20200916164611.8022-1-nbd@nbd.name> From: Felix Fietkau Autocrypt: addr=nbd@nbd.name; prefer-encrypt=mutual; keydata= xsDiBEah5CcRBADIY7pu4LIv3jBlyQ/2u87iIZGe6f0f8pyB4UjzfJNXhJb8JylYYRzIOSxh ExKsdLCnJqsG1PY1mqTtoG8sONpwsHr2oJ4itjcGHfn5NJSUGTbtbbxLro13tHkGFCoCr4Z5 Pv+XRgiANSpYlIigiMbOkide6wbggQK32tC20QxUIwCg4k6dtV/4kwEeiOUfErq00TVqIiEE AKcUi4taOuh/PQWx/Ujjl/P1LfJXqLKRPa8PwD4j2yjoc9l+7LptSxJThL9KSu6gtXQjcoR2 vCK0OeYJhgO4kYMI78h1TSaxmtImEAnjFPYJYVsxrhay92jisYc7z5R/76AaELfF6RCjjGeP wdalulG+erWju710Bif7E1yjYVWeA/9Wd1lsOmx6uwwYgNqoFtcAunDaMKi9xVQW18FsUusM TdRvTZLBpoUAy+MajAL+R73TwLq3LnKpIcCwftyQXK5pEDKq57OhxJVv1Q8XkA9Dn1SBOjNB l25vJDFAT9ntp9THeDD2fv15yk4EKpWhu4H00/YX8KkhFsrtUs69+vZQwc0cRmVsaXggRmll dGthdSA8bmJkQG5iZC5uYW1lPsJgBBMRAgAgBQJGoeQnAhsjBgsJCAcDAgQVAggDBBYCAwEC HgECF4AACgkQ130UHQKnbvXsvgCgjsAIIOsY7xZ8VcSm7NABpi91yTMAniMMmH7FRenEAYMa VrwYTIThkTlQzsFNBEah5FQQCACMIep/hTzgPZ9HbCTKm9xN4bZX0JjrqjFem1Nxf3MBM5vN CYGBn8F4sGIzPmLhl4xFeq3k5irVg/YvxSDbQN6NJv8o+tP6zsMeWX2JjtV0P4aDIN1pK2/w VxcicArw0VYdv2ZCarccFBgH2a6GjswqlCqVM3gNIMI8ikzenKcso8YErGGiKYeMEZLwHaxE Y7mTPuOTrWL8uWWRL5mVjhZEVvDez6em/OYvzBwbkhImrryF29e3Po2cfY2n7EKjjr3/141K DHBBdgXlPNfDwROnA5ugjjEBjwkwBQqPpDA7AYPvpHh5vLbZnVGu5CwG7NAsrb2isRmjYoqk wu++3117AAMFB/9S0Sj7qFFQcD4laADVsabTpNNpaV4wAgVTRHKV/kC9luItzwDnUcsZUPdQ f3MueRJ3jIHU0UmRBG3uQftqbZJj3ikhnfvyLmkCNe+/hXhPu9sGvXyi2D4vszICvc1KL4RD aLSrOsROx22eZ26KqcW4ny7+va2FnvjsZgI8h4sDmaLzKczVRIiLITiMpLFEU/VoSv0m1F4B FtRgoiyjFzigWG0MsTdAN6FJzGh4mWWGIlE7o5JraNhnTd+yTUIPtw3ym6l8P+gbvfoZida0 TspgwBWLnXQvP5EDvlZnNaKa/3oBes6z0QdaSOwZCRA3QSLHBwtgUsrT6RxRSweLrcabwkkE GBECAAkFAkah5FQCGwwACgkQ130UHQKnbvW2GgCfTKx80VvCR/PvsUlrvdOLsIgeRGAAn1ee RjMaxwtSdaCKMw3j33ZbsWS4 Message-ID: Date: Wed, 16 Sep 2020 20:31:47 +0200 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:68.0) Gecko/20100101 Thunderbird/68.11.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 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 On 2020-09-16 19:44, Johannes Berg wrote: > On Wed, 2020-09-16 at 18:46 +0200, Felix Fietkau wrote: >> Some APs (e.g. Asus RT-AC88U) have been observed to report an HT MSDU size >> limit of 3839 and a VHT limit of 7991. These APs can handle bigger frames >> than 3839 bytes just fine, so we should remove the VHT limit based on the >> HT capabilities. This improves tx throughput. > > I'm not really convinced that we can do this, since we don't track > HT/VHT limits separately. > > IOW, to be behaving according to the AP you mention, we'd have to know > when building an A-MSDU whether it's going to use HT or VHT rates, but > we don't track that at all ... These comments don't make sense to me. A-MSDU limit is tracked per sta, and on all the implementations I've looked at, HT rates are never used to transmit to a peer that can do VHT. It would be unnecessary to do that anyway, since VHT modulations are a superset of HT modulations with just some header differences. On another note, VHT already supports bigger A-MSDU limits than HT in the code below that check. - Felix