Received: by 2002:ab2:6203:0:b0:1f5:f2ab:c469 with SMTP id o3csp2824002lqt; Tue, 23 Apr 2024 02:43:12 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXKYc6sWmjxH7V8wcVylb8MojdNRyB6W0GnOEVgn9W9dbo8ZUT2sLe0U7ljm7m2JKrklxdJMzIHk4rPzP1M/uzmddckEfUo4CCbpWEM6A== X-Google-Smtp-Source: AGHT+IF5DvvKZyFTldTqjzSGfg6lc5Li++flSoHwKXz8wJ0F4hhr/7rLKtRLp86TCkXVCw1syyEz X-Received: by 2002:a0c:ee21:0:b0:6a0:66e2:1dd1 with SMTP id l1-20020a0cee21000000b006a066e21dd1mr14034540qvs.1.1713865391838; Tue, 23 Apr 2024 02:43:11 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713865391; cv=pass; d=google.com; s=arc-20160816; b=EmppwzrEeqK2F2kqeuSAgiNGsGb6+IHkXtAYbg/Vm2k1w2lZwFOxIZtS2VPWG0pm/h KIAQj7aFJZHFtASmRuT/sHwJWoeG7XcMR+6yOSqnj15akEBA3Upyxfo/sZxGylFuRHgj kERJM+uaxPSdmV1x2IaHS+ii9V/OsXmk0v/U9A7hLfMafdoKGVemPfyFWv6ohyKgLjHF x4wLSJCv+QoSThucZxc4245OP0kOiRLttNpD14viLIk/XSijhj6+nNBY/lU8yCPOOlrt SEqAFNHbuNkbzasejAG15rypE9WprhOLAUvCwbecrxORXgThvt0a9CI31RKK1oVI6Cyk W6Hw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :user-agent:message-id:in-reply-to:date:references:subject:cc:to :from:dkim-signature; bh=D8awUfCO73/yIc4iAaIadfDF1bl3sBBseky4DhQ76QY=; fh=mBDi25Wfdf8Wg4D0csAS25MOMQ2+vl0sVVtVEWXaqTo=; b=UneSvkQESUa7OVXcKbO4dDpefcFSyKcL17d2uMJ+YM69SviVoKnpjhK5Ia8TJYR3S4 wyv1RTsHvP/1N314aUjDzPrJoKhl4Aon08QIWJkVZmKUVxZAgCQ0+su36ez290YeuWuA r9ZqdOd9U43+WuoqZAJGkJOmj/411PghDu+SQRTN0cAPhAHe1WSuLKZ6HmAMEImNSNzi OiAsB4WXhMy6pQ6ZxmDxpxA/VKQHXV63xroF1n9I2BMJWkD9enf+oXsChdGVyuSgors1 zfz9j3YHKo4mghoyknSCcfs1nWsDv9f43v9UBI0tsDAuV3lAFYAVWZ1SC34BITOAKyO9 15Eg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=EXDtNpoB; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-wireless+bounces-6710-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-wireless+bounces-6710-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id gy9-20020a056214242900b0069b299cf931si12080407qvb.11.2024.04.23.02.43.11 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 23 Apr 2024 02:43:11 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless+bounces-6710-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=EXDtNpoB; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-wireless+bounces-6710-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-wireless+bounces-6710-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org 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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 897041C21124 for ; Tue, 23 Apr 2024 09:43:11 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0A1C25915C; Tue, 23 Apr 2024 09:42:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="EXDtNpoB" X-Original-To: linux-wireless@vger.kernel.org Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 DA2E859151 for ; Tue, 23 Apr 2024 09:42:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713865371; cv=none; b=oS8gQw+yaslg5Qkhkt+HFGgwR247OrgYv4oapCH0uIa2WT62cVg+QVB/C3StXCC8TxX7Lv4ZKmQHKzfAubmp2DQdqXq4HBjoX/t/xvbzvzrsWX5Ma5o1pjGDaxugFo7C9scQb6GtIHbjcvO/U3GDN3IcpNpGoKSKd6oKxDK+LRg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713865371; c=relaxed/simple; bh=0NEJcL4Fu4kFtcHzsuxbPRyIY+LtD3O0HgV9YNRZ+30=; h=From:To:Cc:Subject:References:Date:In-Reply-To:Message-ID: MIME-Version:Content-Type; b=O8yFgaTsfbLPK/naHLANRvApQCU9m7RhiuJ+FRMwxb4WaFhr0fVRKdAOMSOETVCy1ij+ZL6/sAuIQ2xwHKVHoBGeuaNeqN/w3ewwNngp6LKEvfZu1/nTtN70OCulto6ctEkktAaYjOjeV9tnT/nZTnNrSQ3AgWI+EGO+c7ccVYs= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=EXDtNpoB; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7B1C8C116B1; Tue, 23 Apr 2024 09:42:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1713865371; bh=0NEJcL4Fu4kFtcHzsuxbPRyIY+LtD3O0HgV9YNRZ+30=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=EXDtNpoBkeaGMvmR58Cp8HKlK7Y+VEj7m0q4Z2wFw/L3xmcTS0NjD8P4mN7Wfwc7a S1dRwwOFlFqXF9ZXeuy/IhEU3s7a5LdpzWiIYdb7rmLUQp5DiszD3qcMDYcy6nXqvB nGtYAVmTU1gMlMzvgK5aEUoRC7W9VT4vYObxANT9U89A5/4qzrjNujnczJF2Ypa3XL rVfDopcUdqFA3XCKMzUUpNztu5/2XffZN9RBkIPLbt81uBuRBjz0hTzOmMQ70Gj8ZQ HvewLxMTozHPJMK6l2TCbhQ7mOsWI4RCs1xek3RJrXhojPtyh1rYxS5+WFf35xTueT XPd56HJhjEFkQ== From: Kalle Valo To: Karthikeyan Kathirvel Cc: Nicolas Escande , , Subject: Re: [PATCH] wifi: ath12k: drop failed transmitted frames from metric calculation. References: <20240419170314.3117623-1-quic_kathirve@quicinc.com> Date: Tue, 23 Apr 2024 12:42:48 +0300 In-Reply-To: (Karthikeyan Kathirvel's message of "Mon, 22 Apr 2024 22:27:45 +0530") Message-ID: <874jbsv2hz.fsf@kernel.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux) Precedence: bulk X-Mailing-List: linux-wireless@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain Karthikeyan Kathirvel writes: > On 4/22/2024 1:35 PM, Nicolas Escande wrote: >> On Fri Apr 19, 2024 at 7:03 PM CEST, Karthikeyan Kathirvel wrote: >> >>> + case HAL_WBM_TQM_REL_REASON_CMD_REMOVE_MPDU: >>> + case HAL_WBM_TQM_REL_REASON_DROP_THRESHOLD: >>> + case HAL_WBM_TQM_REL_REASON_CMD_REMOVE_AGED_FRAMES: >>> + /* The failure status is due to internal firmware tx failure >>> + * hence drop the frame do not update the status of frame to >>> + * the upper layer >>> + */ >>> + dev_kfree_skb_any(msdu); >> >> Shouldn't this be ieee80211_free_txskb ? I'm not clear when to use >> which. > > Yes, there is an internal patch is in pipeline, that will take care of > addressing all dev_kfree_skb_any() to ieee80211_free_txskb() in > ath12k_dp_tx_complete_msdu(), this patch doesn't take care of that. Let's not add new bugs knowingly. Please fix this patch to use ieee80211_free_txskb(), that is much more reliable than waiting for some other patch. -- https://patchwork.kernel.org/project/linux-wireless/list/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches