qcacmn: Disable cookie conversion for IPA WBM ring

Currently, HW cookie conversion is enabled
for the WBM ring dedicated to IPA during
optional wifi datapath feature. IPA does
not need HW cookie conversion hence disable
it for this ring when the feature is enabled.

Change-Id: I84ecfa54c87f41f1be5202280c450bdfaeebd4ac
CRs-Fixed: 3437556
This commit is contained in:
Namita Nair
2023-03-16 15:13:06 -07:00
committed by Madan Koyyalamudi
parent 48ed0b7680
commit cd406423c7

View File

@@ -138,6 +138,21 @@ qdf_size_t dp_get_context_size_be(enum dp_context_type context_type)
* *
* Return: None * Return: None
*/ */
#ifdef IPA_OPT_WIFI_DP
static inline
void dp_cc_wbm_sw_en_cfg(struct hal_hw_cc_config *cc_cfg)
{
cc_cfg->wbm2sw6_cc_en = 1;
cc_cfg->wbm2sw5_cc_en = 0;
cc_cfg->wbm2sw4_cc_en = 1;
cc_cfg->wbm2sw3_cc_en = 1;
cc_cfg->wbm2sw2_cc_en = 1;
/* disable wbm2sw1 hw cc as it's for FW */
cc_cfg->wbm2sw1_cc_en = 0;
cc_cfg->wbm2sw0_cc_en = 1;
cc_cfg->wbm2fw_cc_en = 0;
}
#else
static inline static inline
void dp_cc_wbm_sw_en_cfg(struct hal_hw_cc_config *cc_cfg) void dp_cc_wbm_sw_en_cfg(struct hal_hw_cc_config *cc_cfg)
{ {
@@ -151,6 +166,7 @@ void dp_cc_wbm_sw_en_cfg(struct hal_hw_cc_config *cc_cfg)
cc_cfg->wbm2sw0_cc_en = 1; cc_cfg->wbm2sw0_cc_en = 1;
cc_cfg->wbm2fw_cc_en = 0; cc_cfg->wbm2fw_cc_en = 0;
} }
#endif
#else #else
static inline static inline
void dp_cc_wbm_sw_en_cfg(struct hal_hw_cc_config *cc_cfg) void dp_cc_wbm_sw_en_cfg(struct hal_hw_cc_config *cc_cfg)