qcacmn: add INI to enable/disable RX buffer pool

Add a new INI parameter to enable/disable RX buffer pool.

Change-Id: I186f2e1c4f4d008371efb6b041dc93e029c2f7c3
CRs-Fixed: 2731517
Этот коммит содержится в:
Manikanta Pubbisetty
2020-07-15 17:35:39 +05:30
коммит произвёл snandini
родитель fa2844b787
Коммит d315e2d238
3 изменённых файлов: 33 добавлений и 1 удалений

Просмотреть файл

@@ -185,6 +185,8 @@ struct wlan_srng_cfg {
* @pktlog_buffer_size: packet log buffer size
* @is_rx_fisa_enabled: flag to enable/disable FISA Rx
* @pext_stats_enabled: Flag to enable and disabled peer extended stats
* @is_rx_buff_pool_enabled: flag to enable/disable emergency RX buffer
* pool support
*/
struct wlan_cfg_dp_soc_ctxt {
int num_int_ctxts;
@@ -288,6 +290,7 @@ struct wlan_cfg_dp_soc_ctxt {
uint32_t delayed_replenish_entries;
uint32_t reo_rings_mapping;
bool pext_stats_enabled;
bool is_rx_buff_pool_enabled;
};
/**
@@ -1335,6 +1338,16 @@ void wlan_cfg_fill_interrupt_mask(struct wlan_cfg_dp_soc_ctxt *wlan_cfg_ctx,
* Return: true if enabled, false otherwise.
*/
bool wlan_cfg_is_rx_fisa_enabled(struct wlan_cfg_dp_soc_ctxt *cfg);
/**
* wlan_cfg_is_rx_buffer_pool_enabled() - Get RX buffer pool enabled flag
*
*
* @cfg: soc configuration context
*
* Return: true if enabled, false otherwise.
*/
bool wlan_cfg_is_rx_buffer_pool_enabled(struct wlan_cfg_dp_soc_ctxt *cfg);
#endif
void wlan_cfg_set_tso_desc_attach_defer(struct wlan_cfg_dp_soc_ctxt *cfg,