Linux wireless drivers development
 help / color / mirror / Atom feed
From: Jeff Johnson <jeff.johnson@oss.qualcomm.com>
To: Pardeep Kaur <pardeep.kaur@oss.qualcomm.com>, ath12k@lists.infradead.org
Cc: linux-wireless@vger.kernel.org,
	Aniruddha Mishra <aniruddha.mishra@oss.qualcomm.com>
Subject: Re: [PATCH ath-next 5/8] wifi: ath12k: add WBM RX error drop statistics
Date: Sun, 26 Jul 2026 09:00:31 -0700	[thread overview]
Message-ID: <49f52ca6-d2a5-41d4-9952-794dae91e32f@oss.qualcomm.com> (raw)
In-Reply-To: <20260723125448.922361-6-pardeep.kaur@oss.qualcomm.com>

On 7/23/2026 5:54 AM, Pardeep Kaur wrote:
> @@ -1961,7 +1983,8 @@ int ath12k_wifi7_dp_rx_process_wbm_err(struct ath12k_dp *dp,
>  		device_id = desc_info->device_id;
>  		partner_dp = ath12k_dp_hw_grp_to_dp(dp_hw_grp, device_id);
>  		if (unlikely(!partner_dp)) {
> -			dev_kfree_skb_any(msdu);
> +			ath12k_wifi7_dp_rx_wbm_err_free_skb(dp, msdu,
> +							    WBM_ERR_DROP_NULL_PRTNR_DP);
>  
>  			/* In any case continuation bit is set
>  			 * in the previous record, cleanup scatter_msdu_list

My review agent flagged that between the blob above and the blob below is the
following code that drops an skb without accounting:

		if (err_info.push_reason !=
		    HAL_REO_DEST_RING_PUSH_REASON_ERR_DETECTED) {
			dev_kfree_skb_any(msdu);
			continue;
		}

Should this be counted?

> @@ -2007,7 +2030,8 @@ int ath12k_wifi7_dp_rx_process_wbm_err(struct ath12k_dp *dp,
>  		hw_link_id = ath12k_dp_rx_get_msdu_src_link(partner_dp->hal,
>  							    msdu_data);
>  		if (hw_link_id >= ATH12K_GROUP_MAX_RADIO) {
> -			dev_kfree_skb_any(msdu);
> +			ath12k_wifi7_dp_rx_wbm_err_free_skb(dp, msdu,
> +							    WBM_ERR_DROP_INV_HW_ID);
>  
>  			/* In any case continuation bit is set
>  			 * in the previous record, cleanup scatter_msdu_list

  reply	other threads:[~2026-07-26 16:00 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-07-23 12:54 [PATCH ath-next 0/8] wifi: ath12k: extend device DP stats for TX and RX observability Pardeep Kaur
2026-07-23 12:54 ` [PATCH ath-next 1/8] wifi: ath12k: fix out-of-bounds access on TX stats arrays Pardeep Kaur
2026-07-23 12:54 ` [PATCH ath-next 2/8] wifi: ath12k: rename wbm_status to htt_status in HTT TX completion Pardeep Kaur
2026-07-23 12:54 ` [PATCH ath-next 3/8] wifi: ath12k: add TCL ring TX buffer allocation failure counter Pardeep Kaur
2026-07-26 15:42   ` Jeff Johnson
2026-07-23 12:54 ` [PATCH ath-next 4/8] wifi: ath12k: add device DP stats reset support via debugfs Pardeep Kaur
2026-07-23 12:54 ` [PATCH ath-next 5/8] wifi: ath12k: add WBM RX error drop statistics Pardeep Kaur
2026-07-26 16:00   ` Jeff Johnson [this message]
2026-07-28 12:22     ` Pardeep Kaur
2026-07-23 12:54 ` [PATCH ath-next 6/8] wifi: ath12k: track per-ring RX sent-to-stack count Pardeep Kaur
2026-07-26 16:11   ` Jeff Johnson
2026-07-28 12:24     ` Pardeep Kaur
2026-07-23 12:54 ` [PATCH ath-next 7/8] wifi: ath12k: fix 1-based ring index in REO Rx Received debugfs output Pardeep Kaur
2026-07-23 12:54 ` [PATCH ath-next 8/8] wifi: ath12k: add WBM SW desc fallback counter Pardeep Kaur
  -- strict thread matches above, loose matches on Subject: below --
2026-08-06 10:06 [PATCH ath-next 0/8] wifi: ath12k: extend device DP stats for TX and RX observability Pardeep Kaur
2026-08-06 10:06 ` [PATCH ath-next 5/8] wifi: ath12k: add WBM RX error drop statistics Pardeep Kaur

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=49f52ca6-d2a5-41d4-9952-794dae91e32f@oss.qualcomm.com \
    --to=jeff.johnson@oss.qualcomm.com \
    --cc=aniruddha.mishra@oss.qualcomm.com \
    --cc=ath12k@lists.infradead.org \
    --cc=linux-wireless@vger.kernel.org \
    --cc=pardeep.kaur@oss.qualcomm.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox