summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/stackcollapse.py
diff options
context:
space:
mode:
authorPetr Machata <petrm@nvidia.com>2021-04-20 16:53:40 +0200
committerDavid S. Miller <davem@davemloft.net>2021-04-20 16:43:13 -0700
commit290fe2c595fbf9b9099a93528d6f85d3d7d21fa4 (patch)
tree0c62077aee368e04ccd08a0bcae2c0f2f15d2e33 /tools/perf/scripts/python/stackcollapse.py
parent17c0e6d1757f01ce54c7dee19396053d721ca006 (diff)
mlxsw: spectrum_qdisc: Simplify mlxsw_sp_qdisc_compare()
The purpose of this function is to filter out events that are related to qdiscs that are not offloaded, or are not offloaded anymore. But the function is unnecessarily thorough: - mlxsw_sp_qdisc pointer is never NULL in the context where it is called - Two qdiscs with the same handle will never have different types. Even when replacing one qdisc with another in the same class, Linux will not permit handle reuse unless the qdisc type also matches. Simplify the function by omitting these two unnecessary conditions. Signed-off-by: Petr Machata <petrm@nvidia.com> Reviewed-by: Ido Schimmel <idosch@nvidia.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions