aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorVlad Dogaru <vdogaru@nvidia.com>2025-01-02 20:14:11 +0200
committerJakub Kicinski <kuba@kernel.org>2025-01-06 16:33:41 -0800
commita105db854cf2e495caaa17f00ac0321b503def9b (patch)
tree2bdf13072988ce34f986d189ffe88a06c94e5d68 /tools/perf/scripts/python
parentnet/mlx5: HWS, fix definer's HWS_SET32 macro for negative offset (diff)
downloadlinux-a105db854cf2e495caaa17f00ac0321b503def9b.tar.gz
linux-a105db854cf2e495caaa17f00ac0321b503def9b.zip
net/mlx5: HWS, handle returned error value in pool alloc
Handle all negative return values as errors, not just -1. The code previously treated -ENOMEM (and potentially other negative values) as valid segment numbers, leading to incorrect behavior. This fix ensures that any negative return value is treated as an error. Signed-off-by: Vlad Dogaru <vdogaru@nvidia.com> Signed-off-by: Yevgeny Kliteynik <kliteyn@nvidia.com> Reviewed-by: Mark Bloch <mbloch@nvidia.com> Signed-off-by: Tariq Toukan <tariqt@nvidia.com> Link: https://patch.msgid.link/20250102181415.1477316-13-tariqt@nvidia.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions