Received: by 2002:a05:6602:18e:0:0:0:0 with SMTP id m14csp2121115ioo; Mon, 23 May 2022 10:30:46 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzSuB2yuCCyTR3gxaXxaZIKyw3kCouNqxUraemGQqcLcVDc5gg2gxx8YlygH/fooQgS+GuB X-Received: by 2002:a17:90b:4b91:b0:1df:e7c7:c9f0 with SMTP id lr17-20020a17090b4b9100b001dfe7c7c9f0mr75007pjb.119.1653327046606; Mon, 23 May 2022 10:30:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1653327046; cv=none; d=google.com; s=arc-20160816; b=p0tMUXjKxM9uHzD0kl6i68rXeUtFN5IwhT4JIT2xKPHXw20422q+1T2vr17MlNZSdB G+A3ff2Mr5EbfICBfZO7fp+BL8gppE1YOJZG/12Y2htpHfqjic4YFBzKRvOy0fAOrTxR AF2VYz5QpBnQTn3q2Mee6plQkR5NghwLeisnyUQZ6XKvnqkTJXfStk3DEGa+6F5E/GY8 UTvqs5DZ/nYGIK5KFfsN8tWX42jHdLq/x3+l/QPCE5Y7n4nJm+TsjaCMpFgoY1HgTuVH EAIX75h7k113q8atrIv0LXMDAjN2PWH+tPu/wd389gxdmvnmAVQ3tE4nUplPLPU7UmFE ySbA== 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=aLfUcrLcAwCQmIi45s+hjeyPUW6AjLstb8tUQ/8hX4E=; b=bbskmZnhkTl+I1PuIhHOTLUhmBSWk2PIMHsSMeEdJh66zd/SWcqQjPYzUDffU+HzMt mQkcSZdgteBcGa5VesiICgXvlMnT2j5RDCsmESUaEyPnkUlf0ZXinyO3lNSKaexMfkct vYS/l/v3sIfm2I+/EBS0urmUv4cqmhFYu2ZuAjuKxcamuHOK+zugMFF15/7AKrNVAoX2 /dw0Mz7aYWxiE1qiiA5gZosEYGqPrAr/ier30z5QA3wbHjIosjf2w4/X2jBttXVkvhTT O6sWrpMbqFPr2lPlUFmsS2F2dRiDBpXvFtbP5GKrFtXTGu4887y6gr11JLFlCgw33ybg 0ECA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=L2e23sNv; 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 l127-20020a622585000000b00506bc45aaecsi13822425pfl.371.2022.05.23.10.30.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 23 May 2022 10:30:46 -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=L2e23sNv; 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 251C51E3EF; Mon, 23 May 2022 10:30:31 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241775AbiEWR1G (ORCPT + 99 others); Mon, 23 May 2022 13:27:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37706 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240314AbiEWRQP (ORCPT ); Mon, 23 May 2022 13:16:15 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9E43F6D971; Mon, 23 May 2022 10:12:56 -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 ams.source.kernel.org (Postfix) with ESMTPS id D7411B811CC; Mon, 23 May 2022 17:12:50 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 35FF6C36AE3; Mon, 23 May 2022 17:12:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1653325969; bh=KxUHMxCtT1XT8i2oOCZgReXE0uqJrutH4S+iLI9/Svw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=L2e23sNvXk6s6VX7Wj/idXzzUcXPGija2MfqHsic6psYjlpi80WDDK8ulXTroBFEt xS3LRlDqlCZxs5uitfz75UAg00MJfagHoC5jNkHpWEwKUET4zdhYdHyxHDlCfd3rYO vq7GQnY1MUoduXsRA05SP+WVQfi+G4SN9bAQJwmU= 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.19 38/44] mac80211: fix rx reordering with non explicit / psmp ack policy Date: Mon, 23 May 2022 19:05:22 +0200 Message-Id: <20220523165800.318947808@linuxfoundation.org> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220523165752.797318097@linuxfoundation.org> References: <20220523165752.797318097@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 f30b732af61d..3598ebe52d08 100644 --- a/net/mac80211/rx.c +++ b/net/mac80211/rx.c @@ -1322,8 +1322,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