Received: by 2002:a05:6a10:c604:0:0:0:0 with SMTP id y4csp2655349pxt; Mon, 9 Aug 2021 06:01:08 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwwCAsvHli93tFfHLStCPKDN0/BJFa/tniWYhosYR9IP/OgAGNN8qUosqAC65jmAqqfweCP X-Received: by 2002:a05:6e02:1a03:: with SMTP id s3mr259474ild.63.1628514067983; Mon, 09 Aug 2021 06:01:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1628514067; cv=none; d=google.com; s=arc-20160816; b=kx4CfmE+rjQobjHSXxvXsC7btJ3yh9lg8EKglq0vdCYPgDUynh9q8FHvJ2qKY5NjGJ o9hR3SvREvn5vWdwJHRxsZtHjDSYIzU4cpeeRehYqmpXS9urng3H/fMJ2NIt1BmjkdIE EKLnHKwY15AID55yA6KnQ94IYMJiJBe5eNpVGH4qJp5MjtdKzrnebEX2vuDWTHo/8+mH XyTbFeAibgwOvBAXQXSeAhaVgWiFvf9o4pxjVtlpXlG7N1Thc93K4M3bXRPyY8HOBRKB MWY/EMH9htwWXh/5WUT6XW5sVrtEswIzn9uoHSo9pTjxkq2TUGn51nK0F5jUACenonyz QSzg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=mla47bH2XlgsY9xb0/RbGlrhtAWBEInMxJuEarjH4jk=; b=oGAUWctzIiNokG9XaFRUL+IOifWLKkN8jmryW0A/pp/ZUDGhioEYyQpYQit1D8tKgY yoL7Q9dUZgwGcgWkjGJ4sZj1BT6rLe9cuEEjsHfPtheQjbNHPZ0HhmTVQIBaiyTfUV8P I20Uu3miD8mjlye28SNvtxuT+T3ONu7dGHCtp1DSQY2UZzSFJC8shgnQ2qJDEr9liIsv ooDDfN3lTkADvt1Uq//wdRIHfTwtRyT8m/OINsADy5j96g92ZKU9uZ3MKgztKDSDUEGG DcZPA0vhEbLBn0ULxrI/yW8rJxYG4gebQrrq+IxUmXA17AiF1LUN0PoMeuH3wPaPTtbt Wc/w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@canonical.com header.s=20210705 header.b=CTtDhpTW; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=canonical.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y20si3517052ilj.24.2021.08.09.06.00.49; Mon, 09 Aug 2021 06:01:07 -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=pass header.i=@canonical.com header.s=20210705 header.b=CTtDhpTW; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=canonical.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234099AbhHINAA (ORCPT + 99 others); Mon, 9 Aug 2021 09:00:00 -0400 Received: from smtp-relay-canonical-1.canonical.com ([185.125.188.121]:48212 "EHLO smtp-relay-canonical-1.canonical.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232963AbhHIM77 (ORCPT ); Mon, 9 Aug 2021 08:59:59 -0400 Received: from mail-oo1-f72.google.com (mail-oo1-f72.google.com [209.85.161.72]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by smtp-relay-canonical-1.canonical.com (Postfix) with ESMTPS id 66FAC40641 for ; Mon, 9 Aug 2021 12:59:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canonical.com; s=20210705; t=1628513974; bh=mla47bH2XlgsY9xb0/RbGlrhtAWBEInMxJuEarjH4jk=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=CTtDhpTW4NomweVopcnNqKAimEaqO31EfDDygLiiUaKBlCmDvdKxhBtwB/GuXWySr F4caHA2Q+PPbKhR7FCmnDlE4P6wWF+DIygQ+MDnnDklNqPjmBt/ckbo8r3mLqDJce1 FPbduoaDWecZMOuKTYbnBKxtlodXBl3Y0iWCqQ1Jw8jnAw5sPrv5qA1HASJLDf6bnJ +k6JaJI+pmW0MlOZMr2vSLzSKVhdaIi1lNsIp+X5hy+PWe8FQsiH+T0cQ5TuMOAuTi ouRBr14Zi0x/Ap/zfoZIL33hyyZvB/wcBhgVEpDYdYpQmHArTlxAYQgjx5Dd5dzztm rZmWFto+XKmNg== Received: by mail-oo1-f72.google.com with SMTP id z75-20020a4a494e0000b02902860a17bf56so4783996ooa.11 for ; Mon, 09 Aug 2021 05:59:34 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=mla47bH2XlgsY9xb0/RbGlrhtAWBEInMxJuEarjH4jk=; b=Mn3aMhcIJZ+5ESHNae0jaR1neqG2b+ICugjNhQi5ZPkzhU2fu9COlK4sjaJgA/e92W xKyN0lTY+6m3g9uTE75SIygWzo+ESn01KkHF8FK/27qVqVos8Dt2JldT4FYu2VTXi6WZ wknhMd9Km3pJzROjmPg1lXWzsWlXxElqnGgk4QsBlOOIofV3zjMpYEHUuuYO35Dc6ZZV 11iwngv8oUr6JrVOS8Dt/yghHgksxS1IpwRmqaikruLg5SkpcMfDeFfD0wLM6R7kfOnc GRnsAm0lc7v3SRrA7l1ks+QulBPrF97du8naCZTDtUFWX2crPFk+MrNplEMAclyyS7cn 5OMg== X-Gm-Message-State: AOAM533Ktx1jdFqHMuRSIjoA0Y1pHprGTSY3ZlbL+bHfQBR/ZyMZBrkO pOSAtrMzndNmN2dPLBpPvdT11F88YtBEY7+yoX1FWSOHM85zYjrnKeLygeAbRc199aNIhR8F1Kc xX/WlHtNpHXSjWQ2LY0yWVOBCRjK4I2cMXO/kmoxEdPvmYUAeyU8KB4Kqao84 X-Received: by 2002:aca:4e94:: with SMTP id c142mr12612605oib.177.1628513973255; Mon, 09 Aug 2021 05:59:33 -0700 (PDT) X-Received: by 2002:aca:4e94:: with SMTP id c142mr12612591oib.177.1628513972997; Mon, 09 Aug 2021 05:59:32 -0700 (PDT) MIME-Version: 1.0 References: <20210804151325.86600-1-chris.chiu@canonical.com> <26f85a9f-552d-8420-0010-f5cda70d3a00@hqv.ch> <87o8aabvpj.fsf@codeaurora.org> In-Reply-To: <87o8aabvpj.fsf@codeaurora.org> From: Chris Chiu Date: Mon, 9 Aug 2021 20:59:22 +0800 Message-ID: Subject: Re: [PATCH v2] rtl8xxxu: Fix the handling of TX A-MPDU aggregation To: Kalle Valo Cc: Reto Schneider , code@reto-schneider.ch, linux-wireless@vger.kernel.org, netdev@vger.kernel.org, Linux Kernel , jes.sorensen@gmail.com, davem@davemloft.net, kuba@kernel.org Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org On Fri, Aug 6, 2021 at 8:32 PM Kalle Valo wrote: > > Reto Schneider writes: > > > On 8/4/21 17:13, chris.chiu@canonical.com wrote: > >> The TX A-MPDU aggregation is not handled in the driver since the > >> ieee80211_start_tx_ba_session has never been started properly. > >> Start and stop the TX BA session by tracking the TX aggregation > >> status of each TID. Fix the ampdu_action and the tx descriptor > >> accordingly with the given TID. > > > > I'd like to test this but I am not sure what to look for (before and > > after applying the patch). > > Thanks, testing feedback is always very much appreciated. > > > What should I look for when looking at the (sniffed) Wireshark traces? > If you are able to verify the difference by the air capture, please refer to https://imgur.com/a/jcFQTc8. You should see more than 1 packet aggregated and sent from your wifi adapter's mac address, and get the block ack response from the Access Point (also shown in the image). If TX aggregation is not enabled, you will only see 1 tx packet from your wifi, and get an ack right after from the AP. Please also help test if there's any possible regression. Thanks so much. Chris > From my (maintainer) point of view most important is that there are no > regressions visible to users, for example no data stalls, crashes or > anything like that. > > -- > https://patchwork.kernel.org/project/linux-wireless/list/ > > https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches