diff mbox

[rdma-core,2/2] mlx5: Update mlx5dv_query_device man page

Message ID 1509275258-9808-3-git-send-email-yishaih@mellanox.com (mailing list archive)
State Accepted
Headers show

Commit Message

Yishai Hadas Oct. 29, 2017, 11:07 a.m. UTC
From: Noa Osherovich <noaos@mellanox.com>

Add details on CQE compression and SW parsing support.

Signed-off-by: Noa Osherovich <noaos@mellanox.com>
Reviewed-by: Yishai Hadas <yishaih@mellanox.com>
---
 providers/mlx5/man/mlx5dv_query_device.3 | 32 +++++++++++++++++++++++++++++++-
 1 file changed, 31 insertions(+), 1 deletion(-)
diff mbox

Patch

diff --git a/providers/mlx5/man/mlx5dv_query_device.3 b/providers/mlx5/man/mlx5dv_query_device.3
index c2fe9a3..7a36717 100644
--- a/providers/mlx5/man/mlx5dv_query_device.3
+++ b/providers/mlx5/man/mlx5dv_query_device.3
@@ -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).