summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/exported-sql-viewer.py
diff options
context:
space:
mode:
authorJunxian Huang <huangjunxian6@hisilicon.com>2025-03-11 11:48:54 +0300
committerLeon Romanovsky <leon@kernel.org>2025-03-12 21:35:50 +0300
commit13c90c222049764bb7e6a1689bd785f424bd8bd5 (patch)
tree40603f7dce35cdcbfe094ddf1c408c74c2c05d5a /tools/perf/scripts/python/exported-sql-viewer.py
parentb9f59a24ba35a7d955a9f8e148dd9f85b7b40a01 (diff)
downloadlinux-13c90c222049764bb7e6a1689bd785f424bd8bd5.tar.xz
RDMA/hns: Fix invalid sq params not being blocked
SQ params from userspace are checked in by set_user_sq_size(). But when the check fails, the function doesn't return but instead keep running and overwrite 'ret'. As a result, the invalid params will not get blocked actually. Add a return right after the failed check. Besides, although the check result of kernel sq params will not be overwritten, to keep coding style unified, move default_congest_type() before set_kernel_sq_size(). Fixes: 6ec429d5887a ("RDMA/hns: Support userspace configuring congestion control algorithm with QP granularity") Signed-off-by: Junxian Huang <huangjunxian6@hisilicon.com> Link: https://patch.msgid.link/20250311084857.3803665-5-huangjunxian6@hisilicon.com Signed-off-by: Leon Romanovsky <leon@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions