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 52994A034F for ; Wed, 10 Nov 2021 07:46:13 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 46BF840142; Wed, 10 Nov 2021 07:46:13 +0100 (CET) Received: from NAM02-DM3-obe.outbound.protection.outlook.com (mail-dm3nam07on2048.outbound.protection.outlook.com [40.107.95.48]) by mails.dpdk.org (Postfix) with ESMTP id 18FD04068B for ; Wed, 10 Nov 2021 07:46:11 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=WGRHJ3/kftJ4fNmY2CPG82LfnL4wX9bg9nxC89LZsKsD0N+khsgCxOKT77IFSmCiE4Lqies/nKu3U+FlyUhZZeV7Ibnwq84IhRe0nxZeEzhTG4TqaTf1qgfSxHZV2TE3y0qV9T0rxl26I1JVlxwKG0kFelBZNvwU9C/76yB1t0+SgzECPzCPmxpXrZgicg+DDaEjd23RKPMKlUaRTo4wlnPab8gQ5LUyT6YHQjIe3EwmFbFDYNHEWE50331CZXJhNAovW3MgQzVQzvb+wLprTJh8NL77LNpdVyN54jRAotLtff7nW234w5X/WzXbsTKkBzlocD9n9E5yLwt2efHzsQ== 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=tDyF1txJI6BBBQn94sYdFk+rruJ44MNbdKiTYFzvS6o=; b=XoSyPsyy5Ygc9AmncmAO0HN8aeP1Zb1wT3uO7QGQXpO6tUfHuNgVlHy6cTgTFk+ZeKo95eWXNCTKCNOhwfsj3S+dbolwIx9OoZO96XMABdQ+Uf+4V3H6faTD4fGxp6SrgvEQAjnpSqhOlm5sgDxIsQ44ukiURjKmbrhngpOjAXeANeAqpj9d4UfQauDMvdQiGDo/qiN2r20wAVb4UyZSotFDwHucqn7qsBk1Ulq9LDlhTda+iAILqnhpXWjJqoxgenZDvivlw+Oi6XAMWWOnmRgMpTgNDVm12MyLnDwofHTC2BquiEm+Gn5WTdWyVwxb6pEaS7SgjgRiRtBAltdb7Q== 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=tDyF1txJI6BBBQn94sYdFk+rruJ44MNbdKiTYFzvS6o=; b=GxFcqBCHQ6EhLYGSh0suPsaoa6RF5jr0VH19JrZfZNTdowVUxDL/xkr7wdMQTZ3gtL4EzZ12vfSooHdtsL/74gwQr2m5QIyfAjuq5BWCDZael/aZbnsmTozv5rSCQla3//kNFv00D8kbEfcdJ3jZqVKr2jnIb8xCmko3EBJutGAhMfGOPge+AvKC1GwUVyjCNKV5xAR9YVBKqwr3tnsRJfqecYoHSObP2rKRmfucbEZ8na0w5H3hmbJgdcRMjMIJ5Kkxq7BvwhjjWguGv0JVYXHqhj5PNYn0W3/RItv0KCVe/LmcjuB2X2rWFkRTb3iDHTBF1sVUhMiI6INT7kMyrQ== Received: from BN9PR03CA0296.namprd03.prod.outlook.com (2603:10b6:408:f5::31) by CH2PR12MB3910.namprd12.prod.outlook.com (2603:10b6:610:28::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4669.13; Wed, 10 Nov 2021 06:46:08 +0000 Received: from BN8NAM11FT020.eop-nam11.prod.protection.outlook.com (2603:10b6:408:f5:cafe::95) by BN9PR03CA0296.outlook.office365.com (2603:10b6:408:f5::31) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4690.15 via Frontend Transport; Wed, 10 Nov 2021 06:46:08 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 216.228.112.34) smtp.mailfrom=nvidia.com; dpdk.org; dkim=none (message not signed) header.d=none;dpdk.org; 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 BN8NAM11FT020.mail.protection.outlook.com (10.13.176.223) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.4669.10 via Frontend Transport; Wed, 10 Nov 2021 06:46:08 +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:46:03 +0000 From: Xueming Li To: Bruce Richardson CC: Luca Boccassi , dpdk stable Date: Wed, 10 Nov 2021 14:30:06 +0800 Message-ID: <20211110063216.2744012-123-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: 0ab65442-3587-43ea-3ba3-08d9a415c6bd X-MS-TrafficTypeDiagnostic: CH2PR12MB3910: 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: TK8prtCRxtfL0S1jFDBi+EFFo5Yj/8gxgqYm9hhEtQqaHdQ0Cu4e7UgMDlO6zf4liNcVq7LkVWBxNmv42HiO2+bT7pswo5ql1ys04bo4fw3aLkwDMcxZ5yYBwlSVN3Ea58I0DVkKMex0g2OEtaUuxDgy+U5BRkfDAGeQZ585uuCEttSH4XvNfsNVIdiMdeqzmKOdGAYfmuN0n3G+JmUPdQtIJl19F4LCrhvcAEaPaPf99+uKIgGLbIzUljZ58FVlmjRcMwRFlraUHxZ+rX0WHVTrTn/yfFIv+kead+9WSKpTKy9wvNhnpbChD+JWv1xpG56pX7QsO0boRimAAXNBAmoiCxwLOuEJxevtUGfi0BnTyo8zKPdhYhmRLGpQbY6m+6vb+vjdb0HohwULAyLtTlL7nrVXm6DW1+x4R+OctA0vsQeYwxH6eFF0JYF2pcnZZEE2sTV9c8b+mS+ff+VHkHXfIknOeTGbR46kGinGF+13dQ381XeZ9rFosZNP9jMbELBpJND383Vv736+VlMiacBVcLu1I1YtWWcMwzIWvLoPcwy4ODc3zmc/pIQB7nsCln7dp1VztOpiUt/Xue5BGW6XIW2xzCcP0F+9XJ8NzMWzprVtv3pRcKGhk3ZecRTvsz8ifSil0O8udPVliw1Tx2/VihmlwcJ43x03TLYDusbT1UxRVlaIjgUkjrdEP/yar+1uEgt40osVxrJGOfwZ6MQfNPi7gYe+rHahVARCG66SQGH/vx3YK+Pvn+afDKpHx4AZMVz3nUAyxeflcmKgjAkvPceCtTrTNquTTSy80OnCmUc4gaDA7z8pfPF8W+wQ79HeqIlGwHg9+6jbA6GFQA== 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)(55016002)(36906005)(508600001)(36756003)(5660300002)(54906003)(7636003)(316002)(53546011)(82310400003)(6286002)(70586007)(356005)(1076003)(70206006)(36860700001)(83380400001)(2906002)(6916009)(7696005)(426003)(8676002)(8936002)(4326008)(26005)(86362001)(336012)(2616005)(4001150100001)(47076005)(16526019)(186003)(966005); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 Nov 2021 06:46:08.3525 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 0ab65442-3587-43ea-3ba3-08d9a415c6bd 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: BN8NAM11FT020.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: CH2PR12MB3910 Subject: [dpdk-stable] patch 'eal/freebsd: ignore in-memory option' 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/341804051a43c954a195b11163529eda40f27063 Thanks. Xueming Li --- >From 341804051a43c954a195b11163529eda40f27063 Mon Sep 17 00:00:00 2001 From: Bruce Richardson Date: Mon, 13 Sep 2021 15:34:24 +0100 Subject: [PATCH] eal/freebsd: ignore in-memory option Cc: Xueming Li [ upstream commit 0faa4cfc50275751a86ed17147175c78a36f0da2 ] The in-memory option is not supported on FreeBSD so print a warning and ignore the flag when it is specified for BSD apps. The lack of support is due to the different way in which memory is managed on FreeBSD using the contigmem driver rather than via a hugetlbfs filesystem. Fixes: 14de8734c401 ("eal: add --in-memory option") Signed-off-by: Bruce Richardson --- lib/librte_eal/freebsd/eal.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/librte_eal/freebsd/eal.c b/lib/librte_eal/freebsd/eal.c index 77b42de416..d784437669 100644 --- a/lib/librte_eal/freebsd/eal.c +++ b/lib/librte_eal/freebsd/eal.c @@ -716,6 +716,10 @@ rte_eal_init(int argc, char **argv) /* FreeBSD always uses legacy memory model */ internal_conf->legacy_mem = true; + if (internal_conf->in_memory) { + RTE_LOG(WARNING, EAL, "Warning: ignoring unsupported flag, '%s'\n", OPT_IN_MEMORY); + internal_conf->in_memory = false; + } if (eal_plugins_init() < 0) { rte_eal_init_alert("Cannot init plugins"); -- 2.33.0 --- Diff of the applied patch vs upstream commit (please double-check if non-empty: --- --- - 2021-11-10 14:17:07.395501533 +0800 +++ 0122-eal-freebsd-ignore-in-memory-option.patch 2021-11-10 14:17:01.884079315 +0800 @@ -1 +1 @@ -From 0faa4cfc50275751a86ed17147175c78a36f0da2 Mon Sep 17 00:00:00 2001 +From 341804051a43c954a195b11163529eda40f27063 Mon Sep 17 00:00:00 2001 @@ -4,0 +5,3 @@ +Cc: Xueming Li + +[ upstream commit 0faa4cfc50275751a86ed17147175c78a36f0da2 ] @@ -12 +14,0 @@ -Cc: stable@dpdk.org @@ -16 +18 @@ - lib/eal/freebsd/eal.c | 4 ++++ + lib/librte_eal/freebsd/eal.c | 4 ++++ @@ -19,5 +21,5 @@ -diff --git a/lib/eal/freebsd/eal.c b/lib/eal/freebsd/eal.c -index 6cee5ae369..fb734012a4 100644 ---- a/lib/eal/freebsd/eal.c -+++ b/lib/eal/freebsd/eal.c -@@ -718,6 +718,10 @@ rte_eal_init(int argc, char **argv) +diff --git a/lib/librte_eal/freebsd/eal.c b/lib/librte_eal/freebsd/eal.c +index 77b42de416..d784437669 100644 +--- a/lib/librte_eal/freebsd/eal.c ++++ b/lib/librte_eal/freebsd/eal.c +@@ -716,6 +716,10 @@ rte_eal_init(int argc, char **argv)