Jelajahi Sumber

qcacmn: Add Tx Mon configs to DP prealloc

Add Tx Mon configs to DP prealloc.

Change-Id: I34a480cdb59c9347e535e95972b6a342a8722047
CRs-Fixed: 3415819
Srinivas Girigowda 2 tahun lalu
induk
melakukan
0a089680ce
2 mengubah file dengan 9 tambahan dan 0 penghapusan
  1. 4 0
      wlan_cfg/wlan_cfg.c
  2. 5 0
      wlan_cfg/wlan_cfg.h

+ 4 - 0
wlan_cfg/wlan_cfg.c

@@ -5463,6 +5463,10 @@ wlan_cfg_get_prealloc_cfg(struct cdp_ctrl_objmgr_psoc *ctrl_psoc,
 						   CFG_DP_REO_STATUS_RING);
 	cfg->num_mon_status_ring_entries = cfg_get(ctrl_psoc,
 						   CFG_DP_RXDMA_MONITOR_STATUS_RING);
+	cfg->num_tx_mon_buf_ring_entries = cfg_get(ctrl_psoc,
+						   CFG_DP_TX_MONITOR_BUF_RING);
+	cfg->num_tx_mon_dst_ring_entries = cfg_get(ctrl_psoc,
+						   CFG_DP_TX_MONITOR_DST_RING);
 }
 
 #ifdef WLAN_FEATURE_PKT_CAPTURE_V2

+ 5 - 0
wlan_cfg/wlan_cfg.h

@@ -581,6 +581,9 @@ struct wlan_cfg_dp_pdev_ctxt {
  * @num_rxdma_refill_ring_entries: Number of entries in rxdma refill ring
  * @num_reo_status_ring_entries: Number of entries in REO status ring
  * @num_mon_status_ring_entries: Number of entries in monitor status ring
+ * @num_tx_mon_buf_ring_entries: Number of entries in Tx monitor buf ring
+ * @num_tx_mon_dst_ring_entries: Number of entries in Tx monitor
+ *				 destination ring
  */
 struct wlan_dp_prealloc_cfg {
 	int num_tx_ring_entries;
@@ -595,6 +598,8 @@ struct wlan_dp_prealloc_cfg {
 	int num_rxdma_refill_ring_entries;
 	int num_reo_status_ring_entries;
 	int num_mon_status_ring_entries;
+	int num_tx_mon_buf_ring_entries;
+	int num_tx_mon_dst_ring_entries;
 };
 
 /**