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. Link: https://lore.kernel.org/r/20200519072711.257271-5-leon@kernel.org Signed-off-by: Yishai Hadas <yishaih@mellanox.com> Signed-off-by: Leon Romanovsky <leonro@mellanox.com> Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
This commit is contained in:
committed by
Jason Gunthorpe
parent
cda9ee4942
commit
175ba58d62
@@ -64,6 +64,40 @@ enum ib_uverbs_access_flags {
|
||||
~(IB_UVERBS_ACCESS_OPTIONAL_FIRST - 1)
|
||||
};
|
||||
|
||||
enum ib_uverbs_srq_type {
|
||||
IB_UVERBS_SRQT_BASIC,
|
||||
IB_UVERBS_SRQT_XRC,
|
||||
IB_UVERBS_SRQT_TM,
|
||||
};
|
||||
|
||||
enum ib_uverbs_wq_type {
|
||||
IB_UVERBS_WQT_RQ,
|
||||
};
|
||||
|
||||
enum ib_uverbs_wq_flags {
|
||||
IB_UVERBS_WQ_FLAGS_CVLAN_STRIPPING = 1 << 0,
|
||||
IB_UVERBS_WQ_FLAGS_SCATTER_FCS = 1 << 1,
|
||||
IB_UVERBS_WQ_FLAGS_DELAY_DROP = 1 << 2,
|
||||
IB_UVERBS_WQ_FLAGS_PCI_WRITE_END_PADDING = 1 << 3,
|
||||
};
|
||||
|
||||
enum ib_uverbs_qp_type {
|
||||
IB_UVERBS_QPT_RC = 2,
|
||||
IB_UVERBS_QPT_UC,
|
||||
IB_UVERBS_QPT_UD,
|
||||
IB_UVERBS_QPT_RAW_PACKET = 8,
|
||||
IB_UVERBS_QPT_XRC_INI,
|
||||
IB_UVERBS_QPT_XRC_TGT,
|
||||
IB_UVERBS_QPT_DRIVER = 0xFF,
|
||||
};
|
||||
|
||||
enum ib_uverbs_qp_create_flags {
|
||||
IB_UVERBS_QP_CREATE_BLOCK_MULTICAST_LOOPBACK = 1 << 1,
|
||||
IB_UVERBS_QP_CREATE_SCATTER_FCS = 1 << 8,
|
||||
IB_UVERBS_QP_CREATE_CVLAN_STRIPPING = 1 << 9,
|
||||
IB_UVERBS_QP_CREATE_PCI_WRITE_END_PADDING = 1 << 11,
|
||||
};
|
||||
|
||||
enum ib_uverbs_query_port_cap_flags {
|
||||
IB_UVERBS_PCF_SM = 1 << 1,
|
||||
IB_UVERBS_PCF_NOTICE_SUP = 1 << 2,
|
||||
|
||||
Reference in New Issue
Block a user