qcacld-3.0: Support stats quota for sta + sap ipa offload

Implement metering stats quota to support ipa offload sta plus
sap wifi sharing use cases.

Change-Id: Ic9d5ad817ffb4d671a43f3f3aebb2d8cce293873
CRs-Fixed: 2517696
This commit is contained in:
Sravan Kumar Kairam
2019-08-22 23:46:27 +05:30
committed by nshrivas
parent 3e39ae0e02
commit d42125f4f4
8 changed files with 175 additions and 53 deletions

View File

@@ -355,6 +355,17 @@ void ucfg_ipa_component_config_update(struct wlan_objmgr_psoc *psoc);
*/
uint32_t ucfg_ipa_get_tx_buf_count(void);
/**
* ucfg_ipa_update_tx_stats() - send embedded tx traffic in bytes to IPA
* @pdev: pdev obj
* @sta_tx: tx in bytes on sta vdev
* @ap_tx: tx in bytes on sap vdev
*
* Return: void
*/
void ucfg_ipa_update_tx_stats(struct wlan_objmgr_pdev *pdev, uint64_t sta_tx,
uint64_t ap_tx);
#else
static inline bool ucfg_ipa_is_present(void)
@@ -559,5 +570,11 @@ uint32_t ucfg_ipa_get_tx_buf_count(void)
{
return 0;
}
static inline
void ucfg_ipa_update_tx_stats(struct wlan_objmgr_pdev *pdev, uint64_t sta_tx,
uint64_t ap_tx)
{
}
#endif /* IPA_OFFLOAD */
#endif /* _WLAN_IPA_UCFG_API_H_ */