]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
mlx4: correct error reporting in mlx4_master_process_vhcr()
authorAlok Tiwari <alok.a.tiwari@oracle.com>
Thu, 9 Apr 2026 09:27:47 +0000 (02:27 -0700)
committerJakub Kicinski <kuba@kernel.org>
Mon, 13 Apr 2026 20:52:04 +0000 (13:52 -0700)
commitbc174d054986ac5767828e6fbb3371f3474fbbd8
treea375e95eebf6dc8a2ae442df95cbf41965e25e3c
parentb025461303d87923abfaae6cc07ba8a83ddfd844
mlx4: correct error reporting in mlx4_master_process_vhcr()

mlx4_master_process_vhcr() logs vhcr->errno on failures, but this field
is never populated by the PF path. As a result, all failures are reported
with errno 0 and err print in status case which is misleading.

Use the actual return value (err) instead, translate it to FW status
before logging, and report both values.

Signed-off-by: Alok Tiwari <alok.a.tiwari@oracle.com>
Reviewed-by: Tariq Toukan <tariqt@nvidia.com>
Link: https://patch.msgid.link/20260409092754.508880-1-alok.a.tiwari@oracle.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/mellanox/mlx4/cmd.c