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 AB1FFA0548 for ; Sun, 28 Nov 2021 15:58:26 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 9F3CB4068A; Sun, 28 Nov 2021 15:58:26 +0100 (CET) Received: from NAM12-DM6-obe.outbound.protection.outlook.com (mail-dm6nam12on2049.outbound.protection.outlook.com [40.107.243.49]) by mails.dpdk.org (Postfix) with ESMTP id 893E64068A for ; Sun, 28 Nov 2021 15:58:25 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=dNFhbS7vXDXrS11nZBdWryaipOrX796awXvtk28d0XIcE6iHnIDcK3NgihQablFDzhbK9obsvpwi6AJ/39XZClD5CNBoAQWbxox4D45KH4XxSiNNzXQ8MOIhxvIJIPAxKwVJeze9YjVHR5mwzREloFoQGz8i9Tc3EZPYEmRvJ3xWjKnlwlv4nl+PFDnBOTcFeVE3SevosxADce1v1FsRXfa1b9M4icTf560XzUilD2rkeFZQq//KjRQt3fch1uxtl/MrsW/3G2EQonbbNlQ0dZqwwzwWrKUwdZ69m8CW5XxHsKZ5gHe3svCKBfvqRuC3zKbiBcwOg7D/lz0/jKjItw== 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=SRXX3Jsa0fCoeXxccDNwikBudGA3VD/pKx5R14oaJkg=; b=X3Dn/LW116an4Os4o+tf6zgax5/SAxDSyB4UUfrJx52Y0WJVNnj41Ub6Y+LyZHO9M8qa+WHbdKA+gWnyYXT+Qbk8f6MfRd/kkshGIVSplZcOQ6ZlwIQN5oTHRVUg9KcCyvQPR8/FYK0tcaohidEl1e7g/mgo4yQvsSl4Es/+9lODdR11X1HcPk5iAeR/GCw6Pwgcp92XUyQEtqEfBhLrPQqM/VWHgOMeX6KRSUaNPPfWL9T3Y+TlAUmA3NyCMawDXwenJDILu/ZStoc+1p2/SWqRppd/WSbSLfoW/23zQRmtkUYpVKrvhvIj6Q8SFRgo2IhQi4P0Z393eItDXuDx7Q== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 216.228.112.34) smtp.rcpttodomain=intel.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=SRXX3Jsa0fCoeXxccDNwikBudGA3VD/pKx5R14oaJkg=; b=blwFXI0guQfUjsbX2PRfuahj0l0jDqwrDBp8fnZaBpgVmZhA59BY2T0Y+4Pk28XRqq1lJDQlYVKfZXsL8YTVOc6ATkljqFSxXkDnPwOVIUUAZhZG5qFqm+lpYNa6dJzWWcVb0r4O1iHYr0rdO8DZn/1v60XTrZHLbhUvGRXMSIRjAQ3u8N5ncM3pCAIxIoNjRvrhxnAq8aea9y4dz4/HnptIISkXTYKRCnmpPcTwIKyc69gUJ0+F0hor8olxtVbXOJSqk9zo6Mh5FzGPlAtw/SQBp055bnnEnjmD5YLBsWDJQiHW9HtjpTAhmj4WK7cSaJD3P2vpi5/546Lh0yUZDQ== Received: from DM6PR13CA0048.namprd13.prod.outlook.com (2603:10b6:5:134::25) by MW3PR12MB4443.namprd12.prod.outlook.com (2603:10b6:303:2d::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4734.22; Sun, 28 Nov 2021 14:58:24 +0000 Received: from DM6NAM11FT053.eop-nam11.prod.protection.outlook.com (2603:10b6:5:134:cafe::4f) by DM6PR13CA0048.outlook.office365.com (2603:10b6:5:134::25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4755.10 via Frontend Transport; Sun, 28 Nov 2021 14:58:23 +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 DM6NAM11FT053.mail.protection.outlook.com (10.13.173.74) 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:58:23 +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:58:21 +0000 From: Xueming Li To: Rashmi Shetty CC: Luca Boccassi , Mike Ximing Chen , dpdk stable Subject: patch 'event/dlb2: fix delayed pop test in selftest' has been queued to stable release 20.11.4 Date: Sun, 28 Nov 2021 22:53:34 +0800 Message-ID: <20211128145423.3974892-31-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: 5b0954b0-ba9b-4720-0b97-08d9b27f8691 X-MS-TrafficTypeDiagnostic: MW3PR12MB4443: X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:9508; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: FaXnzbVMGcB/Kla8j9K7rNsmVuto23UbmZa0BKfB10T1zqJb6z6rP78kQkTN6qsUDL0JOigHdQeN5yjeuuSnHcFMBajSD18kjNTqqvXdm+7s6AmREYsWZSMr7miNzk3i+wTXYRgWhHXTxVv/vPicj+uvB3vd9vGRGlTF9xyEk1+4g9QmsKv4vRIAyzeYevvuAv/eHvWWhx4Y3BumbVfIJSI1kV3KoXnCwqYRxZ4MDqBRk6lLzOjhLXUBrYYgMnGbwIcmkrGAj1UvnsiU1gMORCvBukSVL0/e9lWEehxbW8DLMhAUogqAlxbhJOojfA0DeNp8ycXQxWG/sl7K296qHEtH09j3OaxDPEI4/6H1TntKjEyKFHK0RPcOKwC6IusKM4l8DJb/529if5XpWejTeenIVTAMIwlav6vhNxS7l8qoI0oxgP2SPTwckTZj65zXbBE8KmbAObg4hyYH0BmICH+8kVVhhsduGOIO5NdiDzqcOgJvMDeXDxGZBvZyr683g9D+AdPD3WqF+wioYXlHMUmcfTYLJhNp8RtoUglNljIV8wZsucgyBmmjDSq6qlI0tvyuka506EnwZ/tKlAFG3tD1VUIYibVWWkuqrQLTAcuYQaKEQqAoSOB+VQF8vAgoFmIOMERgeyC/nHW8cdHnokMqVByYx9TfieqXxULdVqoYJKWUEOszWpqTZQO20GHefmHnBpSw3h6uFpl3WAKLMw5IgtUmiQXMxlpzqG/VwrfxELVqh9BCwHtqQlnO2hwXzyw5p3c6pGx3Ekxe+70idWIgaGYf9/iVBNhUn0e/ottVMV7decfwlewKZPbNblefFHznGRf3ZK/hCFpxV7Px5g== 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)(4326008)(5660300002)(70206006)(356005)(70586007)(336012)(8676002)(1076003)(82310400004)(55016003)(7636003)(16526019)(6286002)(53546011)(36860700001)(966005)(7696005)(36756003)(4001150100001)(186003)(426003)(86362001)(316002)(6916009)(2906002)(2616005)(54906003)(26005)(83380400001)(508600001)(47076005)(8936002)(6666004); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 28 Nov 2021 14:58:23.6769 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 5b0954b0-ba9b-4720-0b97-08d9b27f8691 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: DM6NAM11FT053.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: MW3PR12MB4443 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/985e9324d96246c73fae73a59be83e989fc77354 Thanks. Xueming Li --- >From 985e9324d96246c73fae73a59be83e989fc77354 Mon Sep 17 00:00:00 2001 From: Rashmi Shetty Date: Mon, 15 Nov 2021 10:34:44 -0600 Subject: [PATCH] event/dlb2: fix delayed pop test in selftest Cc: Xueming Li [ upstream commit 5fe46ce0558c4e53943aded6c4841235a7196762 ] Number of events scheduled and available for dequeue after token pop was set to dequeue_depth-1 instead of dequeue_depth in test_delayed_pop. The expectation is that all dequeue_depth number of events can be dequeued once the last event is released. Fixes: 07d55c418d47 ("event/dlb2: add delayed token pop logic") Signed-off-by: Rashmi Shetty Reviewed-by: Mike Ximing Chen --- drivers/event/dlb2/dlb2_selftest.c | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/drivers/event/dlb2/dlb2_selftest.c b/drivers/event/dlb2/dlb2_selftest.c index 5cf66c552c..2113bc2c99 100644 --- a/drivers/event/dlb2/dlb2_selftest.c +++ b/drivers/event/dlb2/dlb2_selftest.c @@ -1354,7 +1354,7 @@ test_delayed_pop(void) } /* Release one more event. This will trigger the token pop, and - * dequeue_depth - 1 more events will be scheduled to the device. + * dequeue_depth more events will be scheduled to the device. */ ev.op = RTE_EVENT_OP_RELEASE; @@ -1366,7 +1366,7 @@ test_delayed_pop(void) timeout = 0xFFFFFFFFF; - for (i = 0; i < port_conf.dequeue_depth - 1; i++) { + for (i = 0; i < port_conf.dequeue_depth; i++) { if (rte_event_dequeue_burst(evdev, 0, &ev, 1, timeout) != 1) { printf("%d: event dequeue expected to succeed\n", __LINE__); @@ -1374,14 +1374,6 @@ test_delayed_pop(void) } } - timeout = 0x10000; - - if (rte_event_dequeue_burst(evdev, 0, &ev, 1, timeout) != 0) { - printf("%d: event dequeue expected to fail\n", - __LINE__); - goto err; - } - cleanup(); return 0; -- 2.34.0 --- Diff of the applied patch vs upstream commit (please double-check if non-empty: --- --- - 2021-11-28 22:41:04.948944015 +0800 +++ 0030-event-dlb2-fix-delayed-pop-test-in-selftest.patch 2021-11-28 22:41:03.243542368 +0800 @@ -1 +1 @@ -From 5fe46ce0558c4e53943aded6c4841235a7196762 Mon Sep 17 00:00:00 2001 +From 985e9324d96246c73fae73a59be83e989fc77354 Mon Sep 17 00:00:00 2001 @@ -4,0 +5,3 @@ +Cc: Xueming Li + +[ upstream commit 5fe46ce0558c4e53943aded6c4841235a7196762 ] @@ -13 +15,0 @@ -Cc: stable@dpdk.org