Received: by 2002:ac2:464d:0:0:0:0:0 with SMTP id s13csp3688504lfo; Mon, 23 May 2022 11:29:48 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzoNHt9xpeGGXe5cs2qY1y+Yw/ZHsFQOVcOtgX6gRpyzzt4b+rO0P11m60h+Bqg6RwqZW6I X-Received: by 2002:a63:84c3:0:b0:3fa:321e:4145 with SMTP id k186-20020a6384c3000000b003fa321e4145mr7094499pgd.528.1653330587870; Mon, 23 May 2022 11:29:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1653330587; cv=none; d=google.com; s=arc-20160816; b=AH7fW9LFIK1K4tCtYARXjOSRplNHNoDcMXZDm9pyCll/b08d/QRCdlHqiOTf/Ru2PK JMNJFpTKffMUEiCyTZfRU2VwG/R/RYgbPnYrSUVu5siagxG74dMAasPuhONZCc21jDI7 +VXbbRpbjo4Ht95g+0M8NrHqvxvMDhSyabRLxZn+WsySyzK4+ugUKn8FAuwtAwAAT+TH AKhI0UsCFhKA3jVGt4a5a0cxpd6BSMEPdsMXDsZqWDCGTYbfpvmj2ih+Qic6ZJ7+/1kg KxSpAzbFCvH67i83hMUb6KE+UqJjMyHLVOWw7ilqDQxX+ybgHb6jGE+DomXEQzgNXcvl zIWg== 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=sSZY/fdx2oAjXh2hq57D97GVmRqPwxlv2aINaU+/pXw=; b=i6Bjsq4NcTKAWFICMttsv2YItbhuL7GqAmXpmx7gOtu8NPN+e0XHkzUpGUNwc/3iDJ dL0ZGPEze7+pq0s4szdc+Ba3P5+SkTdfctVGXzMk/bH+GnWljwJqGQJI1nzJzZl+17Sj MJonIYv7eshTj4x30PzsMtTy1f73nd97JbvzObGI/ppao0Fm7aOI3DbgPwMhSNt2aoIt 7ZZ5RXbn/Rnd6r3SUfjKerDhXYfwpAxedLAfP80lrTxm+HWDsD4iztlAKJ090/8yRbiD g8x/LEkGas5lf/98BjXZKRDNdOMTRCKXmM3AcA1dcKKkrtEg3+FSIzhvKElnAud0u1oy H8Xg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=t2rvd0Jz; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 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. [23.128.96.19]) by mx.google.com with ESMTPS id a37-20020a056a001d2500b004fac74c8c8asi6152676pfx.329.2022.05.23.11.29.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 23 May 2022 11:29:47 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=t2rvd0Jz; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 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 C882113B8CC; Mon, 23 May 2022 11:29:29 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239570AbiEWRKE (ORCPT + 99 others); Mon, 23 May 2022 13:10:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34862 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239446AbiEWRJY (ORCPT ); Mon, 23 May 2022 13:09:24 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1B65C6CA8D; Mon, 23 May 2022 10:09:02 -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 66583614CB; Mon, 23 May 2022 17:09:01 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 692D6C385AA; Mon, 23 May 2022 17:09:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1653325740; bh=m849EUhZg4nLuzALYZCbDweGsu4jGB9ehoNUTrqXP4c=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=t2rvd0JziAANrhi96VI1vgcX+uTRc0BulyxOUnRYuxgK97A+ey0I4LVTV0+Ho4wix 7mOejWX6yc/i6Pft2+ejA43nmv22oiwfw58vBnm8LGK88IrjDZQXF4F3ni4xEXNxj8 D0rZMND8sQVwNXx4wB9f/avDfXxTbREIAQqCWfa0= 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 4.14 28/33] mac80211: fix rx reordering with non explicit / psmp ack policy Date: Mon, 23 May 2022 19:05:17 +0200 Message-Id: <20220523165752.970359604@linuxfoundation.org> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220523165746.957506211@linuxfoundation.org> References: <20220523165746.957506211@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 5a38be9145ff..e60a53c056c0 100644 --- a/net/mac80211/rx.c +++ b/net/mac80211/rx.c @@ -1204,8 +1204,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