qcacmn: Add ini configuation for RXDMA replenish buffer pool
Add ini configuration support for RXDMA replenish buffer pool feature Change-Id: Ib1edf04a61a52bf24dcbc3269df5067b090ad207 CRS-Fixed: 2869350
This commit is contained in:

committed by
snandini

parent
6d07f2a272
commit
47b1fe6415
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2016-2020 The Linux Foundation. All rights reserved.
|
||||
* Copyright (c) 2016-2021 The Linux Foundation. All rights reserved.
|
||||
*
|
||||
* Permission to use, copy, modify, and/or distribute this software for
|
||||
* any purpose with or without fee is hereby granted, provided that the
|
||||
@@ -620,6 +620,8 @@ wlan_cfg_soc_attach(struct cdp_ctrl_objmgr_psoc *psoc)
|
||||
wlan_cfg_ctx->pext_stats_enabled = cfg_get(psoc, CFG_DP_PEER_EXT_STATS);
|
||||
wlan_cfg_ctx->is_rx_buff_pool_enabled =
|
||||
cfg_get(psoc, CFG_DP_RX_BUFF_POOL_ENABLE);
|
||||
wlan_cfg_ctx->is_rx_refill_buff_pool_enabled =
|
||||
cfg_get(psoc, CFG_DP_RX_REFILL_BUFF_POOL_ENABLE);
|
||||
wlan_cfg_ctx->rx_pending_high_threshold =
|
||||
cfg_get(psoc, CFG_DP_RX_PENDING_HL_THRESHOLD);
|
||||
wlan_cfg_ctx->rx_pending_low_threshold =
|
||||
@@ -1474,11 +1476,22 @@ bool wlan_cfg_is_rx_buffer_pool_enabled(struct wlan_cfg_dp_soc_ctxt *cfg)
|
||||
{
|
||||
return cfg->is_rx_buff_pool_enabled;
|
||||
}
|
||||
|
||||
bool wlan_cfg_is_rx_refill_buffer_pool_enabled(struct wlan_cfg_dp_soc_ctxt *cfg)
|
||||
{
|
||||
return cfg->is_rx_refill_buff_pool_enabled;
|
||||
}
|
||||
#else
|
||||
bool wlan_cfg_is_rx_buffer_pool_enabled(struct wlan_cfg_dp_soc_ctxt *cfg)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
bool wlan_cfg_is_rx_refill_buffer_pool_enabled(
|
||||
struct wlan_cfg_dp_soc_ctxt *cfg)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
#endif /* WLAN_FEATURE_RX_PREALLOC_BUFFER_POOL */
|
||||
|
||||
#ifdef WLAN_DP_FEATURE_SW_LATENCY_MGR
|
||||
|
Reference in New Issue
Block a user