qcacmn: Remove rx packet capture events processing if feature is disabled

Currently, rx packet capture events processing happens even
when feature is disabled by ini. This incurs per packet overhead
in rx path.

The fix is to move all the processing from rx path to packet capture mode
component. Send only wdi event from rx path, when feature is enabled by
ini.

Change-Id: I647256b85117cd3373950c78a5a0ae7d6710e4e2
CRs-Fixed: 2969123
Esse commit está contido em:
Surabhi Vishnoi
2021-07-14 12:36:50 +05:30
commit de Madan Koyyalamudi
commit 9aaf9e8110
5 arquivos alterados com 39 adições e 25 exclusões

Ver arquivo

@@ -226,6 +226,7 @@ struct wlan_srng_cfg {
* @ipa_tx_alt_comp_ring_size: IPA tx alt completion ring size
* @hw_cc_conv_enabled: cookie conversion enabled
* @tcl_wbm_map_array: TCL-WBM map array
* @pkt_capture_mode: Packet capture mode config
*/
struct wlan_cfg_dp_soc_ctxt {
int num_int_ctxts;
@@ -366,6 +367,9 @@ struct wlan_cfg_dp_soc_ctxt {
int ppe2tcl_ring;
int ppe_release_ring;
#endif
#ifdef WLAN_FEATURE_PKT_CAPTURE_V2
uint32_t pkt_capture_mode;
#endif
};
/**
@@ -1839,4 +1843,19 @@ wlan_cfg_get_dp_soc_ppe_release_ring_size(struct wlan_cfg_dp_soc_ctxt *cfg);
void
wlan_cfg_get_prealloc_cfg(struct cdp_ctrl_objmgr_psoc *ctrl_psoc,
struct wlan_dp_prealloc_cfg *cfg);
#ifdef WLAN_FEATURE_PKT_CAPTURE_V2
/**
* wlan_cfg_get_pkt_capture_mode() - Get packet capture mode config
* @cfg: config context
*
* Return: value of packet capture mode
*/
uint32_t wlan_cfg_get_pkt_capture_mode(struct wlan_cfg_dp_soc_ctxt *cfg);
#else
static inline
uint32_t wlan_cfg_get_pkt_capture_mode(struct wlan_cfg_dp_soc_ctxt *cfg)
{
return 0;
}
#endif
#endif