qcacmn: Support INI cfg for mon dst interrupt

Monitor destination ring interrupt processing is configurable.
For improved CPU utilization the batch counter threshold and
timer threshold is updated and also an option is provided to make
this values configurable through INI.

Change-Id: Ibe671927f53f3e8fac7f17540c21a2c7edae427b
CRs-Fixed: 3569505
这个提交包含在:
Santosh Anbu
2023-07-24 16:29:47 +05:30
提交者 Rahul Choudhary
父节点 436efcf19a
当前提交 ba59a82e83
修改 3 个文件,包含 65 行新增0 行删除

查看文件

@@ -173,6 +173,8 @@ struct wlan_srng_cfg {
* @int_timer_threshold_rx:
* @int_batch_threshold_other:
* @int_timer_threshold_other:
* @int_batch_threshold_mon_dest: Batch threshold counter for monitor dest
* @int_timer_threshold_mon_dest: Timer threshold counter for monitor dest
* @tx_ring_size:
* @time_control_bp:
* @qref_control_size: list size for memory history arrays
@@ -380,6 +382,8 @@ struct wlan_cfg_dp_soc_ctxt {
int int_timer_threshold_rx;
int int_batch_threshold_other;
int int_timer_threshold_other;
int int_batch_threshold_mon_dest;
int int_timer_threshold_mon_dest;
int tx_ring_size;
int time_control_bp;
int qref_control_size;
@@ -1535,6 +1539,24 @@ int wlan_cfg_get_int_batch_threshold_other(struct wlan_cfg_dp_soc_ctxt *cfg);
*/
int wlan_cfg_get_int_timer_threshold_other(struct wlan_cfg_dp_soc_ctxt *cfg);
/**
* wlan_cfg_get_int_batch_threshold_mon_dest - Get interrupt mitigation cfg for
* monitor destination srng
* @cfg: soc configuration context
*
* Return: Batch threshold
*/
int wlan_cfg_get_int_batch_threshold_mon_dest(struct wlan_cfg_dp_soc_ctxt *cfg);
/**
* wlan_cfg_get_int_timer_threshold_mon_dest - Get interrupt mitigation cfg for
* monitor destination srngs
* @cfg: soc configuration context
*
* Return: Timer threshold
*/
int wlan_cfg_get_int_timer_threshold_mon_dest(struct wlan_cfg_dp_soc_ctxt *cfg);
/**
* wlan_cfg_get_checksum_offload - Get checksum offload enable or disable status
* @cfg: soc configuration context