Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp1624002rwr; Wed, 26 Apr 2023 19:00:03 -0700 (PDT) X-Google-Smtp-Source: AKy350Yz8I6oHgVUsCGZVOzkmccpwkQa+Vg90qEmP07AMB088W4feSmHnYJbamjp00+gj5OU+P9Q X-Received: by 2002:a17:902:ab92:b0:1a6:8ed5:428a with SMTP id f18-20020a170902ab9200b001a68ed5428amr22706550plr.22.1682560803530; Wed, 26 Apr 2023 19:00:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682560803; cv=none; d=google.com; s=arc-20160816; b=hb4fChBLCeD75nprxC1PkagWaTX+LAxoqseKz9sbnTRhCJDpDj6dE1lNLCPlOYqS70 POLmAcbjpW4W5w+6ohi9okVnReR9IXPCzWq6WLjYkuKyO7muGiDGGQMWaCPPOwtO3we6 jAANtABi49pxYKEVlMa8QiDV5Wbh37+5Yr9Ut9RAea7bvpkT/BpP9rj+erS3Y7LDfbNh zQvjtNztMwm4mCV+YKL2CMacvWIXRHW16aAqibZoK0kdKu214kmGGcaim/i0WkdM7FkP TM9KuhOtLGqWTyEiNC5TTziCAEDF5PbPr5ztFTq2iGL5BaTxPHqvIRarRKr8JnMBBoMc Jjgg== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=spfbNfwmiL3qg7k8mINHhVDrbQKuteH3oLy9EIuNsHw=; b=BPmC8cjr85yov0+2VtuQPpzZUbcje60njq/BiOMi35j0J0Uj83NcS/0Lm2ENPgEjwc Mro18ECJ6J7ipmYS6zh1TaXuzNJ1GmgpJRR2qLdK/BZ86L0mmGPgEn77Fuq5lSL8zmQe 6lV5Y412JZs35oBHG5SeUT5k4EYP+AsDeV+FVxcRBFI0IUS6hesfeIBkvKpzXqAnQWe4 PvicR1YuCJTLEd/dfhJdknQElCf8F5NlcH5/ko1qILJ3FzAdIJGoRVIzYT24lnYTe3dG 3lOccPKHdr5ToOWQ0LSPxGmMJEsvMOclaNE4rAodqdNFMtdPahlEtmvTn1ytC0wWm/Ko XfBw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=ITrS99XD; 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=quicinc.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id jb22-20020a170903259600b001a9b2c782ddsi403357plb.176.2023.04.26.18.59.47; Wed, 26 Apr 2023 19:00:03 -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=@quicinc.com header.s=qcppdkim1 header.b=ITrS99XD; 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=quicinc.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242803AbjD0BbU (ORCPT + 63 others); Wed, 26 Apr 2023 21:31:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48696 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232094AbjD0BbT (ORCPT ); Wed, 26 Apr 2023 21:31:19 -0400 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 069813AB8 for ; Wed, 26 Apr 2023 18:31:18 -0700 (PDT) Received: from pps.filterd (m0279867.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 33QNwS2W018088; Thu, 27 Apr 2023 01:31:15 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h=from : to : cc : subject : date : message-id : mime-version : content-transfer-encoding : content-type; s=qcppdkim1; bh=spfbNfwmiL3qg7k8mINHhVDrbQKuteH3oLy9EIuNsHw=; b=ITrS99XDxvezNhs0NctLOTUTLHPHVY+VSeClaXYy8UmXpSCs9lyi9fZZ7jPrcDLk+m9k PT0xB7ETRF+Ocs8Tv4Rkt9wemMcL6wbCKJEwIyhguUYODBd45WnfksAPARfT4UnC/Wsz XyVb4bmqIDO2kzw+K0ky5P9u+BHxhjEe4zXGZ2smaijHlfo6AbAEvAOYaSmgcoHm6GWy dpMMeWtpgN2m0J3k3PtTWlw7nZMTjprEZoi5DzboHVFr1YOQkE1wISZREBX794/kQDh1 jvDFn/a3CVysWFRdLli85FZB0HlXJhrlDTcZc0JbCb5m4I2c5N2AzGdf5SRBqzIXjUr7 PA== Received: from nalasppmta03.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3q7dh2g6gu-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 27 Apr 2023 01:31:14 +0000 Received: from nalasex01a.na.qualcomm.com (nalasex01a.na.qualcomm.com [10.47.209.196]) by NALASPPMTA03.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 33R1VBdT015040 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 27 Apr 2023 01:31:11 GMT Received: from bqiang-SFF.qca.qualcomm.com (10.80.80.8) by nalasex01a.na.qualcomm.com (10.47.209.196) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.42; Wed, 26 Apr 2023 18:30:37 -0700 From: Baochen Qiang To: CC: Subject: [PATCH] wifi: ath12k: Use msdu_end to check MCBC Date: Thu, 27 Apr 2023 09:30:21 +0800 Message-ID: <20230427013021.29792-1-quic_bqiang@quicinc.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01b.na.qualcomm.com (10.46.141.250) To nalasex01a.na.qualcomm.com (10.47.209.196) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-ORIG-GUID: Rpu3Jamhwdgros-R5vyRRiSG0HzVyGW2 X-Proofpoint-GUID: Rpu3Jamhwdgros-R5vyRRiSG0HzVyGW2 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.254,Aquarius:18.0.942,Hydra:6.0.573,FMLib:17.11.170.22 definitions=2023-04-27_01,2023-04-26_03,2023-02-09_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 clxscore=1011 malwarescore=0 spamscore=0 adultscore=0 priorityscore=1501 phishscore=0 bulkscore=0 mlxlogscore=833 mlxscore=0 lowpriorityscore=0 impostorscore=0 suspectscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2303200000 definitions=main-2304270012 X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,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 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; } static void ath12k_hw_wcn7850_rx_desc_get_dot11_hdr(struct hal_rx_desc *desc, base-commit: d276b90ff7f9c51e1f2f8826b7cbb3dff20a4b66 -- 2.25.1