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 7C1C2A0548 for ; Sun, 28 Nov 2021 15:59:37 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 56DBA4111B; Sun, 28 Nov 2021 15:59:37 +0100 (CET) Received: from NAM11-CO1-obe.outbound.protection.outlook.com (mail-co1nam11on2072.outbound.protection.outlook.com [40.107.220.72]) by mails.dpdk.org (Postfix) with ESMTP id 991774068A for ; Sun, 28 Nov 2021 15:59:35 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=TbmYCDEIEPrgEz6k9Hk16rROcoBdAb49bhTX0v+HLhbsWj4+Gf3AdcgfTpU6gcntQQ4fqmRfG1dG7R8dAU3LJBlR0FKVwDOVH1cJU4Mgh0LfrRnK/BGq53zlHrUHT33XqueJRJNGaOBnzUDlecDY4NLuGAF0sKiyRXCH46vpG58tyU9oIlfaj5NvaKE/KiGZsLnt8jM0ofzl6rmJh07diddTXrQ1tjnFTDBJUB/DU443DVTFUsIgo5ki3jtL7VdCHivccWxwvTdCszwVpiMdAPX8v4ygvCjfLsUiNe6kbRq1Fp5iE+mfyGeY/Naun6hjylibBgTvok728Tiix+7MvQ== 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-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=N1BlwqDpWjooYziKE7vTWWAFSYlOLJwstBbSgSGJtf0=; b=gJ/WSWGPg1rNvUHU/6e1Ek4szHFV2HgpMknzGR0kRzyH81ocpjpF/Px8zLpMgIxEwU9/2n1GvIxWDxgSibprxf591yJX1mTj8cJLoMXFz+BTOb3sFpMFZ8x5CUo7+WwpA6nebdQR1+4k5GRhnCqE/+IaIfAd2Xz0XDuhljKlIx8i4ZFpWDC85fjnkQNCtC/uy+Qu/GuNxBh99HgK+Bd72EaoGg7P2IuThbJ3H1yoPCyF7yx9FFmFPrFBy48IHdcT6DczaylK6b510FCxxtkXUb/Hk8AxgLMRAMHkD88w1yxUbNwXkMpSfGqjlqbc+IWMCefxyfIB6GhBVNhCwdu6HQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 216.228.112.34) smtp.rcpttodomain=dpdk.org smtp.mailfrom=nvidia.com; dmarc=pass (p=quarantine sp=quarantine 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=N1BlwqDpWjooYziKE7vTWWAFSYlOLJwstBbSgSGJtf0=; b=EgDYFSo/qwbBNc1mMuR1IouBkaW4RKliZOReluYOGPWP4df0e+YX3lqp6O5yH1CLL0+KyvbnGqJKCzyJAQO57qKH5JwUbVkBJzJOQ6toObFT6vn6ElhnQY/i5xEbCeuqXH5bR4sXyGiJHFDinYAC1u0H9b1DZr7axFixxXuhz2VRlFC4Q7T0EFDfSug9FZTeZRz2eHcoBtjxVg2waVLY1kSGJWzqVmwEZUJJxzHGtT5fzNqo1WnbmfHy3gewXXeqekKEaY8bD8MxpaZZgn6zCqZkSQa1854CLKlnoY0mzpi5W+KXS53iUggS6/jffGINoTFxAkiQIaMwFQIa3ula8g== Received: from BN9PR03CA0735.namprd03.prod.outlook.com (2603:10b6:408:110::20) by BN6PR12MB1841.namprd12.prod.outlook.com (2603:10b6:404:103::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4734.24; Sun, 28 Nov 2021 14:59:34 +0000 Received: from BN8NAM11FT004.eop-nam11.prod.protection.outlook.com (2603:10b6:408:110:cafe::10) by BN9PR03CA0735.outlook.office365.com (2603:10b6:408:110::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4734.22 via Frontend Transport; Sun, 28 Nov 2021 14:59:34 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 216.228.112.34) smtp.mailfrom=nvidia.com; dkim=none (message not signed) header.d=none;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 BN8NAM11FT004.mail.protection.outlook.com (10.13.176.164) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.4734.22 via Frontend Transport; Sun, 28 Nov 2021 14:59:33 +0000 Received: from nvidia.com (172.20.187.6) by HQMAIL107.nvidia.com (172.20.187.13) with Microsoft SMTP Server (TLS) id 15.0.1497.18; Sun, 28 Nov 2021 14:59:30 +0000 From: Xueming Li To: Bing Zhao CC: Luca Boccassi , Matan Azrad , "Chenbo Xia" , dpdk stable Subject: patch 'vdpa/mlx5: fix mkey creation check' has been queued to stable release 20.11.4 Date: Sun, 28 Nov 2021 22:53:47 +0800 Message-ID: <20211128145423.3974892-44-xuemingl@nvidia.com> X-Mailer: git-send-email 2.34.0 In-Reply-To: <20211128145423.3974892-1-xuemingl@nvidia.com> References: <20211110063216.2744012-1-xuemingl@nvidia.com> <20211128145423.3974892-1-xuemingl@nvidia.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [172.20.187.6] X-ClientProxiedBy: HQMAIL101.nvidia.com (172.20.187.10) To HQMAIL107.nvidia.com (172.20.187.13) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 1f61b166-3a6a-4cde-6050-08d9b27fb086 X-MS-TrafficTypeDiagnostic: BN6PR12MB1841: X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:10000; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: ctuFq7a66QjMpQE7/5g7LyoOExgsgKytH4yq1PacTiq7dDz23MBhVuqoC+w23BXFmqafUKmb2vTBdL0SEihNp/9UDGAmqg4MCGrZAY2OisHyYQVENs4TWtw9DudX/TRegXb+950rDaoWKdnUwQroDy/ToljBkyHkK73OM60YOLleuHdgzJSWEgq8HlnTTez21thKzm+3GGNATcB08oAd0qlX9jWlhQdG78lYCoKuvcsfU3jEmtaJRU7aj5v0I8jgMHc4M/0plTnieYPEp6y+cchtwe1it8kn+gyIRR2Pjq29NLPdITzbZMkznbG0QzncNrxmoBQd9yWpvvzRIa9jNwy5rR/jjLbYbgcWKmOug6vz0mO4sBX/UeYwQ1QImQkhNaDkH8Yr0lbu478qNMbR6HNNcurAleqXxt8mGbYRB/22zu/nitV2DdqJVRvAk7lCNk02C+7Zmnqza5XOi4v8AUqwIAGtFsiVv56awFimI79UL7yGFeg/W/h1a+EwjG3SXr9Jkg6okz6WvqTbRj11Mu0dJvksNDhYAit+9TmtqNZJIZQ7hO+WrmNbnP0VdOjTrwNB4ju3llfHz9xEOrnegxVILBkGcNACv06z3l9wDsqTaPS12yN57JuE7KzpdENem4jfVS6fploNZ2V2whP752DHdQSOpVyIImgFcRNrRUzOnVaL0CWJIOyXPFbP/8bycWR5uoKU5JJD/a6KtdNdhic/qFpcMIGOGzM0VoYk9X1Yquecs7iFHIsfu5x5UU7kjnSGQes/AuAAV6hAoz0LheATMxeYee0d9gx9Zewo5vIbF+QHtiEqxUESWbJQV4q3rx6cfL22lBuAtYtiF3lYzg== 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)(46966006)(36840700001)(36860700001)(2906002)(336012)(2616005)(55016003)(47076005)(6636002)(86362001)(82310400004)(36756003)(426003)(83380400001)(356005)(7636003)(4001150100001)(1076003)(6666004)(316002)(8676002)(8936002)(70586007)(5660300002)(7696005)(54906003)(16526019)(70206006)(37006003)(26005)(186003)(966005)(508600001)(6862004)(6286002)(53546011)(4326008); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 28 Nov 2021 14:59:33.6326 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 1f61b166-3a6a-4cde-6050-08d9b27fb086 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: BN8NAM11FT004.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN6PR12MB1841 X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: stable-bounces@dpdk.org Hi, FYI, your patch has been queued to stable release 20.11.4 Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet. It will be pushed if I get no objections before 11/30/21. So please shout if anyone has objections. Also note that after the patch there's a diff of the upstream commit vs the patch applied to the branch. This will indicate if there was any rebasing needed to apply to the stable branch. If there were code changes for rebasing (ie: not only metadata diffs), please double check that the rebase was correctly done. Queued patches are on a temporary branch at: https://github.com/steevenlee/dpdk This queued commit can be viewed at: https://github.com/steevenlee/dpdk/commit/bc9ea21f705e5c0b66b9e187e92b24b38fddabfd Thanks. Xueming Li --- >From bc9ea21f705e5c0b66b9e187e92b24b38fddabfd Mon Sep 17 00:00:00 2001 From: Bing Zhao Date: Fri, 12 Nov 2021 16:42:45 +0200 Subject: [PATCH] vdpa/mlx5: fix mkey creation check Cc: Xueming Li [ upstream commit e9511a26e1c4fed566c3c2ea33ca895b7ab4f724 ] The return value of "mlx5_os_wrapped_mkey_create" is checked in the caller. A zero means success without any error. The typo in the if-condition should be fixed in case there is a misjudgment. Fixes: 398ea8450c53 ("vdpa/mlx5: workaround dirty bitmap MR creation") Signed-off-by: Bing Zhao Acked-by: Matan Azrad Reviewed-by: Chenbo Xia --- drivers/vdpa/mlx5/mlx5_vdpa_lm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/vdpa/mlx5/mlx5_vdpa_lm.c b/drivers/vdpa/mlx5/mlx5_vdpa_lm.c index 49d74a7e99..bb5bd3b887 100644 --- a/drivers/vdpa/mlx5/mlx5_vdpa_lm.c +++ b/drivers/vdpa/mlx5/mlx5_vdpa_lm.c @@ -47,7 +47,7 @@ mlx5_vdpa_dirty_bitmap_set(struct mlx5_vdpa_priv *priv, uint64_t log_base, (void *)(uintptr_t)log_base, log_size, &priv->lm_mr); - if (!ret) { + if (ret) { DRV_LOG(ERR, "Failed to allocate wrapped MR for lm."); return -1; } -- 2.34.0 --- Diff of the applied patch vs upstream commit (please double-check if non-empty: --- --- - 2021-11-28 22:41:05.566180945 +0800 +++ 0043-vdpa-mlx5-fix-mkey-creation-check.patch 2021-11-28 22:41:03.323540920 +0800 @@ -1 +1 @@ -From e9511a26e1c4fed566c3c2ea33ca895b7ab4f724 Mon Sep 17 00:00:00 2001 +From bc9ea21f705e5c0b66b9e187e92b24b38fddabfd Mon Sep 17 00:00:00 2001 @@ -4,0 +5,3 @@ +Cc: Xueming Li + +[ upstream commit e9511a26e1c4fed566c3c2ea33ca895b7ab4f724 ] @@ -13 +15,0 @@ -Cc: stable@dpdk.org @@ -23 +25 @@ -index e65e4faa47..43a2b98255 100644 +index 49d74a7e99..bb5bd3b887 100644