mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 18:51:56 -04:00
IB/core: Add timestamp_mask and hca_core_clock to query_device
In order to expose timestamp we need to expose two new attributes in query_device to be used for CQ completion time-stamping: timestamp_mask - how many bits are valid in the timestamp, where timestamp values could be 64bits the most. hca_core_clock - timestamp is given in HW cycles, the frequency in KHZ units of the HCA, necessary in order to convert cycles to seconds. This is added both to ib_query_device and its respective uverbs counterpart. Signed-off-by: Matan Barak <[email protected]> Signed-off-by: Or Gerlitz <[email protected]> Signed-off-by: Doug Ledford <[email protected]>
This commit is contained in:
parent
565197dd8f
commit
24306dc661
4 changed files with 20 additions and 0 deletions
|
|
@ -227,6 +227,8 @@ struct ib_device_attr {
|
|||
int sig_prot_cap;
|
||||
int sig_guard_cap;
|
||||
struct ib_odp_caps odp_caps;
|
||||
uint64_t timestamp_mask;
|
||||
uint64_t hca_core_clock; /* in KHZ */
|
||||
};
|
||||
|
||||
enum ib_mtu {
|
||||
|
|
|
|||
Loading…
Reference in a new issue