qcacmn: skip monitor reap timer if irq is enabled
For CFR test, monitor reap timer will start, meanwhile irq for monitor status ring is also enabled, these two will conflict and access mon_pdev->rx_status_q in the same time, skb double free issue is reported. If irq for monitor status ring has been enabled, skip to start monitor reap timer which is unnecessary. Change-Id: Ic015d370cb80604d7e4c261054ad529b64edca25 CRs-Fixed: 3614097
This commit is contained in:

committed by
Rahul Choudhary

parent
52662b6274
commit
65fdbbce9a
@@ -3507,6 +3507,25 @@ uint16_t hal_srng_dst_get_hpidx(hal_ring_handle_t hal_ring_hdl)
|
||||
return hp / srng->entry_size;
|
||||
}
|
||||
|
||||
/**
|
||||
* hal_srng_batch_threshold_irq_enabled() - check if srng batch count
|
||||
* threshold irq enabled
|
||||
* @hal_ring_hdl: srng handle
|
||||
*
|
||||
* Return: true if enabled, false if not.
|
||||
*/
|
||||
static inline
|
||||
bool hal_srng_batch_threshold_irq_enabled(hal_ring_handle_t hal_ring_hdl)
|
||||
{
|
||||
struct hal_srng *srng = (struct hal_srng *)hal_ring_hdl;
|
||||
|
||||
if (srng->intr_batch_cntr_thres_entries &&
|
||||
srng->flags & HAL_SRNG_MSI_INTR)
|
||||
return true;
|
||||
else
|
||||
return false;
|
||||
}
|
||||
|
||||
#ifdef FEATURE_DIRECT_LINK
|
||||
/**
|
||||
* hal_srng_set_msi_irq_config() - Set the MSI irq configuration for srng
|
||||
|
Reference in New Issue
Block a user