Received: by 2002:a05:6602:18e:0:0:0:0 with SMTP id m14csp2127825ioo; Mon, 23 May 2022 10:40:36 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxjwshxoKyP4CGVElKAR0uheLMrmfNnrcQCbLQimjeJbBTDw9upjr23hU5RYkdgqzy17lq1 X-Received: by 2002:a63:5357:0:b0:3f2:6210:f8e9 with SMTP id t23-20020a635357000000b003f26210f8e9mr20551273pgl.158.1653327634024; Mon, 23 May 2022 10:40:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1653327634; cv=none; d=google.com; s=arc-20160816; b=mva7AuddT3jYSDw8q2qHYDGElEwARyMFGkGOsCa1WInz8HPgdgBGfKi/h5u/HefDWK d1YpO5Dyik7/znAdB9NFb1QKuY1IUIneVBwWgdTkGPySzV83zqEKvuEJq/cho+mZytUS /MmL6GHH7HbM9LrlWPya2aXyc5Et0ZopOPj1kTXGoM8f2Q1BoPsedjoQ7fZIN8aKndfE QzZwvlgdMO+9CKAGijgMvG0b3uVllHDc9ruUU4/IB+YYOfSPQjQXmloa5I4RGrzmUzsO Li2U8CF804Xaz/ncRws15o/opG8ecqWZmar4GnAZuEXk3yRWeKUayDKClQSzLxw6tSGm NG3w== 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=Z5dkQkOL4sMDt7muQ/EEAXisycIxxRSOYPxXHGtl060=; b=pGR6Y/EQ5c/V8ptnbLQA3XisvIIrE3TiPVvgkdGwHUUUOhs3HjAUN2/VKmBqS2Cdhb uKn1gatxPJtPjAFe3F/MRXrGvDdIek//9Dn4jflK/Q49lqAP6IurxL4H0Gwv92XoeK5j xdUwWwTTDib0G8eCEjATNApaIMtkIIySGcg35z7LTpVpRRtXGL+hnj/qEPhTDmlCkl2T mvMb8Y0xg1mlJpEcKPIaprPw1JOpa38Fjyy4Fu6PGphuGGO8ngaZSDhrYGmWpjMGy/MY 1eUEEI668a0jH1ePHcBk1yhpl/o6wyyy+p0exyYk+hIrHpYwgnps+tJfqMRNkYc8Xzw2 XUUw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=dldvmFkz; 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 u17-20020a056a00125100b005061eb330a1si16699769pfi.351.2022.05.23.10.40.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 23 May 2022 10:40:34 -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=dldvmFkz; 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 793C7939A2; Mon, 23 May 2022 10:40:02 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242900AbiEWRhu (ORCPT + 99 others); Mon, 23 May 2022 13:37:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43404 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241577AbiEWR0v (ORCPT ); Mon, 23 May 2022 13:26:51 -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 BCAD075216; Mon, 23 May 2022 10:22: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 ams.source.kernel.org (Postfix) with ESMTPS id BA567B81227; Mon, 23 May 2022 17:14:59 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1AE47C385A9; Mon, 23 May 2022 17:14:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1653326098; bh=3GySsgKbj9YOlHOOORgomtwxeGx2+Fwp1qtu2bu+WUI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=dldvmFkzSHH0OtoD7g4B2WatdwFCOHLKWVH1hDiAicToiq9Xrq1NbSAOvRKGap6Lw e1Fs+wd7R7uaBQghFpIR81XASo+ULnoH4vR0U/TlK4LxTIfsxUqOmANS5SVWTQJpUt +PjNn3vRgbhvuCqsc5yHW6GhCFythaQ+jChCbGsU= 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.4 54/68] mac80211: fix rx reordering with non explicit / psmp ack policy Date: Mon, 23 May 2022 19:05:21 +0200 Message-Id: <20220523165811.420451667@linuxfoundation.org> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220523165802.500642349@linuxfoundation.org> References: <20220523165802.500642349@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 ab91683d9459..99d5f8b58e92 100644 --- a/net/mac80211/rx.c +++ b/net/mac80211/rx.c @@ -1400,8 +1400,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