Query the device attributes for RDMA operations, including maximum transfer size and maximum number of SGEs per RDMA WR, and report them back to the userspace library.
Showing the changes to include/uapi (1 of 5 files). Show all
Unified · Split
| @@ -90,12 +90,18 @@ struct efa_ibv_create_ah_resp { · 89 unmodified lines | |||
| 90 | __u8 reserved_30[2]; | 90 | __u8 reserved_30[2]; |
| 91 | }; | 91 | }; |
| 92 | 92 | ||
| 93 | enum { | ||
| 94 | EFA_QUERY_DEVICE_CAPS_RDMA_READ = 1 << 0, | ||
| 95 | }; | ||
| 96 | |||
| 93 | struct efa_ibv_ex_query_device_resp { | 97 | struct efa_ibv_ex_query_device_resp { |
| 94 | __u32 comp_mask; | 98 | __u32 comp_mask; |
| 95 | __u32 max_sq_wr; | 99 | __u32 max_sq_wr; |
| 96 | __u32 max_rq_wr; | 100 | __u32 max_rq_wr; |
| 97 | __u16 max_sq_sge; | 101 | __u16 max_sq_sge; |
| 98 | __u16 max_rq_sge; | 102 | __u16 max_rq_sge; |
| 103 | __u32 max_rdma_size; | ||
| 104 | __u32 device_caps; | ||
| 99 | }; | 105 | }; |
| 100 | 106 | ||
| 101 | #endif /* EFA_ABI_USER_H */ | 107 | #endif /* EFA_ABI_USER_H */ |