qcacmn: Printing Tx Desc in use count for DS mode

Requirement:
As part of serviceability for DS, display the number
of Tx descriptors currently in use by DS module
via “cfg80211tool athXX txrx_stats 260” like non-DS.

Snippet of log/code of Non-DS:
DP_PRINT_STATS("Tx Descriptors In Use = %u",
                       soc->stats.tx.desc_in_use);

Fix:
Introduced a new ops (dp_tx_ppe_ds_inuse_desc)
to display the current Tx desc in use.
dp_ppe_ds_inuse_desc API will be registered
to dp_tx_ppe_ds_inuse_desc in initialization
and it will be invoked from dp_print_soc_tx_stats API
to display the in_use desc via 260 command

Change-Id: I18971fc5d4cb5eb5437b012e3b89db7c9c2446b4
CRs-Fixed: 3352686
This commit is contained in:
Nanda Krishnan
2022-12-02 14:30:26 +05:30
committad av Madan Koyyalamudi
förälder 91036d45ac
incheckning 66fd581109
4 ändrade filer med 32 tillägg och 0 borttagningar

Visa fil

@@ -7687,6 +7687,18 @@ dp_print_pdev_rx_stats(struct dp_pdev *pdev)
pdev->stats.rx_buffer_pool.num_pool_bufs_replenish);
}
#ifdef WLAN_SUPPORT_PPEDS
void dp_print_tx_ppeds_stats(struct dp_soc *soc)
{
if (soc->arch_ops.dp_tx_ppeds_inuse_desc)
soc->arch_ops.dp_tx_ppeds_inuse_desc(soc);
}
#else
void dp_print_tx_ppeds_stats(struct dp_soc *soc)
{
}
#endif
void
dp_print_soc_tx_stats(struct dp_soc *soc)
{
@@ -7730,6 +7742,7 @@ dp_print_soc_tx_stats(struct dp_soc *soc)
soc->stats.tx.tx_comp_loop_pkt_limit_hit);
DP_PRINT_STATS("Tx comp HP out of sync2 = %d",
soc->stats.tx.hp_oos2);
dp_print_tx_ppeds_stats(soc);
}
static