From patchwork Fri Jan 8 05:30:40 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Saeed Mahameed X-Patchwork-Id: 12005771 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 B7BE8C43381 for ; Fri, 8 Jan 2021 05:31:54 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 828622343B for ; Fri, 8 Jan 2021 05:31:54 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726992AbhAHFbh (ORCPT ); Fri, 8 Jan 2021 00:31:37 -0500 Received: from mail.kernel.org ([198.145.29.99]:35742 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725793AbhAHFbh (ORCPT ); Fri, 8 Jan 2021 00:31:37 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id A5480233FC; Fri, 8 Jan 2021 05:30:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1610083857; bh=pMgOJOYy0PZ/+2EahATIrfbrm0OG5TontQ7SQUkPMDo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=SumcxvvRI6q+iMFM5A52oaDQW+xCC4t/UJs/M0UnNzoHRvyJLThs/5jfGuIWKajRW LHcL4cdfQIoT7412Q6SaXrOIoIy6du4Zl2YsWdQv7f4RYADXbu8yMKX6kUuJJBkQWV +DyXzjAgHmfwM5l6zy39CS5oLc6ephbCxllLO1zcuDdbquEf1zCG6Yqne/THdxA/3B vwsggP/QfQ4TOVEwupjKBUj9bDxFwUFE01LbbYfKVDAi0mQAMuIwQBid8ZYgZdYX8s pXDyX3zLwkXZ+7AKf8RddPtY1PzmgQ9DewB/8wD0QIHwTZIpyRHg3G3LhYEDnpkMTU G+ONkZogH7Oeg== 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 01/15] net/mlx5: Add HW definition of reg_c_preserve Date: Thu, 7 Jan 2021 21:30:40 -0800 Message-Id: <20210108053054.660499-2-saeed@kernel.org> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20210108053054.660499-1-saeed@kernel.org> References: <20210108053054.660499-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 8fbddec26eb8..ec0d01e26b3e 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[0x2]; u8 ts_cqe_to_dest_cqn[0x1];