@@ -21,11 +21,21 @@ of the internal hardware structures that mlx5dv.h represents. Additions of new f
structures are handled by comp_mask field.
.PP
.nf
+struct mlx5dv_sw_parsing_caps {
+.in +8
+uint32_t sw_parsing_offloads; /* Use enum mlx5dv_sw_parsing_offloads */
+uint32_t supported_qpts;
+.in -8
+};
+.PP
+.nf
struct mlx5dv_context {
.in +8
uint8_t version;
uint64_t flags;
-uint64_t comp_mask;
+uint64_t comp_mask; /* Use enum mlx5dv_context_comp_mask */
+struct mlx5dv_cqe_comp_caps cqe_comp_caps;
+struct mlx5dv_sw_parsing_caps sw_parsing_caps;
.in -8
};
@@ -40,6 +50,26 @@ enum mlx5dv_context_flags {
MLX5DV_CONTEXT_FLAGS_ENHANCED_MPW = (1 << 3), /* Enhanced multi packet WQE is supported or not */
.in -8
};
+
+.PP
+.nf
+enum mlx5dv_context_comp_mask {
+.in +8
+MLX5DV_CONTEXT_MASK_CQE_COMPRESION = 1 << 0,
+MLX5DV_CONTEXT_MASK_SWP = 1 << 1,
+MLX5DV_CONTEXT_MASK_RESERVED = 1 << 2,
+.in -8
+};
+
+.PP
+.nf
+enum enum mlx5dv_sw_parsing_offloads {
+.in +8
+MLX5DV_SW_PARSING = 1 << 0,
+MLX5DV_SW_PARSING_CSUM = 1 << 1,
+MLX5DV_SW_PARSING_LSO = 1 << 2,
+.in -8
+};
.fi
.SH "RETURN VALUE"
0 on success or the value of errno on failure (which indicates the failure reason).