Received: by 2002:a05:6a10:6d10:0:0:0:0 with SMTP id gq16csp39161pxb; Wed, 20 Apr 2022 15:26:44 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzUIeAdFHVoLqrL2zrdexLXQ8xVIPh8RU8yyVLG2EqhdIiIXzepnCZ+sqbZ7S16i3iMqFa0 X-Received: by 2002:a05:6a00:3016:b0:509:40f9:7d64 with SMTP id ay22-20020a056a00301600b0050940f97d64mr25681179pfb.50.1650493604566; Wed, 20 Apr 2022 15:26:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650493604; cv=none; d=google.com; s=arc-20160816; b=fPTfDUjoImuNTxCTcwsNwBsU5bTkWdiiX2WjvdFpQKnof01+yYm0hTb70jv4t/Id+9 XLQ7+bmVhyAXXqsbwmJ+pCQs2AYpa9VZWeYQYWBPlh7BwA9KFs+CEGE9bVZl3hOkrB2b zTh5YwE5n1WH+CQRESSy36ZT+ePBIyc/xhtvYPkVO8DJYMMDfAFwmnNdffeZEdFNx3WZ tE0dX2IeNOpgN5DkHE9BmjEviPOJ+miVAHMeo+HJ9bBbhcTsnOmjgJRfvRodyhsRWl+r Sr0jZ79La9TEBxZ9IXNvoBLNDgHdklnmA8sLpqT8ddOf2C7zRPwD+cKJndDSZhiuPMur 7cSg== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=Af45B7DoZ2770J/ix8oHWnITPrAs/ibbfX9cw/Q/Fag=; b=hU0CZKpbmDs6dLeKi5KGpNZslKjrEFlF2f3L7ucWp5tfk24Y41BNKdxY4+y94A3+4r rHtmvnH038kDzEClb9JImhNGgt3Onzpi+cehGE9iFnZnSTJ+PcdE7+XLcxxKetRoLjwC MjNcBzleXVPA+uYDRDnsoIfgDvtp+n78pIWpaaadWZnNJHakphrfbza5BdqrIJm2sUYw FbolMPbTXL5qitiljIqW0nRXW7u/MZcGJyxOAyWXKdpPTLcdiroKzOyv/TbGPGC+MTr4 1qjxFZEkHF4IQyduWJFb29IYEN6lgMrwgqL8zyQgpBSaaSxRIWfyzU7sw2L3jlKA1oXb LZ9g== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@nbd.name header.s=20160729 header.b=RDYbc8vb; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id c18-20020a63ea12000000b003aa67dc6efesi3117755pgi.688.2022.04.20.15.26.28; Wed, 20 Apr 2022 15:26:44 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=fail header.i=@nbd.name header.s=20160729 header.b=RDYbc8vb; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1377829AbiDTKxh (ORCPT + 66 others); Wed, 20 Apr 2022 06:53:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53778 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1377827AbiDTKxd (ORCPT ); Wed, 20 Apr 2022 06:53:33 -0400 Received: from nbd.name (nbd.name [IPv6:2a01:4f8:221:3d45::2]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8B08C4092E for ; Wed, 20 Apr 2022 03:50:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=nbd.name; s=20160729; h=Content-Transfer-Encoding:MIME-Version:Message-Id:Date:Subject :Cc:To:From:Sender:Reply-To:Content-Type:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: In-Reply-To:References:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=Af45B7DoZ2770J/ix8oHWnITPrAs/ibbfX9cw/Q/Fag=; b=RDYbc8vbJYR7r75dJ2eozk54Em 2NVPXl+Hu09J+v2kUwai8ps2aXWbSJZSZQAab1XEoDMUQASyKRExkLn88CID8bu5gU9bhtn0uZIaG 9DKqGeVDj/42sUPIhhEBUDls6TeZJzweqZXK23aAKXXGsrtNYv3AX4Allds6TmXYd2v4=; Received: from p200300daa70ef200009e86881025829d.dip0.t-ipconnect.de ([2003:da:a70e:f200:9e:8688:1025:829d] helo=localhost.localdomain) by ds12 with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.89) (envelope-from ) id 1nh7uz-0005HU-RJ; Wed, 20 Apr 2022 12:50:41 +0200 From: Felix Fietkau To: linux-wireless@vger.kernel.org Cc: johannes@sipsolutions.net Subject: [PATCH] mac80211: fix rx reordering with non explicit / psmp ack policy Date: Wed, 20 Apr 2022 12:50:38 +0200 Message-Id: <20220420105038.36443-1-nbd@nbd.name> X-Mailer: git-send-email 2.35.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_NONE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org When the QoS ack policy was set to non explicit / psmp ack, frames are treated as not being part of a BA session, which causes extra latency on reordering. Fix this by only bypassing reordering for packets with no-ack policy Signed-off-by: Felix Fietkau --- net/mac80211/rx.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/net/mac80211/rx.c b/net/mac80211/rx.c index 959a36fd658b..3c08ae04ddbc 100644 --- a/net/mac80211/rx.c +++ b/net/mac80211/rx.c @@ -1405,8 +1405,7 @@ static void ieee80211_rx_reorder_ampdu(struct ieee80211_rx_data *rx, goto dont_reorder; /* not part of a BA session */ - if (ack_policy != IEEE80211_QOS_CTL_ACK_POLICY_BLOCKACK && - ack_policy != IEEE80211_QOS_CTL_ACK_POLICY_NORMAL) + if (ack_policy == IEEE80211_QOS_CTL_ACK_POLICY_NOACK) goto dont_reorder; /* new, potentially un-ordered, ampdu frame - process it */ -- 2.35.1