aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/event_analyzing_sample.py
diff options
context:
space:
mode:
authorPiotr Gardocki <[email protected]>2023-08-07 13:50:11 -0700
committerJakub Kicinski <[email protected]>2023-08-08 16:38:28 -0700
commit0fb1d8eb234b6979d4981d2d385780dd7d8d9771 (patch)
treeafa3a1465706ee36f09eb5c8f57ea05491a1cc88 /tools/perf/scripts/python/event_analyzing_sample.py
parent06b412589eef780b792e73df131d35dc43cc4a49 (diff)
iavf: fix potential races for FDIR filters
Add fdir_fltr_lock locking in unprotected places. The change in iavf_fdir_is_dup_fltr adds a spinlock around a loop which iterates over all filters and looks for a duplicate. The filter can be removed from list and freed from memory at the same time it's being compared. All other places where filters are deleted are already protected with spinlock. The remaining changes protect adapter->fdir_active_fltr variable so now all its uses are under a spinlock. Fixes: 527691bf0682 ("iavf: Support IPv4 Flow Director filters") Signed-off-by: Piotr Gardocki <[email protected]> Tested-by: Rafal Romanowski <[email protected]> Signed-off-by: Tony Nguyen <[email protected]> Reviewed-by: Simon Horman <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/event_analyzing_sample.py')
0 files changed, 0 insertions, 0 deletions