aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/stat-cpi.py
diff options
context:
space:
mode:
authorOz Shlomo <[email protected]>2023-02-12 15:25:12 +0200
committerPaolo Abeni <[email protected]>2023-02-14 11:00:00 +0100
commit8f2ca70c07f4cee68ed6297c1876c28b73c9af21 (patch)
treedc470a30a596cac50a70bcd39ec65ea4d917f1f4 /tools/perf/scripts/python/stat-cpi.py
parenta71fad0fd893b5db8ec5a8a287ff87720b7352a6 (diff)
net/sched: optimize action stats api calls
Currently the hw action stats update is called from tcf_exts_hw_stats_update, when a tc filter is dumped, and from tcf_action_copy_stats, when a hw action is dumped. However, the tcf_action_copy_stats is also called from tcf_action_dump. As such, the hw action stats update cb is called 3 times for every tc flower filter dump. Move the tc action hw stats update from tcf_action_copy_stats to tcf_dump_walker to update the hw action stats when tc action is dumped. Signed-off-by: Oz Shlomo <[email protected]> Reviewed-by: Simon Horman <[email protected]> Reviewed-by: Marcelo Ricardo Leitner <[email protected]> Acked-by: Jamal Hadi Salim <[email protected]> Signed-off-by: Paolo Abeni <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/stat-cpi.py')
0 files changed, 0 insertions, 0 deletions