From patchwork Sun Oct 29 11:07:38 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yishai Hadas X-Patchwork-Id: 10031365 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 276B5600C5 for ; Sun, 29 Oct 2017 11:08:16 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 1936C20501 for ; Sun, 29 Oct 2017 11:08:16 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 0DE3428732; Sun, 29 Oct 2017 11:08:16 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=2.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 202802872F for ; Sun, 29 Oct 2017 11:08:14 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751688AbdJ2LIM (ORCPT ); Sun, 29 Oct 2017 07:08:12 -0400 Received: from mail-il-dmz.mellanox.com ([193.47.165.129]:35784 "EHLO mellanox.co.il" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751365AbdJ2LIL (ORCPT ); Sun, 29 Oct 2017 07:08:11 -0400 Received: from Internal Mail-Server by MTLPINE1 (envelope-from yishaih@mellanox.com) with ESMTPS (AES256-SHA encrypted); 29 Oct 2017 13:08:04 +0200 Received: from vnc17.mtl.labs.mlnx (vnc17.mtl.labs.mlnx [10.7.2.17]) by labmailer.mlnx (8.13.8/8.13.8) with ESMTP id v9TB84tc009439; Sun, 29 Oct 2017 13:08:04 +0200 Received: from vnc17.mtl.labs.mlnx (vnc17.mtl.labs.mlnx [127.0.0.1]) by vnc17.mtl.labs.mlnx (8.13.8/8.13.8) with ESMTP id v9TB84qt009913; Sun, 29 Oct 2017 13:08:04 +0200 Received: (from yishaih@localhost) by vnc17.mtl.labs.mlnx (8.13.8/8.13.8/Submit) id v9TB84QM009912; Sun, 29 Oct 2017 13:08:04 +0200 From: Yishai Hadas To: linux-rdma@vger.kernel.org Cc: yishaih@mellanox.com, noaos@mellanox.com, majd@mellanox.com Subject: [PATCH rdma-core 2/2] mlx5: Update mlx5dv_query_device man page Date: Sun, 29 Oct 2017 13:07:38 +0200 Message-Id: <1509275258-9808-3-git-send-email-yishaih@mellanox.com> X-Mailer: git-send-email 1.8.2.3 In-Reply-To: <1509275258-9808-1-git-send-email-yishaih@mellanox.com> References: <1509275258-9808-1-git-send-email-yishaih@mellanox.com> Sender: linux-rdma-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-rdma@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Noa Osherovich Add details on CQE compression and SW parsing support. Signed-off-by: Noa Osherovich Reviewed-by: Yishai Hadas --- providers/mlx5/man/mlx5dv_query_device.3 | 32 +++++++++++++++++++++++++++++++- 1 file changed, 31 insertions(+), 1 deletion(-) 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).