summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorPetr Machata <petrm@nvidia.com>2021-04-20 17:53:40 +0300
committerDavid S. Miller <davem@davemloft.net>2021-04-21 02:43:13 +0300
commit290fe2c595fbf9b9099a93528d6f85d3d7d21fa4 (patch)
tree0c62077aee368e04ccd08a0bcae2c0f2f15d2e33 /tools/perf/scripts/python
parent17c0e6d1757f01ce54c7dee19396053d721ca006 (diff)
downloadlinux-290fe2c595fbf9b9099a93528d6f85d3d7d21fa4.tar.xz
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')
0 files changed, 0 insertions, 0 deletions