diff options
author | 2024-04-02 15:54:26 +0200 | |
---|---|---|
committer | 2024-04-03 19:50:41 -0700 | |
commit | 0cd1453b7e55064d06b49eebe34ffb43748ba12e (patch) | |
tree | bdcc833cc96fb690aa93b0c1ec311bbb15ef9b7f /tools/perf/scripts/python/exported-sql-viewer.py | |
parent | mlxsw: pci: Break mlxsw_pci_cq_tasklet() into tasklets per queue type (diff) | |
download | wireguard-linux-0cd1453b7e55064d06b49eebe34ffb43748ba12e.tar.xz wireguard-linux-0cd1453b7e55064d06b49eebe34ffb43748ba12e.zip |
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/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions