Received: by 2002:a5d:9c59:0:0:0:0:0 with SMTP id 25csp2147096iof; Tue, 7 Jun 2022 21:19:16 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyYdhu6ug423ZTpltWDzJYQAOqXCd+hkttKmcuHLmrITNXUZhybF8Lz+16+3P9p/1b3bCEC X-Received: by 2002:a05:6a00:139f:b0:51b:e21f:b72 with SMTP id t31-20020a056a00139f00b0051be21f0b72mr25519502pfg.75.1654661955982; Tue, 07 Jun 2022 21:19:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654661955; cv=none; d=google.com; s=arc-20160816; b=I5Cv4jxBCAu0+GmfkmnjpqtY3o3WLn1N8yuxLTEDxlEs3m33E76C5roBYCfoFPIaDY Lkm+ZDDdpChM5U3c2Ds9DMfe6SBiavgEnwvLBZ3OIT/LwhSoiWjvkQXfEy/+AxvNV/81 IjukLpuXyEqnk036wi5QxfTepS9qHdsBiYESNasGF4uEfyqzjmH1ch6Hj3DHpNyh951R nZhQyQfsxs5tyxiw9dXu85iTKeEVbwfFD2hKVdW2IIx6KDGcn3SOZP55chBV/iiPQzwA YIpyAyfLjozXD6PuwG+8OWi+koIMWn+WI76LI475mQJ1wtvgrxK3RGfe5+IcJ44G1vNM yWxg== 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=KGYh51Arx1R+xCn97L/dlRGMN8PNghdfaUZ36cgIhM8=; b=cdcRIBQ+0Z1Qmb3bsQKzVVdsiPT7pl64PjF60b0eVyJjq4HH5F0v+lj37wh6ZfvpH8 GCtTh/I8Nn798gH9BtbX0RsdSdi7F2vOthsnFVZgl8WOGjM4kokx9gOPuWi77+p7YM7i FVn5fxRtjM3qOwiQ89UFWPAO/F8kKBq+f4z8RaZrb2rP7ZOQbwH322M8V2Ho4UKKILU1 sGWWBiVxTN6qtkwubFeywwwoNVM4cNmzKx2Pi95D+VKUZflWfTorThlqwrUWb3/qqB53 mpuTvs1Ge7i7tN/VLnF0Y2GQ71CXuTBcVaZW/cBmjx2AlsDJZeiWW7q1iaH4Lgb0Q1FJ MmtA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=Pdy3JSqb; 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 h185-20020a636cc2000000b003fcb49dc6e5si24832844pgc.19.2022.06.07.21.19.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 Jun 2022 21:19:15 -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=Pdy3JSqb; 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 60B3D1CBD3F; Tue, 7 Jun 2022 20:50:24 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1378657AbiFGVJS (ORCPT + 99 others); Tue, 7 Jun 2022 17:09:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48834 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1359207AbiFGUJj (ORCPT ); Tue, 7 Jun 2022 16:09:39 -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 3A41216ABDE; Tue, 7 Jun 2022 11:27:06 -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 EEC72B81FF8; Tue, 7 Jun 2022 18:27:04 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 508F5C385A2; Tue, 7 Jun 2022 18:27:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1654626423; bh=/5rQ7ewDoC/Eso2+1Trr7JRLy65QvGDpVxwx+TL4Axk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Pdy3JSqbAkvqkRjl20wwlufD30PxjmwxuQd2C+HvspgtHZz/odxxsWlde1k+xBm1Y tKG4zLGeaVCO2vF38tquM453uKSLnzr/UCQ7F8pTIIruMsmeFvzE1CC0uR99AEjxr0 jQqh2SlSpYStka5u6QFvBCslV3h71U/vx/TP6kiU= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Felix Fietkau , Sasha Levin Subject: [PATCH 5.17 372/772] mt76: do not attempt to reorder received 802.3 packets without agg session Date: Tue, 7 Jun 2022 18:59:24 +0200 Message-Id: <20220607164959.976474564@linuxfoundation.org> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220607164948.980838585@linuxfoundation.org> References: <20220607164948.980838585@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=-3.1 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 3968a66475b40691c37b5e6c76975f699671e10e ] Fixes potential latency / packet drop issues in cases where a BA session has not (yet) been established. Fixes: e195dad14115 ("mt76: add support for 802.3 rx frames") Signed-off-by: Felix Fietkau Signed-off-by: Sasha Levin --- drivers/net/wireless/mediatek/mt76/agg-rx.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/net/wireless/mediatek/mt76/agg-rx.c b/drivers/net/wireless/mediatek/mt76/agg-rx.c index 72622220051b..6c8b44194579 100644 --- a/drivers/net/wireless/mediatek/mt76/agg-rx.c +++ b/drivers/net/wireless/mediatek/mt76/agg-rx.c @@ -162,8 +162,9 @@ void mt76_rx_aggr_reorder(struct sk_buff *skb, struct sk_buff_head *frames) if (!sta) return; - if (!status->aggr && !(status->flag & RX_FLAG_8023)) { - mt76_rx_aggr_check_ctl(skb, frames); + if (!status->aggr) { + if (!(status->flag & RX_FLAG_8023)) + mt76_rx_aggr_check_ctl(skb, frames); return; } -- 2.35.1