From patchwork Tue Jan 12 07:05:24 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Saeed Mahameed X-Patchwork-Id: 12012521 X-Patchwork-Delegate: kuba@kernel.org Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-19.2 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id CEE24C433DB for ; Tue, 12 Jan 2021 07:14:25 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 9968422AAF for ; Tue, 12 Jan 2021 07:14:25 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2391888AbhALHOY (ORCPT ); Tue, 12 Jan 2021 02:14:24 -0500 Received: from mail.kernel.org ([198.145.29.99]:37548 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2391826AbhALHOY (ORCPT ); Tue, 12 Jan 2021 02:14:24 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 7FEEF22CB2; Tue, 12 Jan 2021 07:13:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1610435623; bh=DIYi1pTi4ziIO3htASEwKM7n+G9PhZdNTtI7pRdFk0c=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=HXSv3k+nOqlH1kre2I9AA6eSZZP+fgPbmtbkJp4IUb1tBTCV0v2nVaJm+MbgwOg8i +0jkOEz0HscyfHS/BMLxxzACi9+vAIXH0NdXyl0XyhLgx/VISBOukRqc7eml3KiXl3 rZJ/AmhZyGiGWHkIUy7DXzpEcVgtA1Ow/lHXuujPP9wrkoNzdxOJSRjLmiDAZfQxbe aR2LZYWJ2BOB9M9HBog9+uzrnfdpj3vn2QkFWmkamf+R44tUD8SrmMlVy7XeJ4CMVg cbQHSjlki3M6SxSazXMXga3B+0vUf98E764tyTM0IoWS0iHLXTcgfv+xZXJIixwWX8 3Ohe1xnm4SnbQ== From: Saeed Mahameed To: "David S. Miller" , Jakub Kicinski Cc: netdev@vger.kernel.org, Paul Blakey , Maor Dickman , Roi Dayan , Saeed Mahameed Subject: [net-next V2 01/11] net/mlx5: Add HW definition of reg_c_preserve Date: Mon, 11 Jan 2021 23:05:24 -0800 Message-Id: <20210112070534.136841-2-saeed@kernel.org> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20210112070534.136841-1-saeed@kernel.org> References: <20210112070534.136841-1-saeed@kernel.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org X-Patchwork-Delegate: kuba@kernel.org From: Paul Blakey Add capability bit to test whether reg_c value is preserved on recirculation. Signed-off-by: Paul Blakey Signed-off-by: Maor Dickman Reviewed-by: Roi Dayan Signed-off-by: Saeed Mahameed --- include/linux/mlx5/mlx5_ifc.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/include/linux/mlx5/mlx5_ifc.h b/include/linux/mlx5/mlx5_ifc.h index 442c0160caab..823411e288c0 100644 --- a/include/linux/mlx5/mlx5_ifc.h +++ b/include/linux/mlx5/mlx5_ifc.h @@ -1278,7 +1278,9 @@ struct mlx5_ifc_cmd_hca_cap_bits { u8 reserved_at_a0[0x3]; u8 ece_support[0x1]; - u8 reserved_at_a4[0x7]; + u8 reserved_at_a4[0x5]; + u8 reg_c_preserve[0x1]; + u8 reserved_at_aa[0x1]; u8 log_max_srq[0x5]; u8 reserved_at_b0[0x1]; u8 uplink_follow[0x1];