]> www.infradead.org Git - users/jedix/linux-maple.git/commit
RDMA/bnxt_re: Fix return code of bnxt_re_configure_cc
authorKalesh AP <kalesh-anakkur.purayil@broadcom.com>
Tue, 20 May 2025 03:59:09 +0000 (09:29 +0530)
committerLeon Romanovsky <leon@kernel.org>
Wed, 21 May 2025 10:05:47 +0000 (06:05 -0400)
commit990b5c07f677a0b633b41130a70771337c18343e
treeacc49100342bc4f923a3e33a5a0512f496fcef3e
parente3d57a00d4d1f36689e9eab80b60d5024361efec
RDMA/bnxt_re: Fix return code of bnxt_re_configure_cc

Driver currently supports modifying GEN0_EXT0 CC parameters
through debugfs hook.

Fixed to return -EOPNOTSUPP instead of -EINVAL in bnxt_re_configure_cc()
when the user tries to modify any other CC parameters.

Fixes: 656dff55da19 ("RDMA/bnxt_re: Congestion control settings using debugfs hook")
Signed-off-by: Kalesh AP <kalesh-anakkur.purayil@broadcom.com>
Link: https://patch.msgid.link/20250520035910.1061918-4-kalesh-anakkur.purayil@broadcom.com
Signed-off-by: Leon Romanovsky <leon@kernel.org>
drivers/infiniband/hw/bnxt_re/debugfs.c