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 B32F0A034F for ; Wed, 10 Nov 2021 07:42:09 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id ACDD640E28; Wed, 10 Nov 2021 07:42:09 +0100 (CET) Received: from NAM12-MW2-obe.outbound.protection.outlook.com (mail-mw2nam12on2047.outbound.protection.outlook.com [40.107.244.47]) by mails.dpdk.org (Postfix) with ESMTP id EAC234014D for ; Wed, 10 Nov 2021 07:42:08 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=foQq3buBxk5fhg0SvpFp4k8GAyh0qczq3LukffXF02ZKGuzS3TpxR6fa7IBkI9uCJ5evX+HOFgl5o0CunS/1F+Hbmysz5MLk1A+jK6q5Y5c8LQgDayF/A3CJLZRme+8+Sfrtoz1CmMQmgKIRy4sOIT0HrQrIo02xTqAQnkyCt3XQ/lwdEV8XtQpr+yAgcp9KaCUYxq1Aiwp+aBtOvKGKKIcQqXoW+5tYpfmATd7xeWTKzrpcQM87OnhahmmSvKs3sLZTKz6W7jGrg1PgDikdZgafbmvP/D8W9OiunP6DCWQSaQ9X2TQZvpQRAgl7Un9p4M37DPEtZMp0ZlJjtkBBTw== 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=c2cFVeYBEm0RVs0EHsAYTPdEEAD57d1gAVVOYfqUJYA=; b=BczAv5LDh5/XxyGc8DyQRQJ/TgOf6TVOrEI8HlB5BODFppgnqOzxC84HmN34MOenS47670xN7Goz//m3Rpyd7dHtZxH0qxCBtahqXOC1rYFeNTQqdmH8oRjC8WuBklwySW8ouYo/Jvn0cCeMa9jsvHwb7DOxkYBBiKRUOujn/lRwyWWjapTQtFIAnkAPWXLbRLIP0+L7/wPR9NLo+/hQYHNK4BJG8lkqsRCFXDuHYTS4RfxuMitnf/RFQLKfIbQeI2+BJgVQVZVAKeAMU4ZrEqkro2K3ex6i5XwG9wqQKt3bj+BD9caB/ktG2xF2KYp5AJtvnbRV4vpx/rVpmbYB6g== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 216.228.112.34) smtp.rcpttodomain=redhat.com 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=c2cFVeYBEm0RVs0EHsAYTPdEEAD57d1gAVVOYfqUJYA=; b=LDxGl3kBF0J3c3zd2Grujw+LHA8kQDBuVQy8da5OGtv1FOvSql0bXgFPJMxzVJYvS/CuAlpr/RepU1O/8KzdliA8iiZUIdgImax3UDFYV/tCst30AYW2KsiwGc0aKEyIHG6YfgAW8GJndutl3SBa3lihiM7NjHUjX2FRO4QDJXRxvv9PC0wNKhL2XvpVREmXv7TOV/1MBJbvY0dFkVExsWuPtKjXq7hhtCe3qo1XV9jSqhnCbvBJ74v3hSflvzdv2LbsxhDqTWDlfBM7o6Fsv+iSnpRjZHVF0BQe/4tEDXdJ/j7uBFDKWF5mYCocQDisDx8Hp0pYEmpVgvJBeetnIg== Received: from DS7PR03CA0010.namprd03.prod.outlook.com (2603:10b6:5:3b8::15) by BY5PR12MB4322.namprd12.prod.outlook.com (2603:10b6:a03:20a::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4690.15; Wed, 10 Nov 2021 06:42:06 +0000 Received: from DM6NAM11FT032.eop-nam11.prod.protection.outlook.com (2603:10b6:5:3b8:cafe::b4) by DS7PR03CA0010.outlook.office365.com (2603:10b6:5:3b8::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4669.16 via Frontend Transport; Wed, 10 Nov 2021 06:42:06 +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 DM6NAM11FT032.mail.protection.outlook.com (10.13.173.93) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.4690.15 via Frontend Transport; Wed, 10 Nov 2021 06:42:06 +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; Wed, 10 Nov 2021 06:42:01 +0000 From: Xueming Li To: Bruce Richardson CC: Luca Boccassi , Brandon Lo , David Marchand , dpdk stable Date: Wed, 10 Nov 2021 14:29:31 +0800 Message-ID: <20211110063216.2744012-88-xuemingl@nvidia.com> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20211110063216.2744012-1-xuemingl@nvidia.com> References: <20211110063216.2744012-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: e86982c2-7cf7-4887-74da-08d9a415367b X-MS-TrafficTypeDiagnostic: BY5PR12MB4322: 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: XJohZgwDd/Kh5ycxR12dWcHe/KK+mWQLDosN7G50lW3wjalcyMdN+AGK2nRsoyYjZnUvFn1l/0TTxbZuyF/Qrp3Wi59+jbv1bXVr0mRuBipFxlcPiHR6n7+IIGu4z5nK/1MGf3ilRBp3K8crFZGUCIcGHcfNRsRw0LK3ME6sri3LRsthrd3Ufk4+fxbESocEZSX1cAmeUaE2RTlyT+bG/YUQjuZcQyPepHKSSeRuyjvGLrQL6lbCv6nPu/edrPbJ7qLdfTuK6meLaC2K9HV1nZ/IJ3NsZ6xN6LS7IiL5N1UR/w+uoltBOXS6T9DJkEMsy9uTcYadTyhMa/ovi4O/g4r2SYh/nuPxNES1e3r9k+757E33uySkohhHn+FyJ5G+pmjTkOMo4fDiJ2MEuodN8MSoAKxpGcexYxmxcaa8MvMgA4D6Ewc79/mh8QVsX4wNcYueR8RSjUrKAaok5YPPJy82DUuK+QN6kzUS1CaG4/l5+er/OjL0UfWX6+UirdDParzHYzOEJxnlUPAfcsEtLb5waVnyCC33ScjmVokVsqctUpXUkanBM4lq9GJDXWFVgJrYmm71Uq1rnamnvz1KnH7uTLWG3keh7BnkziNFz8lZRJvinrpha/4MpUDYpCCnOozhAmIsGzddGliQ7AfHVzMiVdhEDmGXSAboXjjbPzVjhCpx4L1YEE/0hhGagzBfQAhDXmJkmOWvMSufnsDAGoRsuIzECC/k1qigIsQjBaD15kQnHyHWDNsnNoWAmXzUR+imgwMmtQpNIKqMnjNF4sXDBfPD0h9mlYCo2vTyYxXOfXyeOKOsjU5fjidohmnxvCg9mlJW14+RxcvzxMi/6g== 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)(36840700001)(46966006)(356005)(26005)(316002)(5660300002)(508600001)(8936002)(6666004)(8676002)(186003)(16526019)(7636003)(54906003)(53546011)(6916009)(70206006)(36860700001)(83380400001)(70586007)(36756003)(47076005)(82310400003)(7696005)(4326008)(4001150100001)(426003)(86362001)(1076003)(2616005)(6286002)(2906002)(55016002)(966005)(336012); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 Nov 2021 06:42:06.3745 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: e86982c2-7cf7-4887-74da-08d9a415367b 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: DM6NAM11FT032.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY5PR12MB4322 Subject: [dpdk-stable] patch 'test/mem: fix memory autotests on FreeBSD' has been queued to stable release 20.11.4 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 Sender: "stable" 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/12/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/192d2f2dcd46753c888c987eeaa26677457fcea6 Thanks. Xueming Li --- >From 192d2f2dcd46753c888c987eeaa26677457fcea6 Mon Sep 17 00:00:00 2001 From: Bruce Richardson Date: Fri, 17 Sep 2021 16:09:17 +0100 Subject: [PATCH] test/mem: fix memory autotests on FreeBSD Cc: Xueming Li [ upstream commit 086d426406bd3f6fac96a15bbd871c7fe714bc2d ] The memory autotests were failing on FreeBSD, due to an incorrect errno variable being checked for ENOTSUP. The test checked "errno" while the DPDK API sets "rte_errno". Changing to check the right variable makes the test behave properly. Fixes: c3e35a0966b8 ("test/mem: check segment fd API") Reported-by: Brandon Lo Signed-off-by: Bruce Richardson Reviewed-by: David Marchand --- app/test/test_memory.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/test/test_memory.c b/app/test/test_memory.c index 7d5ae99bab..dbf6871e71 100644 --- a/app/test/test_memory.c +++ b/app/test/test_memory.c @@ -6,6 +6,7 @@ #include #include +#include #include #include #include @@ -53,7 +54,7 @@ check_seg_fds(const struct rte_memseg_list *msl, const struct rte_memseg *ms, /* ENOTSUP means segment is valid, but there is not support for * segment fd API (e.g. on FreeBSD). */ - if (errno == ENOTSUP) + if (rte_errno == ENOTSUP) return 1; /* all other errors are treated as failures */ return -1; -- 2.33.0 --- Diff of the applied patch vs upstream commit (please double-check if non-empty: --- --- - 2021-11-10 14:17:05.909401957 +0800 +++ 0087-test-mem-fix-memory-autotests-on-FreeBSD.patch 2021-11-10 14:17:01.847412948 +0800 @@ -1 +1 @@ -From 086d426406bd3f6fac96a15bbd871c7fe714bc2d Mon Sep 17 00:00:00 2001 +From 192d2f2dcd46753c888c987eeaa26677457fcea6 Mon Sep 17 00:00:00 2001 @@ -4,0 +5,3 @@ +Cc: Xueming Li + +[ upstream commit 086d426406bd3f6fac96a15bbd871c7fe714bc2d ]