History

RDMA: Check attr_mask during modify_qp

Each driver should check that it can support the provided attr_mask during modify_qp. IB_USER_VERBS_EX_CMD_MODIFY_QP was being used to block modify_qp_ex because the driver didn't check RATE_LIMIT.

Jason Gunthorpe committed 6 years ago

Commit 26e990b1 parent 652caba21 files · +53 −22Browse files

Showing the changes to include/uapi (1 of 21 files). Show all

Unified · Split

include/uapi/rdma/ib_user_verbs.h+0−14
@@ -596,20 +596,6 @@ enum { · 595 unmodified lines
596 IB_UVERBS_CREATE_QP_SUP_COMP_MASK = IB_UVERBS_CREATE_QP_MASK_IND_TABLE,596 IB_UVERBS_CREATE_QP_SUP_COMP_MASK = IB_UVERBS_CREATE_QP_MASK_IND_TABLE,
597};597};
598 598
599enum {
600 /*
601 * This value is equal to IB_QP_DEST_QPN.
602 */
603 IB_USER_LEGACY_LAST_QP_ATTR_MASK = 1ULL << 20,
604};
605
606enum {
607 /*
608 * This value is equal to IB_QP_RATE_LIMIT.
609 */
610 IB_USER_LAST_QP_ATTR_MASK = 1ULL << 25,
611};
612
613struct ib_uverbs_ex_create_qp {599struct ib_uverbs_ex_create_qp {
614 __aligned_u64 user_handle;600 __aligned_u64 user_handle;
615 __u32 pd_handle;601 __u32 pd_handle;