qcacmn: Consider tqm bypass frames for stats accounting

Parse the tqm bypass frames packet count and byte count and consider
them for stats updation in the vdev.

Change-Id: I644eb9819b8a68fbf9da2e2f2588c80dfaa61fa5
CRs-Fixed: 3163215
This commit is contained in:
Harsh Kumar Bijlani
2022-03-30 19:16:38 +05:30
committed by Madan Koyyalamudi
父節點 78a2fe5f48
當前提交 84a762d85d
共有 2 個文件被更改,包括 14 次插入0 次删除

查看文件

@@ -2401,6 +2401,18 @@ static void dp_vdev_txrx_hw_stats_handler(struct htt_soc *soc,
tx_comp.bytes += byte_count;
tx_failed.bytes += byte_count;
/* Extract tqm bypass packet count from buffer */
tag_buf = tlv_buf_temp +
HTT_VDEV_STATS_GET_INDEX(TX_TQM_BYPASS_PKT_CNT);
pkt_count = HTT_VDEV_GET_STATS_U64(tag_buf);
tx_comp.num += pkt_count;
/* Extract tx bypass packet byte count from buffer */
tag_buf = tlv_buf_temp +
HTT_VDEV_STATS_GET_INDEX(TX_TQM_BYPASS_BYTE_CNT);
byte_count = HTT_VDEV_GET_STATS_U64(tag_buf);
tx_comp.bytes += byte_count;
DP_STATS_UPD(vdev, tx.comp_pkt.num, tx_comp.num);
DP_STATS_UPD(vdev, tx.comp_pkt.bytes, tx_comp.bytes);