Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

IB/mthca: fix for SQEr-to-RTS transition in modify QP

Fixes to SQEr->RTS transition in modify_qp:
1. The flag IB_QP_ACCESS_FLAGS is optional for UC qps
2. The SQEr state is not supported for RC qps

Signed-off-by: Jack Morgenstein <jackm@mellanox.co.il>
Signed-off-by: Roland Dreier <rolandd@cisco.com>

authored by

Jack Morgenstein and committed by
Roland Dreier
0364ffc3 5b3bc7a6

+2 -3
+2 -3
drivers/infiniband/hw/mthca/mthca_qp.c
··· 476 476 .opt_param = { 477 477 [UD] = (IB_QP_CUR_STATE | 478 478 IB_QP_QKEY), 479 - [UC] = IB_QP_CUR_STATE, 480 - [RC] = (IB_QP_CUR_STATE | 481 - IB_QP_MIN_RNR_TIMER), 479 + [UC] = (IB_QP_CUR_STATE | 480 + IB_QP_ACCESS_FLAGS), 482 481 [MLX] = (IB_QP_CUR_STATE | 483 482 IB_QP_QKEY), 484 483 }