Parcourir la source

qcacld-3.0: Fix DPTRACE TX and RX counters for HL data path

Fix DPTRACE TX and RX counters for HL data path.

Change-Id: I3a6599d1181ec31ae5cfd1c8a9bd89579fe11089
CRs-Fixed: 2485534
Nirav Shah il y a 5 ans
Parent
commit
38ccf5b720

+ 2 - 0
core/dp/txrx/ol_rx.c

@@ -1353,6 +1353,8 @@ DONE:
 			ol_rx_timestamp(pdev->ctrl_pdev, rx_desc, msdu);
 			OL_TXRX_LIST_APPEND(deliver_list_head,
 					    deliver_list_tail, msdu);
+			QDF_NBUF_CB_DP_TRACE_PRINT(msdu) = false;
+			qdf_dp_trace_set_track(msdu, QDF_RX);
 		}
 		msdu = next;
 	}

+ 6 - 0
core/dp/txrx/ol_tx_hl.c

@@ -547,6 +547,12 @@ ol_tx_hl_base(
 
 		/* OL_TXRX_PROT_AN_LOG(pdev->prot_an_tx_sent, msdu);*/
 
+		qdf_dp_trace_log_pkt(vdev->vdev_id, msdu, QDF_TX,
+				     QDF_TRACE_DEFAULT_PDEV_ID);
+		DPTRACE(qdf_dp_trace_data_pkt(msdu, QDF_TRACE_DEFAULT_PDEV_ID,
+					      QDF_DP_TRACE_TX_PACKET_RECORD,
+					      tx_desc->id, QDF_TX));
+
 		if (tx_spec != OL_TX_SPEC_STD) {
 #if defined(FEATURE_WLAN_TDLS)
 			if (tx_spec & OL_TX_SPEC_NO_FREE) {

+ 0 - 1
core/dp/txrx/ol_tx_ll_fastpath.c

@@ -108,7 +108,6 @@ static inline void ol_tx_trace_pkt(qdf_nbuf_t skb, uint16_t msdu_id,
 
 	qdf_dp_trace_log_pkt(vdev_id, skb, QDF_TX, QDF_TRACE_DEFAULT_PDEV_ID);
 
-	qdf_dp_trace_set_track(skb, QDF_TX);
 	DPTRACE(qdf_dp_trace_data_pkt(skb, QDF_TRACE_DEFAULT_PDEV_ID,
 				      QDF_DP_TRACE_TX_PACKET_RECORD,
 				      msdu_id, QDF_TX));

+ 7 - 0
core/dp/txrx/ol_tx_send.c

@@ -328,6 +328,13 @@ ol_tx_download_done_hl_free(void *txrx_pdev,
 	tx_desc = ol_tx_desc_find(pdev, msdu_id);
 	qdf_assert(tx_desc);
 
+	DPTRACE(qdf_dp_trace_ptr(msdu,
+				 QDF_DP_TRACE_FREE_PACKET_PTR_RECORD,
+				 QDF_TRACE_DEFAULT_PDEV_ID,
+				 qdf_nbuf_data_addr(msdu),
+				 sizeof(qdf_nbuf_data(msdu)), tx_desc->id,
+				 status));
+
 	ol_tx_download_done_base(pdev, status, msdu, msdu_id);
 
 	/*