diff options
author | Amit Cohen <amcohen@nvidia.com> | 2024-04-02 15:54:26 +0200 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2024-04-03 19:50:41 -0700 |
commit | 0cd1453b7e55064d06b49eebe34ffb43748ba12e (patch) | |
tree | bdcc833cc96fb690aa93b0c1ec311bbb15ef9b7f /tools/perf/scripts/python/export-to-sqlite.py | |
parent | 1df7d871e3491de2f53afafedef8383185a3f613 (diff) |
mlxsw: pci: Remove mlxsw_pci_sdq_count()
The number of SDQs is stored as part of 'mlxsw_pci' structure. In some
cases, the driver uses this value and in some cases it calls
mlxsw_pci_sdq_count() to get the value. Align the code to use the
stored value. This simplifies the code and makes it clearer that the
value is always the same. Rename 'mlxsw_pci->num_sdq_cqs' to
'mlxsw_pci->num_sdqs' as now it is used not only in CQ context.
Signed-off-by: Amit Cohen <amcohen@nvidia.com>
Reviewed-by: Ido Schimmel <idosch@nvidia.com>
Signed-off-by: Petr Machata <petrm@nvidia.com>
Reviewed-by: Simon Horman <horms@kernel.org>
Link: https://lore.kernel.org/r/0c8788506d9af35d589dbf64be35a508fd63d681.1712062203.git.petrm@nvidia.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions