From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 30E86A0547; Thu, 29 Apr 2021 17:45:11 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 791EC4132A; Thu, 29 Apr 2021 17:44:51 +0200 (CEST) Received: from NAM10-MW2-obe.outbound.protection.outlook.com (mail-mw2nam10on2067.outbound.protection.outlook.com [40.107.94.67]) by mails.dpdk.org (Postfix) with ESMTP id A2718411E5 for ; Thu, 29 Apr 2021 17:44:43 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=jrHL4B42RZN0LLTZoSyQ2eaXenUI2aFoGe4RTnPDxmDCW7i7OPyE5eoq9iOWnf0cEEZIdYdgITMUHwYAeD2F0qMTtC8/8tYTgWdKMa3blk/F5ssUenMVVXNbntM3AAJhkR7kBLDq3SGDVri4nRl7bpj03iNf/lzJtG0bHR03Z12JICa4+8DnqyJeIzfsm5Ubdh02hFF9xjiFldtEZ2enIHaQcc+EQZ3u2fK1ZwKaNq4R4ehBLl2pAWKP2RvkhX5y1lQ7dgWGH2YJ0SOpofxejr2C6YLfgWzMc81BAaTr54jaJyJyMb3rt+FD7gOWz0lDa1XdQv0/CzJtoLQR2HVMwA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=uIZOQVT4PqVIuRgzVALemPLBrJAi1wADJrN4rZCF41Q=; b=jRWf+qol08uHcXqZf2fu3W8efc7TK4y+8N3jvkccTG1m8ha/TR5VBlh1A7bA5EjyzCITRwYhRBYchephD2f73PYbeiQdtUWgAYhWplwtDowqd6KpUZ+zel+aL/t+MwjFL9IDaWQiOmBn1Cb0H7NO6LGqqRuAQ2hjrmcr1YH59+pnPnLVSuD537+0LC3rKICjn6OUfH56kLnqAPDV7tEuo5uTGJJaj3EsOo3oVRC5tqjxCvEtG+gl+Xf/uWOIApXEGbNjOISdglA1yFKQAK1BfifwUG7HXsAfIZz2wRTthv5DpMAltZ9oPPTE/wi9N0AFeJBIfpC35KlNSH0qhRia7g== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 216.228.112.34) smtp.rcpttodomain=marvell.com smtp.mailfrom=nvidia.com; dmarc=pass (p=none sp=none pct=100) action=none header.from=nvidia.com; dkim=none (message not signed); arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Nvidia.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=uIZOQVT4PqVIuRgzVALemPLBrJAi1wADJrN4rZCF41Q=; b=unZqlEe5RVpg+L8QR16MGVwFG5ZTq4fpK+NjwfUfbYDgULnBot/zjFtKVq+m1IdDD/r76kIOLmZEqSbZbchIHvxmhyrWBP8fexLDFGdmsxbqdvzpI0MhDBP9adyp8gSPZ013I9RWAdEY/GEZ0v7y47FQRyFihYj576ARgKjBxLQJNIQv1ES3lPDJkp38bhXokb4CKZalPWj53Tt10boEvGOAkPjl5s4YGon+7oBw8v/dV5m3LBxTjZko6ILw1vkQeFanakQO36pPWWFZ0GLxFHeVJTcV1y6nIGlSaZ+2wrkTOlt5yb0pP1V89zcFAO4b4f1jGuTX6SPRdsFISY1jKw== Received: from DM6PR13CA0038.namprd13.prod.outlook.com (2603:10b6:5:134::15) by CY4PR12MB1703.namprd12.prod.outlook.com (2603:10b6:903:122::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4065.25; Thu, 29 Apr 2021 15:44:42 +0000 Received: from DM6NAM11FT067.eop-nam11.prod.protection.outlook.com (2603:10b6:5:134:cafe::9b) by DM6PR13CA0038.outlook.office365.com (2603:10b6:5:134::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4108.8 via Frontend Transport; Thu, 29 Apr 2021 15:44:42 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 216.228.112.34) smtp.mailfrom=nvidia.com; marvell.com; dkim=none (message not signed) header.d=none;marvell.com; dmarc=pass action=none header.from=nvidia.com; Received-SPF: Pass (protection.outlook.com: domain of nvidia.com designates 216.228.112.34 as permitted sender) receiver=protection.outlook.com; client-ip=216.228.112.34; helo=mail.nvidia.com; Received: from mail.nvidia.com (216.228.112.34) by DM6NAM11FT067.mail.protection.outlook.com (10.13.172.76) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.4087.32 via Frontend Transport; Thu, 29 Apr 2021 15:44:41 +0000 Received: from nvidia.com (172.20.145.6) by HQMAIL107.nvidia.com (172.20.187.13) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Thu, 29 Apr 2021 15:44:39 +0000 From: Matan Azrad To: CC: , , Date: Thu, 29 Apr 2021 18:43:26 +0300 Message-ID: <20210429154335.2820028-8-matan@nvidia.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210429154335.2820028-1-matan@nvidia.com> References: <20210408204849.9543-1-shirik@nvidia.com> <20210429154335.2820028-1-matan@nvidia.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [172.20.145.6] X-ClientProxiedBy: HQMAIL107.nvidia.com (172.20.187.13) To HQMAIL107.nvidia.com (172.20.187.13) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: c219d753-4bd0-44f3-561d-08d90b25b475 X-MS-TrafficTypeDiagnostic: CY4PR12MB1703: X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:216; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 2cG3Rda0rz3v6bsoZaqZYJ81vavJbyAu0Oa1QVsPmkRwjyZXVowFeH7S56w6h8J364LpnPx/OjcaPe8bcQVhRUd9lKQ6SygNmO14WR7VjWy3rQ13e0XNfi2Hq2EyP4gUQ91hDpca9CQABll2VgOyuJ2/l/kj1uVAjsBC8xhaxPxdVperVjWhNbi3f808vw2vol+qsLzcVjWBJqcJVWH7Dor5+Ptnea65yXDqcB6BpESU30IK549H4lJN6paj2CjIVqMOzTfH765ZoCZ5ONhyEKxXFNRc8E62UYFRyIfGqkX2ulwgSOMM8Gp8qpJN0sOwEIBZaxCQjwdQf4RyQGCWdTdpZ5ZSO+dgGTOKwLHEXiBsTGX287mdlvJCg2p4TSwPHFH9Py5kLQ/rHe/rgXC/FU9OUEd8MX5BGb52pr4s9+pux/UusDm4McuQD6NZDCRsVBFwqnX9yYG6DBnPey0MK99S/ofLwU2LWo8VZra3xiY6xW6cmjEqOTC6ZFInCRJ8PWQ52wVnpOzQ//7GlDXrtIBuU3kUWu9undKoikOU7Ex18Mw+DCqH9yKAQubDAHjiECMkFkeUnsDffheczY9baL2QaEShIpv4eA9nxKr0HerYgfbYFM/z4A1JeaxMdLbQJRNhcZ49gAhKqPsCYF+6exzHM8cR64/RpuArMge9zbs= X-Forefront-Antispam-Report: CIP:216.228.112.34; CTRY:US; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:mail.nvidia.com; PTR:schybrid03.nvidia.com; CAT:NONE; SFS:(4636009)(376002)(346002)(39860400002)(396003)(136003)(46966006)(36840700001)(82310400003)(55016002)(70586007)(426003)(316002)(6916009)(8936002)(82740400003)(4744005)(4326008)(356005)(107886003)(2616005)(36860700001)(16526019)(186003)(8676002)(6286002)(336012)(1076003)(26005)(478600001)(86362001)(6666004)(47076005)(5660300002)(54906003)(7696005)(36906005)(36756003)(2906002)(70206006)(7636003); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 29 Apr 2021 15:44:41.7750 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: c219d753-4bd0-44f3-561d-08d90b25b475 X-MS-Exchange-CrossTenant-Id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=43083d15-7273-40c1-b7db-39efd9ccc17a; Ip=[216.228.112.34]; Helo=[mail.nvidia.com] X-MS-Exchange-CrossTenant-AuthSource: DM6NAM11FT067.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY4PR12MB1703 Subject: [dpdk-dev] [PATCH v2 07/16] common/mlx5: fix cypto bsf attr X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" From: Suanming Mou This commit should be squash to crypto en commit. Signed-off-by: Suanming Mou --- drivers/common/mlx5/mlx5_devx_cmds.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/common/mlx5/mlx5_devx_cmds.c b/drivers/common/mlx5/mlx5_devx_cmds.c index 68a10b149a..7e3c8b55fa 100644 --- a/drivers/common/mlx5/mlx5_devx_cmds.c +++ b/drivers/common/mlx5/mlx5_devx_cmds.c @@ -278,6 +278,10 @@ mlx5_devx_cmd_mkey_create(void *ctx, MLX5_SET64(mkc, mkc, start_addr, attr->addr); MLX5_SET64(mkc, mkc, len, attr->size); MLX5_SET(mkc, mkc, crypto_en, attr->crypto_en); + if (attr->crypto_en) { + MLX5_SET(mkc, mkc, bsf_en, attr->crypto_en); + MLX5_SET(mkc, mkc, bsf_octword_size, 4); + } mkey->obj = mlx5_glue->devx_obj_create(ctx, in, in_size_dw * 4, out, sizeof(out)); if (!mkey->obj) { -- 2.25.1