History

IB/uverbs: Move QP, SRQ, WQ type and flags to UAPI

These constants are going to be used in the ioctl interface in coming patches so they are part of the UAPI, place them in the correct header for clarity.

Yishai Hadas committed 6 years ago

Commit 175ba581 parent cda9ee42 files · +58 −19Browse files

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

Unified · Split

include/uapi/rdma/ib_user_ioctl_verbs.h+34−0
@@ -64,6 +64,40 @@ enum ib_uverbs_access_flags { · 63 unmodified lines
64 ~(IB_UVERBS_ACCESS_OPTIONAL_FIRST - 1)64 ~(IB_UVERBS_ACCESS_OPTIONAL_FIRST - 1)
65};65};
66 66
67enum ib_uverbs_srq_type {
68 IB_UVERBS_SRQT_BASIC,
69 IB_UVERBS_SRQT_XRC,
70 IB_UVERBS_SRQT_TM,
71};
72
73enum ib_uverbs_wq_type {
74 IB_UVERBS_WQT_RQ,
75};
76
77enum ib_uverbs_wq_flags {
78 IB_UVERBS_WQ_FLAGS_CVLAN_STRIPPING = 1 << 0,
79 IB_UVERBS_WQ_FLAGS_SCATTER_FCS = 1 << 1,
80 IB_UVERBS_WQ_FLAGS_DELAY_DROP = 1 << 2,
81 IB_UVERBS_WQ_FLAGS_PCI_WRITE_END_PADDING = 1 << 3,
82};
83
84enum ib_uverbs_qp_type {
85 IB_UVERBS_QPT_RC = 2,
86 IB_UVERBS_QPT_UC,
87 IB_UVERBS_QPT_UD,
88 IB_UVERBS_QPT_RAW_PACKET = 8,
89 IB_UVERBS_QPT_XRC_INI,
90 IB_UVERBS_QPT_XRC_TGT,
91 IB_UVERBS_QPT_DRIVER = 0xFF,
92};
93
94enum ib_uverbs_qp_create_flags {
95 IB_UVERBS_QP_CREATE_BLOCK_MULTICAST_LOOPBACK = 1 << 1,
96 IB_UVERBS_QP_CREATE_SCATTER_FCS = 1 << 8,
97 IB_UVERBS_QP_CREATE_CVLAN_STRIPPING = 1 << 9,
98 IB_UVERBS_QP_CREATE_PCI_WRITE_END_PADDING = 1 << 11,
99};
100
67enum ib_uverbs_query_port_cap_flags {101enum ib_uverbs_query_port_cap_flags {
68 IB_UVERBS_PCF_SM = 1 << 1,102 IB_UVERBS_PCF_SM = 1 << 1,
69 IB_UVERBS_PCF_NOTICE_SUP = 1 << 2,103 IB_UVERBS_PCF_NOTICE_SUP = 1 << 2,