qcacld-3.0: Add credit tracking for HL Data Path

Add credit tracking for HL Data Path in DPTRACE.
Also update proto_bitmap to dynamically enable/disable
credit tracking.

Change-Id: Idd9216b634586f3a81c2194ea4bd2122a472154a
CRs-Fixed: 2574053
This commit is contained in:
Nirav Shah
2019-11-05 08:30:53 +05:30
committed by nshrivas
parent 451c68c41a
commit 7d75434e39
6 changed files with 42 additions and 3 deletions

View File

@@ -38,6 +38,7 @@
#include <cds_api.h>
#include "hif.h"
#include <cdp_txrx_handle.h>
#include <ol_txrx_peer_find.h>
#define HTT_HTC_PKT_POOL_INIT_SIZE 100 /* enough for a large A-MPDU */
@@ -570,6 +571,13 @@ htt_attach(struct htt_pdev_t *pdev, int desc_pool_size)
ol_tx_target_credit_update(
pdev->txrx_pdev, ol_cfg_target_tx_credit(
pdev->ctrl_pdev));
DPTRACE(qdf_dp_trace_credit_record(QDF_HTT_ATTACH,
QDF_CREDIT_INC,
ol_cfg_target_tx_credit(pdev->ctrl_pdev),
qdf_atomic_read(&pdev->txrx_pdev->target_tx_credit),
qdf_atomic_read(&pdev->txrx_pdev->txq_grps[0].credit),
qdf_atomic_read(&pdev->txrx_pdev->txq_grps[1].credit)));
} else {
enum wlan_frm_fmt frm_type;