From 0a089680ce9ff3c81360ff36b3f7bb5bd9f4727c Mon Sep 17 00:00:00 2001 From: Srinivas Girigowda Date: Tue, 21 Feb 2023 09:58:36 -0800 Subject: [PATCH] qcacmn: Add Tx Mon configs to DP prealloc Add Tx Mon configs to DP prealloc. Change-Id: I34a480cdb59c9347e535e95972b6a342a8722047 CRs-Fixed: 3415819 --- wlan_cfg/wlan_cfg.c | 4 ++++ wlan_cfg/wlan_cfg.h | 5 +++++ 2 files changed, 9 insertions(+) diff --git a/wlan_cfg/wlan_cfg.c b/wlan_cfg/wlan_cfg.c index 1bd0924691..a2e5f366fa 100644 --- a/wlan_cfg/wlan_cfg.c +++ b/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 diff --git a/wlan_cfg/wlan_cfg.h b/wlan_cfg/wlan_cfg.h index 4bfb8ea8b7..fcbabb41d2 100644 --- a/wlan_cfg/wlan_cfg.h +++ b/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; }; /**