Received: by 2002:a5d:9c59:0:0:0:0:0 with SMTP id 25csp2149695iof; Tue, 7 Jun 2022 21:24:39 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxfVS6GaxangVrE1V4l8/U+wfoZs78YvpIftvDyp2y4ST6s84SYoIZ24Uqjay3yqB4p6Sm6 X-Received: by 2002:a17:903:11c6:b0:167:90e5:59ac with SMTP id q6-20020a17090311c600b0016790e559acmr7419166plh.143.1654662279129; Tue, 07 Jun 2022 21:24:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654662279; cv=none; d=google.com; s=arc-20160816; b=RWd/zphMJu5wmewKaaTPWvtGj5snl29sXRZ6hk26LBujXX85BzhgoICq2LfUmnc4UZ KvCx2AexJQFwk97/WVLdl+nFDsOUT0iOifuoE52APgd/Z5G84r/xPdFAkrysdTelDZVL 2Tuxui2woP1UWTvwvmjM3ojvl2FCi0p4CkKgG1QOxEGSjzZrXtwotjExITXLf3I59xzx kahwq3er5cONwPe0Dt3Rqo7UjyyiiYcg69nMeyaxianguGWsliBwNEcTdOzMJERqGYqX qVZ3wqTd0ngIJoDu4Nnogx/K+guUMf3+P9e1BV9GIHLO+urVCUaxZWVyUmiIrJzdp6lR aVEA== 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=eySMgyyznkY4CBcEr9m71lujYyhh7BKHUo02ytOwVgwUKeiZPd0HtVZzosxz+MFYa3 z2drU0CaRJjXjy5ENjFxOquvDkeJeSsFZ3r7t6lurAxCUEDzmKRcynp7XyAwP3f4s7ZI ntz2nGNQcRMqFamkBMo5ecibiyHchQGMdZy/0lYQAJRkRAsqEgk86uKL+DWYmPELmtcu xHwo7XFbwSng4CcTNEOOiJs8kbagmRf/B0E9eMMS9aBAeUw9cO1ckoS0+j7q7Ela0uut 2h6cYwYMMuyoyAMw+4X3iu5kIpa3B7tS/OX/R26OWYdPVldxB3ZyLsC6plbqzAcZ+8Bq JFxw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=uWwFOnHr; 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 v63-20020a638942000000b003fe3b8c6ff1si364919pgd.154.2022.06.07.21.24.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 Jun 2022 21:24:39 -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=uWwFOnHr; 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 817A36E8E7; Tue, 7 Jun 2022 21:10:25 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1386020AbiFGWrr (ORCPT + 99 others); Tue, 7 Jun 2022 18:47:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45624 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1380852AbiFGVjL (ORCPT ); Tue, 7 Jun 2022 17:39:11 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6314B23BC9; Tue, 7 Jun 2022 12:05:43 -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 A7113617EE; Tue, 7 Jun 2022 19:05:42 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id B861CC385A2; Tue, 7 Jun 2022 19:05:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1654628742; bh=/5rQ7ewDoC/Eso2+1Trr7JRLy65QvGDpVxwx+TL4Axk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=uWwFOnHrn3o9MAGRhboqj7k7o6MB52zMpxZZtvFR/1RJZ38PNq338ZYA9jASUcZ66 QYPjy4/JIIKf6EFVtAJRBwSDtjJntsOaUJfSO7xlsOUf+qlkafN5577/OfxCh8gFcA XvXer38aVXh96v0cSBxJ34OCQXWzgKPLgJuUEN/g= 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.18 439/879] mt76: do not attempt to reorder received 802.3 packets without agg session Date: Tue, 7 Jun 2022 18:59:17 +0200 Message-Id: <20220607165015.612436612@linuxfoundation.org> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220607165002.659942637@linuxfoundation.org> References: <20220607165002.659942637@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