Skip to content

Commit 81c0db3

Browse files
Saravanan Vajravelrleon
authored andcommitted
RDMA/bnxt_re: Avoid clearing VLAN_ID mask in modify qp path
Driver is always clearing the mask that sets the VLAN ID/Service Level in the adapter. Recent change for supporting multiple traffic class exposed this issue. Allow setting SL and VLAN_ID while QP is moved from INIT to RTR state. Fixes: 1ac5a40 ("RDMA/bnxt_re: Add bnxt_re RoCE driver") Fixes: c64b16a ("RDMA/bnxt_re: Support different traffic class") Signed-off-by: Saravanan Vajravel <saravanan.vajravel@broadcom.com> Signed-off-by: Selvin Xavier <selvin.xavier@broadcom.com> Link: https://patch.msgid.link/1741670196-2919-1-git-send-email-selvin.xavier@broadcom.com Signed-off-by: Leon Romanovsky <leon@kernel.org>
1 parent 556f93b commit 81c0db3

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

drivers/infiniband/hw/bnxt_re/qplib_fp.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1217,8 +1217,6 @@ static void __modify_flags_from_init_state(struct bnxt_qplib_qp *qp)
12171217
qp->path_mtu =
12181218
CMDQ_MODIFY_QP_PATH_MTU_MTU_2048;
12191219
}
1220-
qp->modify_flags &=
1221-
~CMDQ_MODIFY_QP_MODIFY_MASK_VLAN_ID;
12221220
/* Bono FW require the max_dest_rd_atomic to be >= 1 */
12231221
if (qp->max_dest_rd_atomic < 1)
12241222
qp->max_dest_rd_atomic = 1;

0 commit comments

Comments
 (0)