The branch main has been updated by kib: URL: https://cgit.FreeBSD.org/src/commit/?id=7482011cdb96282864efde01e67e023009e396e1
commit 7482011cdb96282864efde01e67e023009e396e1 Author: Ariel Ehrenberg <[email protected]> AuthorDate: 2026-07-28 10:39:09 +0000 Commit: Konstantin Belousov <[email protected]> CommitDate: 2026-09-16 14:12:09 +0000 fixup! libmlx5: Report SW parsing capabilities through mlx5 direct verbs Document the full struct mlx5dv_context (cqe_comp_caps, sw_parsing_caps) and the mlx5dv_context_comp_mask enum in mlx5dv_query_device.3, and note that these caps are only valid when the matching comp_mask bit is asked for on input and returned on output. Sponsored by: NVidia networking MFC after: 1 month --- contrib/ofed/libmlx5/mlx5dv_query_device.3 | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/contrib/ofed/libmlx5/mlx5dv_query_device.3 b/contrib/ofed/libmlx5/mlx5dv_query_device.3 index 6e92c0766124..b29085545253 100644 --- a/contrib/ofed/libmlx5/mlx5dv_query_device.3 +++ b/contrib/ofed/libmlx5/mlx5dv_query_device.3 @@ -26,6 +26,15 @@ struct mlx5dv_context { uint8_t version; uint64_t flags; uint64_t comp_mask; +struct mlx5dv_cqe_comp_caps cqe_comp_caps; +struct mlx5dv_sw_parsing_caps sw_parsing_caps; +.in -8 +}; + +enum mlx5dv_context_comp_mask { +.in +8 + MLX5DV_CONTEXT_MASK_CQE_COMPRESION = (1 << 0), + MLX5DV_CONTEXT_MASK_SWP = (1 << 1), .in -8 }; @@ -45,6 +54,10 @@ enum mlx5dv_context_flags { 0 on success or the value of errno on failure (which indicates the failure reason). .SH "NOTES" * Compatibility mask (comp_mask) is in/out field. + * The \fIcqe_comp_caps\fR and \fIsw_parsing_caps\fR members are valid only when + the matching comp_mask bit (MLX5DV_CONTEXT_MASK_CQE_COMPRESION or + MLX5DV_CONTEXT_MASK_SWP) is requested by the caller on input and returned set + by the library on output. .SH "SEE ALSO" .BR mlx5dv (7), .BR ibv_query_device (3)
