The flags field the enum is used with comes directly from the uapi so it belongs in the uapi headers for clarity and so userspace can use it.
Showing the changes to include/uapi (1 of 5 files). Show all
Unified · Split
| @@ -402,13 +402,18 @@ struct ib_uverbs_create_cq { · 401 unmodified lines | ||
| 402 | 402 | __u64 driver_data[0]; |
| 403 | 403 | }; |
| 404 | 404 | |
| 405 | +enum ib_uverbs_ex_create_cq_flags { | |
| 406 | + IB_UVERBS_CQ_FLAGS_TIMESTAMP_COMPLETION = 1 << 0, | |
| 407 | + IB_UVERBS_CQ_FLAGS_IGNORE_OVERRUN = 1 << 1, | |
| 408 | +}; | |
| 409 | + | |
| 405 | 410 | struct ib_uverbs_ex_create_cq { |
| 406 | 411 | __u64 user_handle; |
| 407 | 412 | __u32 cqe; |
| 408 | 413 | __u32 comp_vector; |
| 409 | 414 | __s32 comp_channel; |
| 410 | 415 | __u32 comp_mask; |
| 411 | − __u32 flags; | |
| 416 | + __u32 flags; /* bitmask of ib_uverbs_ex_create_cq_flags */ | |
| 412 | 417 | __u32 reserved; |
| 413 | 418 | }; |
| 414 | 419 | |