Skip to content

Commit 990b5c0

Browse files
Kalesh APrleon
authored andcommitted
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: 656dff5 ("RDMA/bnxt_re: Congestion control settings using debugfs hook") Signed-off-by: Kalesh AP <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Leon Romanovsky <[email protected]>
1 parent e3d57a0 commit 990b5c0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/infiniband/hw/bnxt_re/debugfs.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,7 @@ static int bnxt_re_configure_cc(struct bnxt_re_dev *rdev, u32 gen_ext, u32 offse
272272
int rc;
273273

274274
if (gen_ext != CC_CONFIG_GEN0_EXT0)
275-
return -EINVAL;
275+
return -EOPNOTSUPP;
276276

277277
rc = bnxt_re_fill_gen0_ext0(&ccparam, offset, val);
278278
if (rc)

0 commit comments

Comments
 (0)