Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp3027690rwr; Fri, 28 Apr 2023 22:27:24 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7KQQVgO9PU52hRs2JXHvrqQEpEDb6sjtZZjr/iuOP58ar8v41t2E+Kf5xiwY3UD/I5NlWe X-Received: by 2002:a05:6a21:6da9:b0:ef:f20b:2be9 with SMTP id wl41-20020a056a216da900b000eff20b2be9mr10172806pzb.49.1682746044442; Fri, 28 Apr 2023 22:27:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682746044; cv=none; d=google.com; s=arc-20160816; b=jrd/czTqT5/m4z4EIf1/hVd3Bog809KAq5QzZYaROY077kwIAiKN2M1W3dw7lyKCsN u8kl4ZWDyv3UT1Q83lIei+v/W6xUVGJ7eTFtIjQz9HiqNw9xhzFm7ASPNmG8TPcfltvZ m5Y+oqNgedppHe3Fvr9s9jYfBP/Juty7BCLkAQyZRG1xokXXrnPTo5blzzB0n1aSX5jc 61Quii3uVY/0xRGFdRX5LL+1DjNemzKA2AKhSOIzZ9Bmmm6YmxkQLbS/65duLhTXhAZn B8KAWe+0sKWBCXgZU0FD/N0ZHUmw0x2xdWSJS9elfBRWD/hSP0BJ9XLlrHUS/Xz1ENAZ pgaQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent:message-id:in-reply-to :date:references:subject:cc:to:from:dkim-signature; bh=m2p214762eKzbieQ/IBF8vS2+Iuv1PvNhm2g+DlAv00=; b=b+Ald3J61iBP5mdJ7BsIND9aJSM7vok885u4gQuMcnzx6wZPe7hztgTIFMjvqd3aoq eMAo3q3D9Wo+XLyWM106VGYiFImp8qnFqHhgbQ8/Jt7an3uJpLac3USRclGa/uEkJxuK 3C8HPAUhk40XTiZ+rj1amxZcIlEesQK3rdaPa9YidfxXYOoasjzzs2MlYgAyvho4Il7R 3wxxiwblRMkpE4BDNsPthorgJ0Aa/noYDhKlgHbdTBdUkDZ5+rMmdoAdK5+yBjGiCmcQ Zof2IGEBPaaSUnGFnfJVuaVU4FZQO7/Ljpp3oMvFAGoVyZKgxBMWIfneIce0JE9Javrt yMtA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=AkqJM+UZ; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id i8-20020a654848000000b005289d0633d6si6127424pgs.498.2023.04.28.22.27.08; Fri, 28 Apr 2023 22:27:24 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=AkqJM+UZ; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230326AbjD2FN5 (ORCPT + 63 others); Sat, 29 Apr 2023 01:13:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34148 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229437AbjD2FNz (ORCPT ); Sat, 29 Apr 2023 01:13:55 -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 BA0D32706 for ; Fri, 28 Apr 2023 22:13:54 -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 54AA860B3B for ; Sat, 29 Apr 2023 05:13:54 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id ED7EDC433D2; Sat, 29 Apr 2023 05:13:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1682745233; bh=r5E86GbWJoJSovVkNlKmvYTpBcDKf9qHb5WfgtRMnPU=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=AkqJM+UZ3+8pA/CHuwgCuvbc2YkQmbPyqgdP/+NN815bVfV72mcp58BJoA9d9fDx6 l5eyFs3T8Rz5cIvnjxrH8xotThEpDRpVxxm9VU/g1pavD0qSGgwTEDxlc3VCrGWJ+d 0kb4gjThSlv0eg9RJyqh4ZxLiwibr5ZHG0QTUEXDh20+YbjL0j69wJdlvc/tU82twQ fSlv8WCDFeZkg23UiW5Y1UYFIPR+D+s/krPFlYHkcZuk2g7aGqgW8W9DypNp8h/dKl PktU8PXhLCDUEPzIHbRvimQgHSqQN14qHY3xarNpONueVkCaK02KB2+XeRLBklffgG JKqaimEqqaZmQ== From: Kalle Valo To: Baochen Qiang Cc: , Subject: Re: [PATCH] wifi: ath12k: Use msdu_end to check MCBC References: <20230427013021.29792-1-quic_bqiang@quicinc.com> Date: Sat, 29 Apr 2023 08:13:48 +0300 In-Reply-To: <20230427013021.29792-1-quic_bqiang@quicinc.com> (Baochen Qiang's message of "Thu, 27 Apr 2023 09:30:21 +0800") Message-ID: <87zg6rqnhv.fsf@kernel.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Status: No, score=-4.6 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham 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-wireless@vger.kernel.org Baochen Qiang writes: > We are seeing a very low TCP throughput testing with some specific > tools. This is because for sub-frames of an AMSDU, MCBC flag in > mpdu_start may be not valid, and as a result those frames would be > dropped by kernel. > > Change to get it from msdu_end. > > Tested-on: WCN7850 hw2.0 PCI > WLAN.HMT.1.0-03427-QCAHMTSWPL_V1.0_V2.0_SILICONZ-1.15378.4 > > Signed-off-by: Baochen Qiang > --- > drivers/net/wireless/ath/ath12k/hal.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/drivers/net/wireless/ath/ath12k/hal.c > b/drivers/net/wireless/ath/ath12k/hal.c > index 0ec53afe9915..980ec2024b37 100644 > --- a/drivers/net/wireless/ath/ath12k/hal.c > +++ b/drivers/net/wireless/ath/ath12k/hal.c > @@ -889,8 +889,8 @@ static u8 > *ath12k_hw_wcn7850_rx_desc_mpdu_start_addr2(struct hal_rx_desc *desc) > > static bool ath12k_hw_wcn7850_rx_desc_is_mcbc(struct hal_rx_desc *desc) > { > - return __le32_to_cpu(desc->u.wcn7850.mpdu_start.info6) & > - RX_MPDU_START_INFO6_MCAST_BCAST; > + return __le32_to_cpu(desc->u.wcn7850.msdu_end.info5) & > + RX_MSDU_END_INFO5_DA_IS_MCBC; New warnings: drivers/net/wireless/ath/ath12k/hal.c:892:16: warning: cast to restricted __le32 drivers/net/wireless/ath/ath12k/hal.c:892:16: warning: cast from restricted __le16 Please remember always run ath12k-check (with sparse installed). -- https://patchwork.kernel.org/project/linux-wireless/list/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches