qcacmn: Fix wlan_dp_mem_stats TX_NBUF_CNT error

The TX_NBUF_CNT never decreases, which is an incorrect debug info.
We should decrease dp_tx_skb_count when nbuf unmap.

Change-Id: I3be63047f47305c5d24c5c40696e1c6db69ec4d6
CRs-Fixed: 3508530
This commit is contained in:
Zhiwei Yang
2023-05-24 17:29:13 +08:00
committed by Rahul Choudhary
parent 8ab3e327e2
commit c8e31677da
2 changed files with 2 additions and 0 deletions

View File

@@ -1133,6 +1133,7 @@ void qdf_nbuf_unmap_nbytes_single_paddr_debug(qdf_device_t osdev,
const char *func, uint32_t line)
{
qdf_nbuf_untrack_map(buf, func, line);
__qdf_record_nbuf_nbytes(__qdf_nbuf_get_end_offset(buf), dir, false);
__qdf_mem_unmap_nbytes_single(osdev, phy_addr, dir, nbytes);
qdf_net_buf_debug_update_unmap_node(buf, func, line);
}