diff options
| author | Vlad Buslov <[email protected]> | 2018-07-09 13:29:11 +0300 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2018-07-13 18:24:27 -0700 |
| commit | 01683a1469995cc7aaf833d6f8b3f1c1d2fc3b92 (patch) | |
| tree | d93f015b6615afe81d4834c5ff052d2e3b00a001 /tools/perf/scripts/python/bin/stackcollapse-record | |
| parent | c921c2077b32081617789a645120148bc8b60c98 (diff) | |
net: sched: refactor flower walk to iterate over idr
Extend struct tcf_walker with additional 'cookie' field. It is intended to
be used by classifier walk implementations to continue iteration directly
from particular filter, instead of iterating 'skip' number of times.
Change flower walk implementation to save filter handle in 'cookie'. Each
time flower walk is called, it looks up filter with saved handle directly
with idr, instead of iterating over filter linked list 'skip' number of
times. This change improves complexity of dumping flower classifier from
quadratic to linearithmic. (assuming idr lookup has logarithmic complexity)
Reviewed-by: Jiri Pirko <[email protected]>
Signed-off-by: Vlad Buslov <[email protected]>
Reported-by: Simon Horman <[email protected]>
Reviewed-by: Simon Horman <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/bin/stackcollapse-record')
0 files changed, 0 insertions, 0 deletions