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 8133AA0547; Thu, 29 Apr 2021 17:56:53 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 01BBB411E5; Thu, 29 Apr 2021 17:56:53 +0200 (CEST) Received: from NAM10-DM6-obe.outbound.protection.outlook.com (mail-dm6nam10on2066.outbound.protection.outlook.com [40.107.93.66]) by mails.dpdk.org (Postfix) with ESMTP id C7F69410DD for ; Thu, 29 Apr 2021 17:56:51 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=U15urRAUDSA/OZQ/G30XM8GgB2UUo8SyTO+HqqUjfCz/wAAsDavscwO2Na1i+ufX3kHBYB4KAElRXavyFjowv9LyCDDkKjrRD7QuaZM6KgjYR7nPkch2AlsCLKa7MS2A/Tc9+mPLiY7KohU3p+/7itPtsnes9Ukp2M1/rA8wfWTe14/X7GubgWP3S6RbQ0uxuTufkmoRY3ldkkJMlJaLOHNY1cQbdWQJtmmK4pCVPe4R3Qkt/mt/AUZAJZBfXTvi15iCv1ugqsOWwL9utaLsRmaJqIh+BS7bFt8p+xDkeSYOYw7KI7GGOKGMXvNeJYUPPcAR5a7A+IOoDZf0JU65NA== 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=MvG5uEH0EfZbOq8Y+FP3Beaa/vsFbANtM4HDteZt8T4=; b=CJlKvk+ZraCmfoxkSRRBcd0mTAU7AaQdzrtTgpVxWlrD6KEeH8lEaNZT+e1COG3koc9zR5OnWrsFygTyBqS0UdpoFU+a8Ql/BFgyNDA6EEFG+xUL3bN9PUspBynB69/6ZnvxWwImQyfFIkThlpHaiGeHs7uOOfOrz3x3CKZWJBh705HA8utMeYZwsp4Xnbu37VaoJuRnFl5HrIqSMs7zZDCTRboML4NwCKWfHUm8pmUEBeWBTsxvNuKrRNvNazinDupgVHOwexeNTYygXGxyh3QjYtLX5gBl58jfrciQ5AR80cANGDZ3eg8SNbqy6JG+tfUXmQe/lxMMgK/69UGa3w== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nvidia.com; dmarc=pass action=none header.from=nvidia.com; dkim=pass header.d=nvidia.com; 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=MvG5uEH0EfZbOq8Y+FP3Beaa/vsFbANtM4HDteZt8T4=; b=Y5GLXfbET4f24R81+JUNb2AnzgGuf/yP6yO3xd02hzrQDw+ailXzQQu9URMYmm8mDc6Ag79KUARuDBpjtOcgiQxZ8O104K80gbGoRZqONERZN426xrrmjPQGTwmIV3Db7AyWZzhg3wnUq6VxUhv4k1O4n+zbThkGeAEvSojpJ5eg3DhZ177on0NglHm8KxLdbYppTrB0rbK72SmRAL73y+gUpcJUYB5NDY60/4MUDI2hyqvQOX04JIFQXz4kI0oZjL8bsuGJyVh9oC8WvWcX0x073k4le/xGn01BqUHNDGZvBcsjtZER5dfZzlpsRdLTBhX3DQV4rNM8Yg0ZtKPxRQ== Received: from DM4PR12MB5389.namprd12.prod.outlook.com (2603:10b6:5:39a::7) by DM8PR12MB5463.namprd12.prod.outlook.com (2603:10b6:8:27::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4087.25; Thu, 29 Apr 2021 15:56:50 +0000 Received: from DM4PR12MB5389.namprd12.prod.outlook.com ([fe80::3c4a:fa65:315b:37f1]) by DM4PR12MB5389.namprd12.prod.outlook.com ([fe80::3c4a:fa65:315b:37f1%6]) with mapi id 15.20.4065.026; Thu, 29 Apr 2021 15:56:50 +0000 From: Matan Azrad To: "dev@dpdk.org" CC: "gakhil@marvell.com" , Suanming Mou , Raslan Darawsheh Thread-Topic: [PATCH v2 07/16] common/mlx5: fix cypto bsf attr Thread-Index: AQHXPQ6Ws44C4GCpikCBjVJWzs1NhKrLphFg Date: Thu, 29 Apr 2021 15:56:50 +0000 Message-ID: References: <20210408204849.9543-1-shirik@nvidia.com> <20210429154335.2820028-1-matan@nvidia.com> <20210429154335.2820028-8-matan@nvidia.com> In-Reply-To: <20210429154335.2820028-8-matan@nvidia.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: dpdk.org; dkim=none (message not signed) header.d=none;dpdk.org; dmarc=none action=none header.from=nvidia.com; x-originating-ip: [79.177.52.236] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 6ee1fbde-3dfc-4b28-f251-08d90b2766ae x-ms-traffictypediagnostic: DM8PR12MB5463: x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:525; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: I2PBQ9Ea/qh5ZL+9e1gOOK4yRh7mmH/D81wAMgG+oWhZqEJHzIkjfyZf8vrkD/LZQaJqZr0lFhd68+OTBK8t9h5iSnfdOaJtlLAUJsv7oFYqN9aU2VYa82fggxm8AjOmmQHa/SQUYGvLJLTiwB/MpDwSV541QWKK/+671m8Zd3hVV+7ci89AYhsFv1JF42n5b3gwbKR9qs8GgxNQSS4nMxULJDLcY8gOo2F9ZpZX5nTVlQ1Envtcm1rN6eMT2QFoNie1IQBPluzJGzT1MAeyA0n+UcwTMhaw3lukLhTia3uSHRloPL4QXXd2GHbFpTX6QwNGQRYs+6R9mO/SBLNHY5zAWo5mnrNsqK5oG0+oB8IiLpbXn505JSyXOQ1hRwYb61mD40IAbYtuiTFq7xnUfzYFaOJQyl7YHCpuK8aMB4+iTKvY1gVfJJXy9ENSEc4IlDaSTPGR4n28AbrFU7UDXJdY+MU8Lgi4fU/rPNg2yg9zzJAnznTaKM7SVQ/ur5SCAhtLSif03yimgrIekACfp8IHhqZt+pKNmbNXf7K7XZMaoxCuFKEym58ovZqJSy3wKVbzyuqI7cwb017nPmaG96ZBb2JNJy9guOyDD5qAzSw= x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DM4PR12MB5389.namprd12.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(376002)(39860400002)(136003)(396003)(366004)(346002)(38100700002)(5660300002)(26005)(122000001)(86362001)(33656002)(6916009)(316002)(66446008)(52536014)(2906002)(71200400001)(64756008)(66556008)(66946007)(6506007)(7696005)(55016002)(8936002)(8676002)(4326008)(76116006)(9686003)(54906003)(66476007)(478600001)(107886003)(186003); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata: =?us-ascii?Q?Sn7N/Uz+ZpGZX1Nqt0ohixMR/msn+33jWj9P7gb80rMvgqB4qyAoK27dVN3v?= =?us-ascii?Q?yylRcP2fFg9Iv6rZ14lUoScK3j75DkJFS9iBKvglFvWZC5zBbFf7nRdzD797?= =?us-ascii?Q?7pfe3vhhRLTSNonZpDe0bsYqHsb7UO3AUiJQo1klp8NnNWn5onk0Y4Yo+NQX?= =?us-ascii?Q?2jgPa1UG58tkUNhaVtMqTuE6vFmJjILuV96uPGIDKUDPCKkofANZdGSWwAf6?= =?us-ascii?Q?nEgsg6cEWZZ9+X1McX11nqDaHIl4JDCsiWklUUFSJZv+MWfNUwVWJQUFg7qH?= =?us-ascii?Q?hzFxEXO4pF7wBGZ7g9hFeImc5Gg98kBoQ1p4k41erd/QewKjD/zJn+mlJF/S?= =?us-ascii?Q?OYtLjOp/Bsu3HoFifVEkdHCqoR5SYSAoQi5d8p703TcfJo4C8PC4HVjEkn7e?= =?us-ascii?Q?Y+CIZOk2ccOJRFgTiVysBQlRUu3bJV1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oQ0qEI5au/fu7ZRDwnpd27xi?= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: DM4PR12MB5389.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 6ee1fbde-3dfc-4b28-f251-08d90b2766ae X-MS-Exchange-CrossTenant-originalarrivaltime: 29 Apr 2021 15:56:50.2683 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: Gp7h00XHpt9xTVTD3Os1Zwu2eiEtaf5/AGCcxElUFr3RiA0F8sPMF7vfHBUR4CG/0EHgtVpRk1Ii7gZ61F+v9g== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM8PR12MB5463 Subject: Re: [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" Hi Raslan See below , need to squash this to " common/mlx5: adjust DevX MKEY fields for crypto" The one below it...missed that, sorry. From: Matan Azrad > From: Suanming Mou >=20 > This commit should be squash to crypto en commit. >=20 > Signed-off-by: Suanming Mou > --- > drivers/common/mlx5/mlx5_devx_cmds.c | 4 ++++ > 1 file changed, 4 insertions(+) >=20 > 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 =3D mlx5_glue->devx_obj_create(ctx, in, in_size_dw * 4, > out, > sizeof(out)); > if (!mkey->obj) { > -- > 2.25.1