Kaynağa Gözat

qcacmn: Enable DP statistics in driver by default for MCL

Both process_tx_status and process_rx_status is disabled for the
default setting. Enable those flags by default for MCL

CRs-Fixed: 2146734
Change-Id: I8c5a636badcfe9327fce7f3332abd93946f003bd
chenguo 7 yıl önce
ebeveyn
işleme
9bece1afc7
3 değiştirilmiş dosya ile 11 ekleme ve 2 silme
  1. 1 1
      dp/wifi3.0/dp_rx.c
  2. 1 1
      dp/wifi3.0/dp_tx.c
  3. 9 0
      wlan_cfg/wlan_cfg.h

+ 1 - 1
dp/wifi3.0/dp_rx.c

@@ -1571,7 +1571,7 @@ dp_rx_pdev_attach(struct dp_pdev *pdev)
 	qdf_spinlock_create(&soc->rx_desc_mutex[pdev_id]);
 	pdev = soc->pdev_list[pdev_id];
 	rxdma_srng = pdev->rx_refill_buf_ring;
-	soc->process_rx_status = 0;
+	soc->process_rx_status = CONFIG_PROCESS_RX_STATUS;
 	rxdma_entries = rxdma_srng.alloc_size/hal_srng_get_entrysize(
 						     soc->hal_soc, RXDMA_BUF);
 

+ 1 - 1
dp/wifi3.0/dp_tx.c

@@ -2927,7 +2927,7 @@ QDF_STATUS dp_tx_soc_attach(struct dp_soc *soc)
 	 * only for NPR EMU, should be removed, once NPR platforms
 	 * are stable.
 	 */
-	soc->process_tx_status = 0;
+	soc->process_tx_status = CONFIG_PROCESS_TX_STATUS;
 
 	QDF_TRACE(QDF_MODULE_ID_DP, QDF_TRACE_LEVEL_INFO,
 			"%s HAL Tx init Success\n", __func__);

+ 9 - 0
wlan_cfg/wlan_cfg.h

@@ -51,6 +51,15 @@
 #define MAX_REO_DEST_RINGS 4
 #define MAX_RX_MAC_RINGS 2
 
+/* DP process status */
+#ifdef CONFIG_MCL
+#define CONFIG_PROCESS_RX_STATUS 1
+#define CONFIG_PROCESS_TX_STATUS 1
+#else
+#define CONFIG_PROCESS_RX_STATUS 0
+#define CONFIG_PROCESS_TX_STATUS 0
+#endif
+
 /* Miscellaneous configuration */
 #define MAX_IDLE_SCATTER_BUFS 16
 #define DP_MAX_IRQ_PER_CONTEXT 12