aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorVlad Buslov <[email protected]>2019-02-11 10:55:47 +0200
committerDavid S. Miller <[email protected]>2019-02-12 13:41:33 -0500
commit18d3eefb17cf1959bedb4f8cbb76b6aa05657776 (patch)
treef9e3a685f3b226ec7e27917c12f9d0ea0b8c1b25 /tools/perf/scripts/python
parentdfcd2a2b2274ec029699be70ea0fe41a7a03f728 (diff)
net: sched: refactor tcf_block_find() into standalone functions
Refactor tcf_block_find() code into three standalone functions: - __tcf_qdisc_find() to lookup Qdisc and increment its reference counter. - __tcf_qdisc_cl_find() to lookup class. - __tcf_block_find() to lookup block and increment its reference counter. This change is necessary to allow netlink tc rule update handlers to call these functions directly in order to conditionally take rtnl lock according to Qdisc class ops flags before calling any of class ops functions. Signed-off-by: Vlad Buslov <[email protected]> Acked-by: Jiri Pirko <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions