Skip to content

Commit bfb27ae

Browse files
Kalesh APrleon
authored andcommitted
RDMA/bnxt_re: Use the default mode of congestion control
Instead of driver setting the congestion mode, use the default values setup by Firmware. Enable the tos_ecn field in FW. Signed-off-by: Kalesh AP <[email protected]> Signed-off-by: Selvin Xavier <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Leon Romanovsky <[email protected]>
1 parent c64b16a commit bfb27ae

File tree

1 file changed

+2
-3
lines changed
  • drivers/infiniband/hw/bnxt_re

1 file changed

+2
-3
lines changed

drivers/infiniband/hw/bnxt_re/main.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2204,11 +2204,10 @@ static void bnxt_re_setup_cc(struct bnxt_re_dev *rdev, bool enable)
22042204

22052205
if (enable) {
22062206
cc_param.enable = 1;
2207-
cc_param.cc_mode = CMDQ_MODIFY_ROCE_CC_CC_MODE_PROBABILISTIC_CC_MODE;
2207+
cc_param.tos_ecn = 1;
22082208
}
22092209

2210-
cc_param.mask = (CMDQ_MODIFY_ROCE_CC_MODIFY_MASK_CC_MODE |
2211-
CMDQ_MODIFY_ROCE_CC_MODIFY_MASK_ENABLE_CC |
2210+
cc_param.mask = (CMDQ_MODIFY_ROCE_CC_MODIFY_MASK_ENABLE_CC |
22122211
CMDQ_MODIFY_ROCE_CC_MODIFY_MASK_TOS_ECN);
22132212

22142213
if (bnxt_qplib_modify_cc(&rdev->qplib_res, &cc_param))

0 commit comments

Comments
 (0)