Received: by 2002:ac2:464d:0:0:0:0:0 with SMTP id s13csp3681343lfo; Mon, 23 May 2022 11:15:31 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzEx67mT97jPeVNhC/oKuum6PoHb5yWsil6tOK/XThfNWA4K7uIPV9UPRPPBKvmunx5Xvxp X-Received: by 2002:a17:90a:6c66:b0:1df:9399:9189 with SMTP id x93-20020a17090a6c6600b001df93999189mr240162pjj.179.1653329731365; Mon, 23 May 2022 11:15:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1653329731; cv=none; d=google.com; s=arc-20160816; b=CXHQr+hb3CoiHl+x6FZpZdAGWgxsQPJMALQCPYaggiOHzPedbzhthG8G0T1mrzUtwW h/Q5AGYi8EUa/Rcex0G8T9gMkr/pa9S8N+dJiZDZ/RbyOnIx2IdESE9ZQ5SptaXtLXwg lED0alk4XIVkCuY14i3t7zThCs73Vs5C5jdaImTA/gzlcdlqXcZPj2Chf50NYKNjtZhz wrOaoURQNW3qDHAta7yo2DtWPIP6n/JCzxbH4IpBEMrtLKk4r1MrmIgqDgmYlq2GfIVO p25SSpwaJ13r/DllSVrreVOpAglByGjlMWcdGy1TQ/hSDSEeGrYopRR1Ehu8Nahs7qfy jV3Q== 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:message-id:date:subject:cc:to :from:dkim-signature; bh=p6KKtKRkq7tcIuC1GbMDgHrRrhV7H0v3bHgTr7PjrC0=; b=TzPrcnqLwQNC2MNaeVrSDoq1Zm8GFGbgcmOPBMji/kAh4XCVqT+slHlDYv/TE/XCEx ZrcghPAm2lwbW/OsaOzIzIgwBtRJllWsylv26UPV/0NTeDhr5VDUT27o9mVitwO5lF0O Dyp4ERZwIO2MJJwgB83e34qyeKWVy/heU1x3GzmH0E96Nfdy7AdttFo7C8AukslZEhyD q/yfgnSYOcdIjEKAcWA+IozzMKJuHhhvTLmy8dqmHFunV9cHMYjHakPoD63MiqpYrU5T qb47X7wSRhirmh7UJEOLdp6CfXnPPExyvjN69uF1AaODe68Iyoe1vP2Vh0gMaKV8wTTC iQjQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="N/B/o8AO"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id qe11-20020a17090b4f8b00b001df6e5b9c77si15035pjb.78.2022.05.23.11.15.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 23 May 2022 11:15:31 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="N/B/o8AO"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id BCFD6154B21; Mon, 23 May 2022 11:13:09 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S245111AbiEWSHh (ORCPT + 99 others); Mon, 23 May 2022 14:07:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37576 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243793AbiEWRi2 (ORCPT ); Mon, 23 May 2022 13:38:28 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1F221939F4; Mon, 23 May 2022 10:32:49 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 0A83D61274; Mon, 23 May 2022 17:31:52 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1401EC385A9; Mon, 23 May 2022 17:31:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1653327111; bh=1qHNBJuS77VJ2N1x92VkPHw4z8C7RONAALqWccL52UU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=N/B/o8AOkHbcjd79AnCJc+AF+hLEY3DIvOtk9+ZDYmhU2YweUadTBJVO4eKWTMj6G GRa6aW4ddoo/3k63rc0YrcRIxUkt8BdPDvSR3PMShwBMwWiq8eXh3wqzkiFwsJCzzy UocwZJr44x8aMs5ncCYZC38VCBwcczVeU1u6hsZg= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Felix Fietkau , Johannes Berg , Sasha Levin Subject: [PATCH 5.17 135/158] mac80211: fix rx reordering with non explicit / psmp ack policy Date: Mon, 23 May 2022 19:04:52 +0200 Message-Id: <20220523165852.712438047@linuxfoundation.org> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220523165830.581652127@linuxfoundation.org> References: <20220523165830.581652127@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=unavailable 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-kernel@vger.kernel.org From: Felix Fietkau [ Upstream commit 5e469ed9764d4722c59562da13120bd2dc6834c5 ] 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 Link: https://lore.kernel.org/r/20220420105038.36443-1-nbd@nbd.name Signed-off-by: Johannes Berg Signed-off-by: Sasha Levin --- 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 48d9553dafe3..7e2404fd85b6 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