Received: by 2002:ab2:1689:0:b0:1f7:5705:b850 with SMTP id d9csp1853758lqa; Tue, 30 Apr 2024 00:43:47 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVwi8H4h6Mq9oUP6u3RiO73MF8sgRJx2jdK4uxYT/k05UWTvgM6cIDGH13LRkyujpf/MO/l3+tWHSqZuUjMQSkaimtqpWrK5Y1/X9coBQ== X-Google-Smtp-Source: AGHT+IFOUWD56KlcJnKq8xOAemHUiKYaOE7zjisSuuTBEPyI+CzAZ39o0PFUfDpavPYoTA4oTc+S X-Received: by 2002:a17:90a:fb82:b0:2b2:7055:5a8b with SMTP id cp2-20020a17090afb8200b002b270555a8bmr1591259pjb.21.1714463027265; Tue, 30 Apr 2024 00:43:47 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714463027; cv=pass; d=google.com; s=arc-20160816; b=02AFxjth9vLVoRQ7VpC0ZVxjly+9JL4m/syCyLy9iJFxBrWHDnGZ2YMSvgPHJ4XmPc YAa05VNhTZBtM+4DLIjoTGnbx7uGLN4A5wtMR77wcCZ6UsnfSIBrJ12ggB0ucUtK65cB Qr7Lm+e2xHuumu0HFL5C/dYYoFQbG9enci+N1wnJQ8uF98Zp2Ytq+R6eGV/LtJiB3SQs AgvCogA0dqonqzCjik6+gVuWcv6Wsu6Z+ZcJPamfKmDxX7lFevap4zGdIMtm9nqgFtsZ AgqLZT44vMqVs1OShtgnPDjMUS5xJgrEfbxDC+4Y41lqMU2uL8rTrpdNLXQfXR9ljTJp JxNA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=ZKf9Am5uSibPx6rVg8Bxxng0Qs+fK/1XtQlUCRIJkI8=; fh=qg8LRlq2kqbcGZGD4Wl4EtWkP2IsgzTwZTeTvDgMZUI=; b=NoUn9heP1Dp1ctmfBuEg+1eUx7U8gqX0coAHl1hQxK18cyOyD6RKn2hnqMgte5/Ry3 PBkQGpEXqLn9fxegUggiJO/hIjnPpSCUMOGMkWm1WMBAK4UKDC1grIiyF8/3BI+J0EVb e4N/95aTRzfJAX0EmxEsbyMYke+bupTyvzQAkpUvL318sF4aO9rA0s81NqDkAj+sIXhQ Q13JZ/Hm85XRmmTJ/ZNTytcwl2aoOeyBmW+Ht/RPjsqMl3VrMcAohOXvAXBxDBhN/oNI S0sX6fWnmFxL1HHcEvmTKTh6j3oAEKqCh5c7Hh94WNDKIPipoYSE9MGn69vFglpBNzYi Z4WQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=fFyoL0+C; arc=pass (i=1 spf=pass spfdomain=quicinc.com dkim=pass dkdomain=quicinc.com dmarc=pass fromdomain=quicinc.com); spf=pass (google.com: domain of linux-wireless+bounces-7031-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-wireless+bounces-7031-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id mh6-20020a17090b4ac600b002b113accb2asi5148273pjb.125.2024.04.30.00.43.46 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 30 Apr 2024 00:43:47 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless+bounces-7031-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=fFyoL0+C; arc=pass (i=1 spf=pass spfdomain=quicinc.com dkim=pass dkdomain=quicinc.com dmarc=pass fromdomain=quicinc.com); spf=pass (google.com: domain of linux-wireless+bounces-7031-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-wireless+bounces-7031-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id A7C3928276F for ; Tue, 30 Apr 2024 07:43:46 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D5B363AC34; Tue, 30 Apr 2024 07:43:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b="fFyoL0+C" X-Original-To: linux-wireless@vger.kernel.org Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 7470A179A7 for ; Tue, 30 Apr 2024 07:43:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=205.220.168.131 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714463024; cv=none; b=uLNb0VHsQjcYI+du3z2KMcw9YN2aiipE8X0bU4VWpH4cxyYfEnkxhW2TflX/90rLmxrYQUvHGKrheA96n0zA5WqZ9fMZANQ+x8LmiJiPkSNBhjZqfGQPadaoRzVek4k2exxYYfIEvp0dWc6evYhHTUV/UxbhwfCy9VhBb0baEq4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714463024; c=relaxed/simple; bh=RwNsXFsNUIBI8pFor2Y2hs6XqrTmfi80n6F/ydRTLLo=; h=From:To:CC:Subject:Date:Message-ID:MIME-Version:Content-Type; b=UIZndOnsn5TuhMFqFc4fnOCF4BooHQ7UwWAQKomnbMxe83T6DX2Qtnj4BlNencDBLtjEIO/B9TwYP0Ix7FAKdbiIH60kXU3mMyGzxV7r3vVRYA8chwxiuIY/VFip33nZ3xl7Oi1dLI3RCfTioNa6drV+KDUvQWMvrs/EQI5AQ6o= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=quicinc.com; spf=pass smtp.mailfrom=quicinc.com; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b=fFyoL0+C; arc=none smtp.client-ip=205.220.168.131 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=quicinc.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=quicinc.com Received: from pps.filterd (m0279862.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 43U7ewEL001828; Tue, 30 Apr 2024 07:43:40 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=ZKf9Am5 uSibPx6rVg8Bxxng0Qs+fK/1XtQlUCRIJkI8=; b=fFyoL0+C6W6rBN4ktIh2amA dSz1vig1kDOJ1d4T10acFjRWv7/1yaHymvTf8nso+bI/GvVabdFv0/lcYCvcRTtW qDI7volGmugbuynEW/HiFmlTCEiOU1BpF+DPoy+4z7OCEH/fL07O5FRPmwni7GNw RPWtJ2iDkR3q3AS3Cb5+PTwPvl9SP6Upr5i2Rr/K4GkNvVuxz2WuaIjIrnzEN5qE ft56CfjgQ0gT7bThtexqJVjn5dMG32UjwqBfNnYKzUR2CfEhhONa+hTlWtIe6xf8 dzgfv+fLeUhiXzdnaJhFnlMbBEqSw01We3iEVQQtpQgEkiOoDGGL1/0Xd8dGRpw= = Received: from nalasppmta05.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3xtvf7g07r-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 30 Apr 2024 07:43:40 +0000 (GMT) Received: from nalasex01a.na.qualcomm.com (nalasex01a.na.qualcomm.com [10.47.209.196]) by NALASPPMTA05.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 43U7hdbZ021480 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 30 Apr 2024 07:43:39 GMT Received: from hu-kathirve-hyd.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.1544.9; Tue, 30 Apr 2024 00:43:37 -0700 From: Karthikeyan Kathirvel To: CC: , Karthikeyan Kathirvel Subject: [PATCH v4 0/2] wifi: ath12k: drop failed transmitted frames from metric calculation Date: Tue, 30 Apr 2024 13:13:11 +0530 Message-ID: <20240430074313.885807-1-quic_kathirve@quicinc.com> X-Mailer: git-send-email 2.34.1 Precedence: bulk X-Mailing-List: linux-wireless@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain 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-GUID: T3BOwQ6Isjhfmf2m_oopdHvedir6D9Xf X-Proofpoint-ORIG-GUID: T3BOwQ6Isjhfmf2m_oopdHvedir6D9Xf X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1011,Hydra:6.0.650,FMLib:17.11.176.26 definitions=2024-04-30_04,2024-04-29_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 malwarescore=0 impostorscore=0 lowpriorityscore=0 mlxlogscore=862 priorityscore=1501 phishscore=0 mlxscore=0 adultscore=0 bulkscore=0 clxscore=1015 suspectscore=0 spamscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2404010003 definitions=main-2404300055 - Use ieee80211_free_txskb() instead of dev_kfree_skb_any(). - Drop failed transmitted frames from mesh metric calculation to avoid false link metric averaging. Karthikeyan Kathirvel (1): wifi: ath12k: drop failed transmitted frames from metric calculation. Sven Eckelmann (1): wifi: ath12k: Don't drop tx_status in failure case --- v4: - Removed an invalid patch uploaded in v3 - Replaced a dev_kfree_skb_any() by ieee80211_free_txskb() in ath12k_dp_tx_free_txbuf() v3: Addressed Nicolas Escande's comment v2: Addressed Jeff's comment --- drivers/net/wireless/ath/ath12k/dp_tx.c | 47 +++++++++++++++------- drivers/net/wireless/ath/ath12k/hal_desc.h | 22 +++++++++- 2 files changed, 54 insertions(+), 15 deletions(-) base-commit: 363e7193eaf258fe7f04e8db560bd8a282a12cd9 -- 2.34.1