qcacmn: PPE-DS feature naming convention update

1. Change the names of parameters and functions related
   to direct switch feature from ppe to ppeds
2. Remove the unused ppe_release_ring

Change-Id: I5a95b1273e338f354903af98158578ac65758a8a
CRs-Fixed: 3345097
This commit is contained in:
Pavankumar Nandeshwar
2022-11-23 20:43:42 -08:00
committed by Madan Koyyalamudi
parent 3548804a60
commit c811b9d544
11 changed files with 133 additions and 200 deletions

View File

@@ -298,13 +298,11 @@ struct wlan_srng_cfg {
* @ipa_tx_alt_comp_ring_size: IPA tx alt completion ring size
* @hw_cc_enabled: cookie conversion enabled
* @tcl_wbm_map_array: TCL-WBM map array
* @ppe_enable:
* @reo2ppe_ring:
* @ppe2tcl_ring:
* @ppe_release_ring:
* @ppe_wbm_release_ring:
* @ppe_num_tx_desc:
* @ppe_tx_comp_napi_budget:
* @ppeds_enable: Enable PPE Direct Switch feature
* @reo2ppe_ring: REO2PPE ring size
* @ppe2tcl_ring: PPE2TCL ring size
* @ppeds_num_tx_desc: Number of tx descs for PPE DS
* @ppeds_tx_comp_napi_budget: Napi budget for tx completions
* @pkt_capture_mode: Packet capture mode config
* @rx_mon_buf_ring_size: Rx monitor buf ring size
* @tx_mon_buf_ring_size: Tx monitor buf ring size
@@ -476,13 +474,11 @@ struct wlan_cfg_dp_soc_ctxt {
bool hw_cc_enabled;
struct wlan_cfg_tcl_wbm_ring_num_map *tcl_wbm_map_array;
#ifdef WLAN_SUPPORT_PPEDS
bool ppe_enable;
bool ppeds_enable;
int reo2ppe_ring;
int ppe2tcl_ring;
int ppe_release_ring;
int ppe_wbm_release_ring;
int ppe_num_tx_desc;
int ppe_tx_comp_napi_budget;
int ppeds_num_tx_desc;
int ppeds_tx_comp_napi_budget;
#endif
#ifdef WLAN_FEATURE_PKT_CAPTURE_V2
uint32_t pkt_capture_mode;
@@ -2056,13 +2052,13 @@ void wlan_cfg_dp_soc_ctx_dump(struct wlan_cfg_dp_soc_ctxt *cfg);
#ifdef WLAN_SUPPORT_PPEDS
/**
* wlan_cfg_get_dp_soc_is_ppe_enabled() - API to get ppe enable flag
* wlan_cfg_get_dp_soc_is_ppeds_enabled() - API to get ppe enable flag
* @cfg: Configuration Handle
*
* Return: true if ppe is enabled else return false
*/
bool
wlan_cfg_get_dp_soc_is_ppe_enabled(struct wlan_cfg_dp_soc_ctxt *cfg);
wlan_cfg_get_dp_soc_is_ppeds_enabled(struct wlan_cfg_dp_soc_ctxt *cfg);
/**
* wlan_cfg_get_dp_soc_reo2ppe_ring_size() - get ppe rx ring size
@@ -2083,34 +2079,25 @@ int
wlan_cfg_get_dp_soc_ppe2tcl_ring_size(struct wlan_cfg_dp_soc_ctxt *cfg);
/**
* wlan_cfg_get_dp_soc_ppe_release_ring_size() - get ppe tx comp ring size
* @cfg: Configuration Handle
*
* Return: size of ppe release ring
*/
int
wlan_cfg_get_dp_soc_ppe_release_ring_size(struct wlan_cfg_dp_soc_ctxt *cfg);
/**
* wlan_cfg_get_dp_soc_ppe_num_tx_desc() - Number of ppeds tx Descriptors
* wlan_cfg_get_dp_soc_ppeds_num_tx_desc() - Number of ppeds tx Descriptors
* @cfg: Configuration Handle
*
* Return: num_tx_desc
*/
int
wlan_cfg_get_dp_soc_ppe_num_tx_desc(struct wlan_cfg_dp_soc_ctxt *cfg);
wlan_cfg_get_dp_soc_ppeds_num_tx_desc(struct wlan_cfg_dp_soc_ctxt *cfg);
/**
* wlan_cfg_get_dp_soc_ppe_tx_comp_napi_budget() - ppeds Tx comp napi budget
* wlan_cfg_get_dp_soc_ppeds_tx_comp_napi_budget() - ppeds Tx comp napi budget
* @cfg: Configuration Handle
*
* Return: napi budget
*/
int
wlan_cfg_get_dp_soc_ppe_tx_comp_napi_budget(struct wlan_cfg_dp_soc_ctxt *cfg);
wlan_cfg_get_dp_soc_ppeds_tx_comp_napi_budget(struct wlan_cfg_dp_soc_ctxt *cfg);
#else
static inline bool
wlan_cfg_get_dp_soc_is_ppe_enabled(struct wlan_cfg_dp_soc_ctxt *cfg)
wlan_cfg_get_dp_soc_is_ppeds_enabled(struct wlan_cfg_dp_soc_ctxt *cfg)
{
return false;
}
@@ -2128,19 +2115,13 @@ wlan_cfg_get_dp_soc_ppe2tcl_ring_size(struct wlan_cfg_dp_soc_ctxt *cfg)
}
static inline int
wlan_cfg_get_dp_soc_ppe_release_ring_size(struct wlan_cfg_dp_soc_ctxt *cfg)
wlan_cfg_get_dp_soc_ppeds_num_tx_desc(struct wlan_cfg_dp_soc_ctxt *cfg)
{
return 0;
}
static inline int
wlan_cfg_get_dp_soc_ppe_num_tx_desc(struct wlan_cfg_dp_soc_ctxt *cfg)
{
return 0;
}
static inline int
wlan_cfg_get_dp_soc_ppe_tx_comp_napi_budget(struct wlan_cfg_dp_soc_ctxt *cfg)
wlan_cfg_get_dp_soc_ppeds_tx_comp_napi_budget(struct wlan_cfg_dp_soc_ctxt *cfg)
{
return 0;
}