Commit 8485d09
i40e: fix accessing vsi->active_filters without holding lock
Fix accessing vsi->active_filters without holding the mac_filter_hash_lock.
Move vsi->active_filters = 0 inside critical section and
move clear_bit(__I40E_VSI_OVERFLOW_PROMISC, vsi->state) after the critical
section to ensure the new filters from other threads can be added only after
filters cleaning in the critical section is finished.
Fixes: 278e7d0 ("i40e: store MAC/VLAN filters in a hash with the MAC Address as key")
Signed-off-by: Aleksandr Loktionov <aleksandr.loktionov@intel.com>
Tested-by: Pucha Himasekhar Reddy <himasekharx.reddy.pucha@intel.com> (A Contingent worker at Intel)
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>1 parent 338469d commit 8485d09
1 file changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14133 | 14133 | | |
14134 | 14134 | | |
14135 | 14135 | | |
14136 | | - | |
14137 | | - | |
14138 | 14136 | | |
| 14137 | + | |
14139 | 14138 | | |
14140 | 14139 | | |
14141 | 14140 | | |
14142 | 14141 | | |
14143 | 14142 | | |
14144 | 14143 | | |
| 14144 | + | |
14145 | 14145 | | |
14146 | 14146 | | |
14147 | 14147 | | |
| |||
0 commit comments