IB/uverbs: Add WQ support
User space applications which use RSS functionality need to create a work queue object (WQ). The lifetime of such an object is: * Create a WQ * Modify the WQ from reset to init state. * Use the WQ (by downstream patches). * Destroy the WQ. These commands are added to the uverbs API. Signed-off-by: Yishai Hadas <yishaih@mellanox.com> Signed-off-by: Matan Barak <matanb@mellanox.com> Reviewed-by: Sagi Grimberg <sagi@rimberg.me> Signed-off-by: Doug Ledford <dledford@redhat.com>
This commit is contained in:
committed by
Doug Ledford
parent
5fd251c8b4
commit
f213c05272
@@ -95,6 +95,9 @@ enum {
|
||||
IB_USER_VERBS_EX_CMD_CREATE_QP = IB_USER_VERBS_CMD_CREATE_QP,
|
||||
IB_USER_VERBS_EX_CMD_CREATE_FLOW = IB_USER_VERBS_CMD_THRESHOLD,
|
||||
IB_USER_VERBS_EX_CMD_DESTROY_FLOW,
|
||||
IB_USER_VERBS_EX_CMD_CREATE_WQ,
|
||||
IB_USER_VERBS_EX_CMD_MODIFY_WQ,
|
||||
IB_USER_VERBS_EX_CMD_DESTROY_WQ,
|
||||
};
|
||||
|
||||
/*
|
||||
@@ -946,4 +949,42 @@ struct ib_uverbs_destroy_srq_resp {
|
||||
__u32 events_reported;
|
||||
};
|
||||
|
||||
struct ib_uverbs_ex_create_wq {
|
||||
__u32 comp_mask;
|
||||
__u32 wq_type;
|
||||
__u64 user_handle;
|
||||
__u32 pd_handle;
|
||||
__u32 cq_handle;
|
||||
__u32 max_wr;
|
||||
__u32 max_sge;
|
||||
};
|
||||
|
||||
struct ib_uverbs_ex_create_wq_resp {
|
||||
__u32 comp_mask;
|
||||
__u32 response_length;
|
||||
__u32 wq_handle;
|
||||
__u32 max_wr;
|
||||
__u32 max_sge;
|
||||
__u32 wqn;
|
||||
};
|
||||
|
||||
struct ib_uverbs_ex_destroy_wq {
|
||||
__u32 comp_mask;
|
||||
__u32 wq_handle;
|
||||
};
|
||||
|
||||
struct ib_uverbs_ex_destroy_wq_resp {
|
||||
__u32 comp_mask;
|
||||
__u32 response_length;
|
||||
__u32 events_reported;
|
||||
__u32 reserved;
|
||||
};
|
||||
|
||||
struct ib_uverbs_ex_modify_wq {
|
||||
__u32 attr_mask;
|
||||
__u32 wq_handle;
|
||||
__u32 wq_state;
|
||||
__u32 curr_wq_state;
|
||||
};
|
||||
|
||||
#endif /* IB_USER_VERBS_H */
|
||||
|
||||
Reference in New Issue
Block a user