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 6D5FCA0548; Sun, 9 May 2021 10:21:51 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id D8717406FF; Sun, 9 May 2021 10:21:50 +0200 (CEST) Received: from NAM11-DM6-obe.outbound.protection.outlook.com (mail-dm6nam11on2069.outbound.protection.outlook.com [40.107.223.69]) by mails.dpdk.org (Postfix) with ESMTP id 9E98540140 for ; Sun, 9 May 2021 10:21:49 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=f3J5axhI4SgHQ27VbLtYq4jMi3vjYFBuHUaQNQkDtquTs54+VPOxF1pADgqf0L4ZGSfVLC3f2EKlwE5RHOYiNp0E+lSqqw3nLxQw5p3tmzHeD+9HXCj6iVZw34ja1K1sOn/lLDZB8btohfmbTOczuabFZJlGBSVW5Gxi/EiOR2ZvTNER2szm9txVlNLqVnUyVy8GU2LdNGUTpyhEY/s1yX8AEPEiJ2CCkF3WmjqrcUgQckRJuQoSmlExs54DeFbz0emhr9YpWp3Wfy6ClAUePrKd7reKKaNJamGauUVQx4xObYiPUsKwgZTdyIt21CRosPNyTVOqR5hftKMs9F4rgw== 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=oSLtPUJyL7kljOgsVQvzA/GICTKfN2uN4WnWYmJlh2s=; b=EXzcZsEu1ekv9J9MCjiB5QIsKVCk8gPkyuM/ZjlSeGwpTogC+9OIfim1bn6MW0SzDcnGJaX7NgoDfAP1CPZ/hB9hbnkeiuHkxspB8Dfh0aOp8g7BzIb+aUzPnBfwl7uf03zGTSvLMGH60y5hTfxC7/ry+HFSX+fDxSou2hjUjLMuDBXPMRKKDig8xZ6yjQSakeEQGfhSbQPScZ/9EPH4v3hWXEwrW2ggZC+XXQ2gRHK3uaur4eWn9fHKmp8UpAXglhpYRkTi6hwFmFi+wGgbpKY5LH55nThLLaR8+VHIzL8VghOCqcjqSqJ3XtlnEH06kJ+9SljU+IYcmKFpolSsMQ== 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=oSLtPUJyL7kljOgsVQvzA/GICTKfN2uN4WnWYmJlh2s=; b=dNoRcD8X7RBPK2UA2VuPKg88cKOu7pnAn5rziC4eruMJSjYyXo1qARrU3gnbFUCbZqcW1x6LmI4YcGX8A3tlZ6Mn9bfe23/f6IjuWKawKgSv1PUeaGdARJFsxM6YNeHc4lz0Dg9CWkvEbiiV0hZxnlL+rCi4rUzm/DHqMU6RaoWb+eblfXRMoL9NX+HgFXWLaDUL1NvgPZ9EQlF7ZdqAFlGhv9QEkPg3PjlaMr51e59spsJy9aUJwIlQ+WbX9Aq88UVoRfuAOfD/XqyuBVQnPud1Fr2yitZfYqN/dFU7K9+3EUmqTWAMiPBrKSowZsZLNOVUI9owUT8YjtQvi532dw== Received: from DM6PR12MB2748.namprd12.prod.outlook.com (2603:10b6:5:43::28) by DM5PR12MB1819.namprd12.prod.outlook.com (2603:10b6:3:113::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4108.24; Sun, 9 May 2021 08:21:48 +0000 Received: from DM6PR12MB2748.namprd12.prod.outlook.com ([fe80::c9e8:d4b1:c3f2:87fb]) by DM6PR12MB2748.namprd12.prod.outlook.com ([fe80::c9e8:d4b1:c3f2:87fb%6]) with mapi id 15.20.4108.029; Sun, 9 May 2021 08:21:48 +0000 From: Raslan Darawsheh To: Shiri Kuzin , "dev@dpdk.org" CC: Matan Azrad , Slava Ovsiienko Thread-Topic: [PATCH] common/mlx5: fix mkey attributes initialization Thread-Index: AQHXQw7cMYpNof1N4kajHSZhkaWMBara0nHg Date: Sun, 9 May 2021 08:21:48 +0000 Message-ID: References: <20210507070122.174449-1-shirik@nvidia.com> In-Reply-To: <20210507070122.174449-1-shirik@nvidia.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: nvidia.com; dkim=none (message not signed) header.d=none;nvidia.com; dmarc=none action=none header.from=nvidia.com; x-originating-ip: [188.161.229.85] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: ab97ca12-08c2-4461-5ac9-08d912c37d90 x-ms-traffictypediagnostic: DM5PR12MB1819: x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:6430; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: N1awqHBDer890hz89doywc9X9qq+AWnUBjHY/HUofaiCo5CcwDdvN94Qg/gQbpn312m7dGhbr041wOk9k6Mxc+ImZtidzAGS3CU7LhICF0HWqgTqn5/XUvx8G0jUHapNO4/1uKIcdmuw9yz6LbFBOkZSImraMevdpGIF1tV7lr3PRDxF/Wq5oHmA2koI8poqqVtgKpajfPcGk1feIkhKmTyhBOdSVrWqAECQ0l7uQpl51l+lRoOOdy3SbJcmw0rLuMT+gDUwwOhAX1pnGLn7U8ZyEreOfQvCLojtaJxU3+RJqwsxICMiNGdI/cbMM9c+5ynp4Jfe/HD9D1zg7ydy8U4TdI9FD/MvdnRCcpLhNQ9lZ0obn30YrZJVSDykruPwD2C+KKL+QsFqgORasq/KByic2wDxpBROzDSKbpGRxIM1tqB0XaDDPUvVZfbYT0pCDy/GnESsR+2XE61+qMRG0Y9a6QLdqhrOnziyvKkeI3QESrXZlqqR/gKWrIcXEQ/czbZ/Y13BEd3q0L3fsP6iXuZ5LQu+XKowDpLqUZwiOdlhzceMos4GjQ0edqMVgDKnf8UxJ77ygS37vMarpUon603iEExry4ndcfBewLvyees= x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DM6PR12MB2748.namprd12.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(136003)(346002)(396003)(376002)(366004)(39860400002)(9686003)(2906002)(186003)(110136005)(76116006)(6506007)(66556008)(66946007)(66446008)(64756008)(54906003)(66476007)(7696005)(55016002)(53546011)(8676002)(478600001)(33656002)(5660300002)(52536014)(316002)(71200400001)(8936002)(83380400001)(107886003)(86362001)(26005)(122000001)(38100700002)(4744005)(4326008); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata: =?us-ascii?Q?20xvxV2jm/O2sPTTXm8AVz3QScfUhLIQ6zFyDRCqlSocZrcCd2vvYvyRcI48?= =?us-ascii?Q?p8QP6pGYuT61z6rcK2mrUupcDxqg2KTk/n78IawCEBB38aynjQAiGFvfj4Y/?= =?us-ascii?Q?zyZ9l+D57p/q2VflOAG8GFqOaUntHel56jKeW2c/He0vsBDtGcz1nc1/SJy3?= =?us-ascii?Q?2VO7x4bYC4yRPToT8kqzUU0rqCNRLHicUpyY91J+YjgGHAvzu73LoR1F2fsI?= =?us-ascii?Q?HnZh0ceZ/OjA9CyC4TbSnhXO0l7IZdKFsC0t4uUyAFGINfr4fNoxguImLVwS?= =?us-ascii?Q?vTnoeLjTorMkyXHxOyGByRe3KJzmEOsrs0fGdSubanx1TJPgrUgssMia9ZeH?= =?us-ascii?Q?sZyxL0b/iV+x2Ct37hak1ruZTKRITCnLjLSpe4dew7qlytLCuSacAt7d5PZv?= =?us-ascii?Q?hce80e6rgTssLX39Rac+oFdshSXrUDUAEHxJ7tKzvUYDEJujGtwwdr7cm1wJ?= =?us-ascii?Q?48VwWODNiwWZ/oakoSX7Gqg4D5L12uEkWRNP4+ErIws0FX5o1vVShJG6UWkU?= =?us-ascii?Q?GcjGwkHlWWT3EBBqAevO+MGLllbP4p2YUVJd6MLvEa8cu2J9bwGLnOZnTHE3?= =?us-ascii?Q?8Bg0RCFEV3C0KIN2zW0c6+4WmMq1MfC02UCpgShQ/etuVCe4dsXL55k1qGOl?= =?us-ascii?Q?ZTsyhuEh/ELsASrHTt1uxTQGrLG3tBGAkQIUlBy2njOg4LQ68npHoPdQCC5W?= =?us-ascii?Q?eUIF40gSjf0GWyJbVrNOuHFj/Gj9Krh+ko89Elij2Rc+UDmVU4ldifEf/9qa?= =?us-ascii?Q?0BtDbWabdj8ieg2iPpmr4+11dpQ+MDMGGxiQhl/H/6HEOL/iq4LmzLDdVCrX?= =?us-ascii?Q?RpvrofeLYz60n8jXKmwyKbvmoWswyVof2ogSDOlDlsMSQY2suF4x0AMrMako?= =?us-ascii?Q?RAnzdcgU8pAsBjlPKMSs36PkrfAn9ZmwAkMSxm2iQjgLK4wR0lGuTMUg+r6M?= =?us-ascii?Q?xUsPJMLH2swXRVcF70j0ZB5ZDsXax+V4sKRPjvTvN1T1wYYDUzcWR781HSt6?= =?us-ascii?Q?gzy98IyXRv3Y0EcfI1rd+jqjZUn1NtcGkqiAuFnXxhdEafwTIT8vcwdtlQD9?= =?us-ascii?Q?NoXbz/2cpKCwDI0oZBz0/RRdLyFPXJKhuIDEeyYYLAlbefvJUSov3e6+IJ3R?= =?us-ascii?Q?BgITYSc4T26Ahi+ehISpqT5Mfi+seRztZ6zRLUvOPKfAHV2XRrk9gkLF3nXY?= =?us-ascii?Q?8q6xibsO7KE1vpJ8ekC/5xAhYBKdcIrB+0MbcJ+QXlgyDYk3c6K6Y+h8OwNA?= =?us-ascii?Q?KrrKJhMZxCskxasrb9ZRG+SYkYmwm7AUaX42cQyTiNddUSuDMq1Csosehm1y?= =?us-ascii?Q?qW8WPvzf/uMfAtrhH0XXBSXg?= 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: DM6PR12MB2748.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: ab97ca12-08c2-4461-5ac9-08d912c37d90 X-MS-Exchange-CrossTenant-originalarrivaltime: 09 May 2021 08:21:48.3301 (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: dWB3dUYfzL4+Dn/KnjsDWMaF+5S83KzaT8ToyXKKuD69WhD3JtNzWUiI5PTX4rrswVsxG4f4Ctr9OGb5UEb6iQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR12MB1819 Subject: Re: [dpdk-dev] [PATCH] common/mlx5: fix mkey attributes initialization 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, > -----Original Message----- > From: Shiri Kuzin > Sent: Friday, May 7, 2021 10:01 AM > To: dev@dpdk.org > Cc: Matan Azrad ; Raslan Darawsheh > ; Slava Ovsiienko > Subject: [PATCH] common/mlx5: fix mkey attributes initialization >=20 > The crypto driver added new fields to the mkey attributes struct: > crypto_en and set_remote_rw. >=20 > The entire mkey struct was not initialized, only specific fields in it, > which caused the new added fields not to be initialized resulting in a > mkey creation error. >=20 > This is fixed by initializing the entire mkey attributes struct to 0 > which will prevent this issue from reoccurring if any fields are added > to the mkey sturct in the future. >=20 > Fixes: 0111a74e13dd ("common/mlx5: adjust DevX mkey fields for crypto") >=20 > Signed-off-by: Shiri Kuzin > Acked-by: Matan Azrad > --- Patch applied to next-net-mlx, Kindest regards, Raslan Darawsheh