qcacmn: Use txrx_intr_attach function to attach to poll and interrupt

Use appropriate reo dst ring size based on target type

Change-Id: I6e26537d25b4b8d4507acc689b9d17c83aa4d27e
This commit is contained in:
Balamurugan Mahalingam 2018-06-25 17:08:08 +05:30 • committed by nshrivas
commit 54d16a9371
4 changed files with 73 additions and 16 deletions

View file

@ -600,6 +600,17 @@ void wlan_cfg_set_num_tx_ext_desc_pool(struct wlan_cfg_dp_soc_ctxt *cfg, int num
cfg->num_tx_ext_desc_pool = num_pool;
}
int wlan_cfg_get_reo_dst_ring_size(struct wlan_cfg_dp_soc_ctxt *cfg)
{
return cfg->reo_dst_ring_size;
}
void wlan_cfg_set_reo_dst_ring_size(struct wlan_cfg_dp_soc_ctxt *cfg,
int reo_dst_ring_size)
{
cfg->reo_dst_ring_size = reo_dst_ring_size;
}
int wlan_cfg_get_num_tx_desc(struct wlan_cfg_dp_soc_ctxt *cfg)
{
return cfg->num_tx_desc;

View file

@ -163,6 +163,7 @@ struct wlan_cfg_dp_soc_ctxt {
uint32_t tx_flow_start_queue_offset;
#endif
uint32_t rx_defrag_min_timeout;
int reo_dst_ring_size;
};
/**
@ -484,6 +485,24 @@ void wlan_cfg_set_num_tx_desc_pool(struct wlan_cfg_dp_soc_ctxt *cfg, int num_poo
int wlan_cfg_get_num_tx_ext_desc_pool(
struct wlan_cfg_dp_soc_ctxt *wlan_cfg_ctx);
/*
* wlan_cfg_get_reo_dst_ring_size() - Get REO destination ring size
*
* @wlan_cfg_ctx - Configuration Handle
*
* Return: reo_dst_ring_size
*/
int wlan_cfg_get_reo_dst_ring_size(struct wlan_cfg_dp_soc_ctxt *cfg);
/*
* wlan_cfg_set_num_tx_desc_pool() - Set the REO Destination ring size
*
* @wlan_cfg_ctx - Configuration Handle
* @reo_dst_ring_size - REO Destination ring size
*/
void wlan_cfg_set_reo_dst_ring_size(struct wlan_cfg_dp_soc_ctxt *cfg,
int reo_dst_ring_size);
/*
* wlan_cfg_set_num_tx_ext_desc_pool() - Set the number of Tx MSDU ext Descriptor
* pools