mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-14 16:46:15 -04:00
qcacld-3.0: Initialize fisa flow entry napi id to other than zero value
Zero initialization of Napi id can cause napi id zero context to flush flow that are uninitialized. Which may cause a race condition if some other napi context is using the uninitialized fisa flow entry during the flow learning phase. Change-Id: Iedca4ee112efa29c70a632c4a365e95f71e8f506 CRs-Fixed: 2864633
This commit is contained in:
parent
0e597336ba
commit
80b3077490
1 changed files with 8 additions and 0 deletions
|
|
@ -28,6 +28,8 @@
|
|||
/* Timeout in milliseconds to wait for CMEM FST HTT response */
|
||||
#define DP_RX_FST_CMEM_RESP_TIMEOUT 2000
|
||||
|
||||
#define INVALID_NAPI 0Xff
|
||||
|
||||
#ifdef WLAN_SUPPORT_RX_FISA
|
||||
void dp_fisa_rx_fst_update_work(void *arg);
|
||||
|
||||
|
|
@ -205,8 +207,10 @@ static QDF_STATUS dp_rx_fst_cmem_init(struct dp_rx_fst *fst)
|
|||
QDF_STATUS dp_rx_fst_attach(struct dp_soc *soc, struct dp_pdev *pdev)
|
||||
{
|
||||
struct dp_rx_fst *fst;
|
||||
struct dp_fisa_rx_sw_ft *ft_entry;
|
||||
uint8_t *hash_key;
|
||||
struct wlan_cfg_dp_soc_ctxt *cfg = soc->wlan_cfg_ctx;
|
||||
int i = 0;
|
||||
QDF_STATUS status;
|
||||
|
||||
/* Check if it is enabled in the INI */
|
||||
|
|
@ -250,6 +254,10 @@ QDF_STATUS dp_rx_fst_attach(struct dp_soc *soc, struct dp_pdev *pdev)
|
|||
if (!fst->base)
|
||||
goto out2;
|
||||
|
||||
ft_entry = (struct dp_fisa_rx_sw_ft *)fst->base;
|
||||
for (i = 0; i < fst->max_entries; i++)
|
||||
ft_entry[i].napi_id = INVALID_NAPI;
|
||||
|
||||
fst->hal_rx_fst = hal_rx_fst_attach(soc->osdev,
|
||||
&fst->hal_rx_fst_base_paddr,
|
||||
fst->max_entries,
|
||||
|
|
|
|||
Loading…
Reference in a new issue