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 756BCA0543 for ; Tue, 21 Jun 2022 10:11:52 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 2A45242B74; Tue, 21 Jun 2022 10:11:23 +0200 (CEST) Received: from NAM12-DM6-obe.outbound.protection.outlook.com (mail-dm6nam12on2052.outbound.protection.outlook.com [40.107.243.52]) by mails.dpdk.org (Postfix) with ESMTP id 0EAF84280E for ; Tue, 21 Jun 2022 10:11:22 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=H23bT3/zBHGn9ojlnlo6fflGY60fhGkGOKbtOGzsBCrdTBEuPMe8qfGDeNoDU1/Mz8QljIIzsF3mc19DYi2Sw7lcEzCk6+JM84mRn4t6r7E+aKYyKw6i/NtyMcZtiRU8jwAu07TA5jMENhz1OZ7RYV/7ZMVIDA7R40E0eBGIIEMaXIX4IlvigPemwUVAd+im+uY4YHa7UEWdcfu2S0rovtYbf7s0B14yAj4YeTAQ7bvBiktLPC79THz93QQtwWlQL+ngV6vGhj81krilpJWKNz3yVIlo5g+/4ekOFr5+HZo6BxdlUJhvKXh+M6u+Yd5MwYUvS13nH9jYM3545DsL7A== 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=gxjutn1uNzB4gsX9CtYAe3VHbU41RgQThhA7DA+PNUE=; b=XJ0sRIifYycCl9rUJZ4s8Qqyk2xSMxvR107MxZRSD+crwV61JlzuWgK9VKxHB50AEM+lShRtotAlG56Aw3Rf50Dw4kKbb8vb/8QPOD3PLOiMo/V4f45dcxmZYY3ZPo/1pop9fGVQ/QBgn5NBC465GEBlPsp6ZDOPanbLOfmxXkk/zjDPILdPLU7Gcwbb9K1itC8PhLu4b0qZSn09k3H/os1h3ouqsVYk9IYkzuAgiRt2n65Uhzz2tqantjUbnFQLhUYVkDJJL02nlkVR6FsgAmFZgEjK5sYukT6tOZR6QWJDcRhjHvmziSXcBuM05SzFnE9qOdseOsU2hQCQhGnOAw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 12.22.5.235) smtp.rcpttodomain=dpdk.org smtp.mailfrom=nvidia.com; dmarc=pass (p=reject sp=reject 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=gxjutn1uNzB4gsX9CtYAe3VHbU41RgQThhA7DA+PNUE=; b=I2HGQuA3tHcGYYhcBubu60upGNs0YmGo5eH1mDCvKE4ZHbju92u3QgLeU0a0mGLFhGwdsHdI9VdXf72JHOpwkK2mzz15UUPi1NO/CNYWB+P6XfitTYHarYKfRWmFdM4H8TpiS/HLaSkuh/WKtrbZeYc19Y/LgqCzoXEJ7UN0iF3sIQYN+0KaPk45HJx6Nd+9zJqUz0VC248F+bQZ3oPH/04j/amEY5P7AFrfOnEmdXZT1oLze7bQUqfA/n9Y36z4j6DKAEVrMFcZCktU0ECDlf3z8zmLZX/fG94teurKMIM3D569/S6hpsBqJo7knmURiVkLik8bCgWmZ1lPaFDFEQ== Received: from MW4PR03CA0308.namprd03.prod.outlook.com (2603:10b6:303:dd::13) by CO6PR12MB5458.namprd12.prod.outlook.com (2603:10b6:5:35b::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5353.15; Tue, 21 Jun 2022 08:11:20 +0000 Received: from CO1NAM11FT039.eop-nam11.prod.protection.outlook.com (2603:10b6:303:dd:cafe::6d) by MW4PR03CA0308.outlook.office365.com (2603:10b6:303:dd::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5353.15 via Frontend Transport; Tue, 21 Jun 2022 08:11:20 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 12.22.5.235) 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 12.22.5.235 as permitted sender) receiver=protection.outlook.com; client-ip=12.22.5.235; helo=mail.nvidia.com; pr=C Received: from mail.nvidia.com (12.22.5.235) by CO1NAM11FT039.mail.protection.outlook.com (10.13.174.110) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.5353.14 via Frontend Transport; Tue, 21 Jun 2022 08:11:20 +0000 Received: from rnnvmail201.nvidia.com (10.129.68.8) by DRHQMAIL107.nvidia.com (10.27.9.16) with Microsoft SMTP Server (TLS) id 15.0.1497.32; Tue, 21 Jun 2022 08:11:10 +0000 Received: from nvidia.com (10.126.230.35) by rnnvmail201.nvidia.com (10.129.68.8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.22; Tue, 21 Jun 2022 01:11:09 -0700 From: Xueming Li To: Yuan Wang CC: Chenbo Xia , dpdk stable Subject: patch 'examples/vhost: fix crash when no VMDq' has been queued to stable release 20.11.6 Date: Tue, 21 Jun 2022 11:02:36 +0300 Message-ID: <20220621080301.2315720-91-xuemingl@nvidia.com> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20220621080301.2315720-1-xuemingl@nvidia.com> References: <20220621080301.2315720-1-xuemingl@nvidia.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [10.126.230.35] X-ClientProxiedBy: rnnvmail202.nvidia.com (10.129.68.7) To rnnvmail201.nvidia.com (10.129.68.8) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: f15d92c5-bb70-461d-d41b-08da535d9fae X-MS-TrafficTypeDiagnostic: CO6PR12MB5458:EE_ X-Microsoft-Antispam-PRVS: X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: mrv3mAow8dCUIXAldYaGFXEfz41B4CaO/hCCtFarO0Ze4OycbtNMMimdYJagUOsMol8jBC9cMvGVYZw6IjeoBOJd9VMY6TckVzdoMuVMPFqAfpzB9Y3py9w4yxSA03SP6d4/oswgDQG15bpPd4e4Tx4Odbglw9oNNxMPeiozBliOg4Mm49wnI6lqY2PKf5NJVTsvvjsHBDhboHjQyYIeaD3WL+Z0Gjd/h4kEtcEMLqjSR6eDPQtsL2UxwlPw27F3CqQgNt1oFYQ4FIM1/aJLKLL9LjIVdfL9dHcwgClwNBjHTgOlbV3LVZVEhwwsaGPqqplv4J/YEsABsTnKChdacn2YiIbOOPSE3Lf77V0PZ2salmBdjsuPyv8uMuohhdZ3MJm8E/KaINYGFvVQjZb4kPshrsTKNmaARXrpKhVJd6BrYQ1MS9KYzludHB7xeLYNStd3aT19Y7Pt07v32YZ9QSU7MDXbLakSO5W9AOEnS8eHJMTeBdTkFULElzZnQLnUkqmYIqIuQYMWuPnrv6jpJQpRGl4HuhM9Y9WlN1Qx1Hq+rIoIccxyK5tcTNjOZi0shBrNiRkHk/XKwcxGCqWgSzGJd/9jOn1xURPmxTo/SQQsReWCH6TbbKHXcbG8WW7ZTwTn+ojp2inXp4dh0vO7t437djwHxek4AroAd9TBYvQGG6UTcUXBWn86Bu1dg0C/ArgaagfjuBQtb7e+o6FnkDbfVBrSAowy6hJLLVm6lll3NW6tJLekSV4fOBeaad6LqkuTR19khi5hfDPMjpeDaTUIdvR1WYP0l2cZ5eIpDsR94rURFTQ5qJj+1v5kuWinjilk7+UA7OatGbEGKwniFcKyELtpkNg+tikUTf02bVU= X-Forefront-Antispam-Report: CIP:12.22.5.235; CTRY:US; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:mail.nvidia.com; PTR:InfoNoRecords; CAT:NONE; SFS:(13230016)(4636009)(346002)(376002)(136003)(396003)(39860400002)(36840700001)(46966006)(40470700004)(81166007)(54906003)(4326008)(356005)(478600001)(82740400003)(6916009)(966005)(8676002)(336012)(47076005)(186003)(70586007)(16526019)(1076003)(36860700001)(70206006)(86362001)(6666004)(83380400001)(82310400005)(53546011)(316002)(26005)(55016003)(7696005)(5660300002)(36756003)(40460700003)(40480700001)(41300700001)(2906002)(8936002)(6286002)(426003)(2616005)(36900700001); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 21 Jun 2022 08:11:20.1351 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: f15d92c5-bb70-461d-d41b-08da535d9fae X-MS-Exchange-CrossTenant-Id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=43083d15-7273-40c1-b7db-39efd9ccc17a; Ip=[12.22.5.235]; Helo=[mail.nvidia.com] X-MS-Exchange-CrossTenant-AuthSource: CO1NAM11FT039.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: CO6PR12MB5458 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.6 Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet. It will be pushed if I get no objections before 06/23/22. 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/27dda79b5d23c2badbf870e2a4edcc3bf430c118 Thanks. Xueming Li --- >From 27dda79b5d23c2badbf870e2a4edcc3bf430c118 Mon Sep 17 00:00:00 2001 From: Yuan Wang Date: Wed, 18 May 2022 21:36:33 +0800 Subject: [PATCH] examples/vhost: fix crash when no VMDq Cc: Xueming Li [ upstream commit 6f3d83c7f207d435d960ad881f127e9971a81069 ] If the VMDq limits is 0, a divide-by-zero error occurs. This patch replaces throwing a floating point exception with a normal error message. Fixes: d19533e86f ("examples/vhost: copy old vhost example") Signed-off-by: Yuan Wang Reviewed-by: Chenbo Xia --- examples/vhost/main.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/examples/vhost/main.c b/examples/vhost/main.c index fc07b31b2e..24e37f7ce5 100644 --- a/examples/vhost/main.c +++ b/examples/vhost/main.c @@ -255,6 +255,10 @@ port_init(uint16_t port) return retval; } + if (dev_info.max_vmdq_pools == 0) { + RTE_LOG(ERR, VHOST_PORT, "Failed to get VMDq info.\n"); + return -1; + } rxconf = &dev_info.default_rxconf; txconf = &dev_info.default_txconf; -- 2.35.1 --- Diff of the applied patch vs upstream commit (please double-check if non-empty: --- --- - 2022-06-21 15:37:53.293101523 +0800 +++ 0090-examples-vhost-fix-crash-when-no-VMDq.patch 2022-06-21 15:37:49.187785117 +0800 @@ -1 +1 @@ -From 6f3d83c7f207d435d960ad881f127e9971a81069 Mon Sep 17 00:00:00 2001 +From 27dda79b5d23c2badbf870e2a4edcc3bf430c118 Mon Sep 17 00:00:00 2001 @@ -4,0 +5,3 @@ +Cc: Xueming Li + +[ upstream commit 6f3d83c7f207d435d960ad881f127e9971a81069 ] @@ -11 +13,0 @@ -Cc: stable@dpdk.org @@ -20 +22 @@ -index 5bc34b0c52..e7fee5aa1b 100644 +index fc07b31b2e..24e37f7ce5 100644 @@ -23 +25 @@ -@@ -431,6 +431,10 @@ port_init(uint16_t port) +@@ -255,6 +255,10 @@ port_init(uint16_t port)