diff options
author | Cong Wang <[email protected]> | 2019-06-28 11:03:42 -0700 |
---|---|---|
committer | David S. Miller <[email protected]> | 2019-07-01 19:15:46 -0700 |
commit | d39d714969cda5cbda291402c8c6b1fb1047f42e (patch) | |
tree | 6e8b7f868b4bd79fa2f07df468072dc22b0fdc54 /tools/perf/scripts/python/export-to-sqlite.py | |
parent | e33d2b74d805af0e4c8060f41040595ba105a520 (diff) |
idr: introduce idr_for_each_entry_continue_ul()
Similarly, other callers of idr_get_next_ul() suffer the same
overflow bug as they don't handle it properly either.
Introduce idr_for_each_entry_continue_ul() to help these callers
iterate from a given ID.
cls_flower needs more care here because it still has overflow when
does arg->cookie++, we have to fold its nested loops into one
and remove the arg->cookie++.
Fixes: 01683a146999 ("net: sched: refactor flower walk to iterate over idr")
Fixes: 12d6066c3b29 ("net/mlx5: Add flow counters idr")
Reported-by: Li Shuang <[email protected]>
Cc: Davide Caratti <[email protected]>
Cc: Vlad Buslov <[email protected]>
Cc: Chris Mi <[email protected]>
Cc: Matthew Wilcox <[email protected]>
Signed-off-by: Cong Wang <[email protected]>
Tested-by: Davide Caratti <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions