summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/exported-sql-viewer.py
diff options
context:
space:
mode:
authorDenis Bolotin <denis.bolotin@cavium.com>2018-11-19 17:28:31 +0300
committerDavid S. Miller <davem@davemloft.net>2018-11-20 05:38:15 +0300
commiteb62cca9bee842e5b23bd0ddfb1f271ca95e8759 (patch)
tree49c09bf5da21021f25e88a423b42b8014ea0336e /tools/perf/scripts/python/exported-sql-viewer.py
parent276d43f0ae963312c0cd0e2b9a85fd11ac65dfcc (diff)
downloadlinux-eb62cca9bee842e5b23bd0ddfb1f271ca95e8759.tar.xz
qed: Fix QM getters to always return a valid pq
The getter callers doesn't know the valid Physical Queues (PQ) values. This patch makes sure that a valid PQ will always be returned. The patch consists of 3 fixes: - When qed_init_qm_get_idx_from_flags() receives a disabled flag, it returned PQ 0, which can potentially be another function's pq. Verify that flag is enabled, otherwise return default start_pq. - When qed_init_qm_get_idx_from_flags() receives an unknown flag, it returned NULL and could lead to a segmentation fault. Return default start_pq instead. - A modulo operation was added to MCOS/VFS PQ getters to make sure the PQ returned is in range of the required flag. Fixes: b5a9ee7cf3be ("qed: Revise QM cofiguration") Signed-off-by: Denis Bolotin <denis.bolotin@cavium.com> Signed-off-by: Michal Kalderon <michal.kalderon@cavium.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions