mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 02:32:09 -04:00
IB/uverbs: Add CQ moderation capability to query_device
The query_device function can now obtain the maximum values for cq_max_count and cq_period, needed for CQ moderation. cq_max_count is a 16 bits number that determines the number of CQEs to accumulate before generating an event. cq_period is a 16 bits number that determines the timeout in micro seconds from the last event generated, upon which a new event will be generated even if cq_max_count was not reached. Signed-off-by: Yonatan Cohen <[email protected]> Reviewed-by: Majd Dibbiny <[email protected]> Signed-off-by: Leon Romanovsky <[email protected]> Signed-off-by: Doug Ledford <[email protected]>
This commit is contained in:
parent
b0e9df6da2
commit
18bd907292
3 changed files with 22 additions and 0 deletions
|
|
@ -315,6 +315,11 @@ enum ib_cq_attr_mask {
|
|||
IB_CQ_MODERATE = 1 << 0,
|
||||
};
|
||||
|
||||
struct ib_cq_caps {
|
||||
u16 max_cq_moderation_count;
|
||||
u16 max_cq_moderation_period;
|
||||
};
|
||||
|
||||
struct ib_device_attr {
|
||||
u64 fw_ver;
|
||||
__be64 sys_image_guid;
|
||||
|
|
@ -365,6 +370,7 @@ struct ib_device_attr {
|
|||
u32 max_wq_type_rq;
|
||||
u32 raw_packet_caps; /* Use ib_raw_packet_caps enum */
|
||||
struct ib_tm_caps tm_caps;
|
||||
struct ib_cq_caps cq_caps;
|
||||
};
|
||||
|
||||
enum ib_mtu {
|
||||
|
|
|
|||
Loading…
Reference in a new issue