IB/uverbs: Introduce create/destroy QP commands over ioctl
Introduce create/destroy QP commands over the ioctl interface to let it be extended to get an asynchronous event FD. Link: https://lore.kernel.org/r/20200519072711.257271-8-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
ef3bc084a8
commit
6d1e7ba241
@@ -121,6 +121,34 @@ enum uverbs_attrs_destroy_flow_action_esp {
|
||||
UVERBS_ATTR_DESTROY_FLOW_ACTION_HANDLE,
|
||||
};
|
||||
|
||||
enum uverbs_attrs_create_qp_cmd_attr_ids {
|
||||
UVERBS_ATTR_CREATE_QP_HANDLE,
|
||||
UVERBS_ATTR_CREATE_QP_XRCD_HANDLE,
|
||||
UVERBS_ATTR_CREATE_QP_PD_HANDLE,
|
||||
UVERBS_ATTR_CREATE_QP_SRQ_HANDLE,
|
||||
UVERBS_ATTR_CREATE_QP_SEND_CQ_HANDLE,
|
||||
UVERBS_ATTR_CREATE_QP_RECV_CQ_HANDLE,
|
||||
UVERBS_ATTR_CREATE_QP_IND_TABLE_HANDLE,
|
||||
UVERBS_ATTR_CREATE_QP_USER_HANDLE,
|
||||
UVERBS_ATTR_CREATE_QP_CAP,
|
||||
UVERBS_ATTR_CREATE_QP_TYPE,
|
||||
UVERBS_ATTR_CREATE_QP_FLAGS,
|
||||
UVERBS_ATTR_CREATE_QP_SOURCE_QPN,
|
||||
UVERBS_ATTR_CREATE_QP_EVENT_FD,
|
||||
UVERBS_ATTR_CREATE_QP_RESP_CAP,
|
||||
UVERBS_ATTR_CREATE_QP_RESP_QP_NUM,
|
||||
};
|
||||
|
||||
enum uverbs_attrs_destroy_qp_cmd_attr_ids {
|
||||
UVERBS_ATTR_DESTROY_QP_HANDLE,
|
||||
UVERBS_ATTR_DESTROY_QP_RESP,
|
||||
};
|
||||
|
||||
enum uverbs_methods_qp {
|
||||
UVERBS_METHOD_QP_CREATE,
|
||||
UVERBS_METHOD_QP_DESTROY,
|
||||
};
|
||||
|
||||
enum uverbs_attrs_create_srq_cmd_attr_ids {
|
||||
UVERBS_ATTR_CREATE_SRQ_HANDLE,
|
||||
UVERBS_ATTR_CREATE_SRQ_PD_HANDLE,
|
||||
|
||||
@@ -96,6 +96,7 @@ enum ib_uverbs_qp_create_flags {
|
||||
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,
|
||||
IB_UVERBS_QP_CREATE_SQ_SIG_ALL = 1 << 12,
|
||||
};
|
||||
|
||||
enum ib_uverbs_query_port_cap_flags {
|
||||
@@ -219,6 +220,14 @@ struct ib_uverbs_query_port_resp_ex {
|
||||
__u8 reserved[6];
|
||||
};
|
||||
|
||||
struct ib_uverbs_qp_cap {
|
||||
__u32 max_send_wr;
|
||||
__u32 max_recv_wr;
|
||||
__u32 max_send_sge;
|
||||
__u32 max_recv_sge;
|
||||
__u32 max_inline_data;
|
||||
};
|
||||
|
||||
enum rdma_driver_id {
|
||||
RDMA_DRIVER_UNKNOWN,
|
||||
RDMA_DRIVER_MLX5,
|
||||
|
||||
Reference in New Issue
Block a user