IB/uverbs: Allow CQ moderation with modify CQ
Uverbs support in modify_cq for CQ moderation only. Gives ability to change cq_max_count and cq_period. CQ moderation enhance performance by moderating the number of CQEs needed to create an event instead of application having to suffer from event per-CQE. To achieve CQ moderation the application needs to set cq_max_count and cq_period. cq_max_count - defines the number of CQEs needed to create an event. cq_period - defines the timeout (micro seconds) between last event and a new one that will occur even if cq_max_count was not satisfied Signed-off-by: Yonatan Cohen <yonatanc@mellanox.com> Reviewed-by: Majd Dibbiny <majd@mellanox.com> Signed-off-by: Leon Romanovsky <leon@kernel.org> Signed-off-by: Doug Ledford <dledford@redhat.com>
This commit is contained in:

committed by
Doug Ledford

parent
bc52e9ca74
commit
869ddcf8b3
@@ -100,7 +100,8 @@ enum {
|
||||
IB_USER_VERBS_EX_CMD_MODIFY_WQ,
|
||||
IB_USER_VERBS_EX_CMD_DESTROY_WQ,
|
||||
IB_USER_VERBS_EX_CMD_CREATE_RWQ_IND_TBL,
|
||||
IB_USER_VERBS_EX_CMD_DESTROY_RWQ_IND_TBL
|
||||
IB_USER_VERBS_EX_CMD_DESTROY_RWQ_IND_TBL,
|
||||
IB_USER_VERBS_EX_CMD_MODIFY_CQ
|
||||
};
|
||||
|
||||
/*
|
||||
@@ -1150,6 +1151,18 @@ struct ib_uverbs_ex_destroy_rwq_ind_table {
|
||||
__u32 ind_tbl_handle;
|
||||
};
|
||||
|
||||
struct ib_uverbs_cq_moderation {
|
||||
__u16 cq_count;
|
||||
__u16 cq_period;
|
||||
};
|
||||
|
||||
struct ib_uverbs_ex_modify_cq {
|
||||
__u32 cq_handle;
|
||||
__u32 attr_mask;
|
||||
struct ib_uverbs_cq_moderation attr;
|
||||
__u32 reserved;
|
||||
};
|
||||
|
||||
#define IB_DEVICE_NAME_MAX 64
|
||||
|
||||
#endif /* IB_USER_VERBS_H */
|
||||
|
Reference in New Issue
Block a user