diff options
author | Vladimir Oltean <vladimir.oltean@nxp.com> | 2024-07-14 01:53:34 +0300 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2024-07-15 06:26:16 +0300 |
commit | e3672a6d5e89589b734fdbf1e79528b7bcafd11f (patch) | |
tree | 9ebf257570650ae5dd6ee5192c8a6dad9fb4045d /tools/perf/scripts/python/export-to-sqlite.py | |
parent | e7072750bbcb4d74945ed1e22070b96cc3457def (diff) | |
download | linux-e3672a6d5e89589b734fdbf1e79528b7bcafd11f.tar.xz |
net: dpaa: stop ignoring TX queues past the number of CPUs
dpaa_fq_setup() iterates through the queues allocated by dpaa_alloc_all_fqs()
and saved in &priv->dpaa_fq_list.
The allocation for FQ_TYPE_TX looks as follows:
if (!dpaa_fq_alloc(dev, 0, dpaa_max_num_txqs(), list, FQ_TYPE_TX))
goto fq_alloc_failed;
Thus, iterating again through FQ_TYPE_TX queues in dpaa_fq_setup() and
counting them will never yield an egress_cnt larger than the allocated
size, dpaa_max_num_txqs().
The comparison serves no purpose since it is always true; remove it.
Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Acked-by: Madalin Bucur <madalin.bucur@oss.nxp.com>
Link: https://patch.msgid.link/20240713225336.1746343-4-vladimir.oltean@nxp.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