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 A1162A0C3F for ; Sat, 12 Jun 2021 01:11:18 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 9735C40691; Sat, 12 Jun 2021 01:11:18 +0200 (CEST) Received: from NAM12-BN8-obe.outbound.protection.outlook.com (mail-bn8nam12on2080.outbound.protection.outlook.com [40.107.237.80]) by mails.dpdk.org (Postfix) with ESMTP id AF505406A2 for ; Sat, 12 Jun 2021 01:11:17 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ZdgSqjWZYa6jfffNLpLCt4Y6YlZE6oy9fcjz1JSkdAlU7YWaHxxr7PM18n7SXidWXBVnpwnGiDxrzWukdAYwwqVUqThEBxC2QAY7ZYJ1M6JZ11Kcap6APH+2gT6sw3qe8j8sj+UF2mQAxa+uoQaqLmNQlVb67zsjx1AigIBG/5RBcpBCK3NnR0XEvTHlskGYi9rdGfW12Vb+OY0fxQGpQRabyLUoY6WcUrzFcexaaSCwjje8bgm7gkOKqCgCuKhtpHif9kz2y/ABcKpJvoklgKussL7fbC5zUnvEE7yw/w5XKc0clsvX8fuHPCUxi4WdEAPf27hDnrsE/TcwBUVmag== 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-SenderADCheck; bh=FEtvH2V9TO6M+upvUr2M+cmxfG+/RDHH2Pbq4RYWwIg=; b=irOCk3Vzo3vZtLfl7i9i9cHZ8W/yNH6UbZih1N5w2Bti3t761Y8R6Z/NVNgeo5PAanSJpeC32H7RqtcX+KIdPAkoBwl3OWQkHe8OHpPlLxEtMnRkx1XeJFzVNpMlQSkuf1uGxEv1hD+1pqbeQloQpG4XTIk8z11h9exlln50eSMd/dlspXAm+XTbuj6LL1Eq4uXX8grc0wRLIoGf/V00Dvv61SkZgXLMC6vEQDZQ2tBEcosuYyymkMu9QEf+eY/E64Q2gQICDznEJ9zqie4T+K5pBWwMlY6p3LrfgJg4b9wKe31aWhR1nWTpq099eKuTYL+bpkS5X8bmkKSZQNvzAw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 216.228.112.34) smtp.rcpttodomain=partner.samsung.com smtp.mailfrom=nvidia.com; dmarc=pass (p=none sp=none 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=FEtvH2V9TO6M+upvUr2M+cmxfG+/RDHH2Pbq4RYWwIg=; b=NEkWCoSOunoqaTsQOmFHVwJYJgdO5Ge/3f6p0B9GZCDEbAYB87vnltFlN2XlO8tZCKZ7uEBFFwMXtSUXbjJSysMfgLseC+ifTy+1tSiqCH0lKGtijeb9wjjHpoccu7pkK1MPJNd7oZjo8y6IFT2nbOsoqrrGQE3cvkdWCMFTWkJROXcbCYlkjZfk9zY31o4bQInG1IvfMunv2aK7k0l5C15DBPR2JgSotpFHuylhCwgK8pmRYvFDItTyaLvY8YieqIG4hgCUD3GykssMDlRoPrvzH0hR1heomXVujsFffspByUk+j21yiNQcheX8adPSC0C6i5P/+xgxLx7bH3OBeQ== Received: from MW4PR03CA0059.namprd03.prod.outlook.com (2603:10b6:303:8e::34) by BN6PR1201MB0241.namprd12.prod.outlook.com (2603:10b6:405:58::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4195.24; Fri, 11 Jun 2021 23:11:16 +0000 Received: from CO1NAM11FT041.eop-nam11.prod.protection.outlook.com (2603:10b6:303:8e:cafe::bc) by MW4PR03CA0059.outlook.office365.com (2603:10b6:303:8e::34) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4219.20 via Frontend Transport; Fri, 11 Jun 2021 23:11:16 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 216.228.112.34) smtp.mailfrom=nvidia.com; partner.samsung.com; dkim=none (message not signed) header.d=none;partner.samsung.com; 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 CO1NAM11FT041.mail.protection.outlook.com (10.13.174.217) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.4219.21 via Frontend Transport; Fri, 11 Jun 2021 23:11:15 +0000 Received: from nvidia.com (172.20.187.5) by HQMAIL107.nvidia.com (172.20.187.13) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Fri, 11 Jun 2021 23:11:13 +0000 From: Xueming Li To: Stanislaw Kardach CC: Luca Boccassi , David Hunt , Lukasz Wojciechowski , dpdk stable Date: Sat, 12 Jun 2021 07:02:42 +0800 Message-ID: <20210611230433.8208-68-xuemingl@nvidia.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210611230433.8208-1-xuemingl@nvidia.com> References: <20210510160258.30982-229-xuemingl@nvidia.com> <20210611230433.8208-1-xuemingl@nvidia.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [172.20.187.5] X-ClientProxiedBy: HQMAIL105.nvidia.com (172.20.187.12) To HQMAIL107.nvidia.com (172.20.187.13) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: bb7fb4d9-2fb0-4c99-bd9f-08d92d2e36aa X-MS-TrafficTypeDiagnostic: BN6PR1201MB0241: X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:8882; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: jtbLZVUtr7NFHz4IUyfBxsbWbiQkX23bWViDUtCYfvLmO+FxrX+6bG91t70rxEpIUBPCjQLtAjiQOJqO0ry1CXuV3zpICEf+oTeePVj0I8MOuY/wiKvKXjtbmj3AtuJdlm3RXsnSOTVW9lACpNZQiahwQ63rtRoDnhv5RsCqYyHUDdmXkHddVfRmG/kfHormPNkBfC9Zi0kaL+BJalC2XcSc3gxcvPGRnJecByXD3aEfJ/bMIDrnxTJRvIhNwZ4kVndsmksGz5GgQu9G0EQptiByXbw1ux1y6FCh6zu94suALXVphMLydM2fqC80C66doanczkqitwXEFkH7oHxCKvgOqQK2knor9KzyStyDgmatHyB0/AMyrXuO+J9KIYkNayFdwTWtfO/TF46dxAo2f6zVg3IVMN7dtkNwAMjSSXwJXIXU7k70czVqO2/FRQnoLCwbXP+3slxt39eqC/wXArMOsI8DYlHYuKGTrKfWHY5yOFYcqWVFZgny7srmqAN7e4b19LTow8YmuOfNxij5NXerQZdgIYICtV3LsrWNsvWPtxbAWWh+b4q6IfsYNwrhi33pysYY0moA7Y2fjvywujPDM6c9jJdPzZw1mbYbKx1A5rFdr78brXukfoTGFlfykA+L+Lj4ituHong0DR08XOOIPPPiP6Y3InctpZWXIjleobkfqVsHmKbNY1atxbWrkGDsQemh3hUxcP+UbaIeT5MFawOpv720w3uXn9Po2tDKk5JhrR6jLeiRjkUcLSBDJBxCh22cl6HYWjbVP1O2KAIC1W/xYaE5hNswNg5EldP5vnaY3fIAoqT7CCwvqNTI 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)(346002)(39860400002)(136003)(376002)(396003)(46966006)(36840700001)(6286002)(6916009)(966005)(36860700001)(4326008)(426003)(2616005)(70206006)(70586007)(336012)(478600001)(186003)(82310400003)(86362001)(2906002)(26005)(15650500001)(83380400001)(7696005)(54906003)(8676002)(16526019)(82740400003)(7636003)(356005)(36756003)(6666004)(55016002)(316002)(8936002)(5660300002)(53546011)(1076003)(47076005)(36906005); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 11 Jun 2021 23:11:15.7601 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: bb7fb4d9-2fb0-4c99-bd9f-08d92d2e36aa 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: CO1NAM11FT041.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN6PR1201MB0241 Subject: [dpdk-stable] patch 'test/distributor: fix worker notification in burst mode' has been queued to stable release 20.11.2 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.2 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/14/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/8e681713b3c154b05a02a04d201ec9bdbf2c1e08 Thanks. Xueming Li --- >From 8e681713b3c154b05a02a04d201ec9bdbf2c1e08 Mon Sep 17 00:00:00 2001 From: Stanislaw Kardach Date: Wed, 28 Apr 2021 16:25:52 +0200 Subject: [PATCH] test/distributor: fix worker notification in burst mode Cc: Luca Boccassi [ upstream commit 00dac9a99c783e0d442e73842ebb006f2f39c59d ] Because a single worker can process more than one packet from the distributor, the final set of notifications in burst mode should be sent one-by-one to ensure that each worker has a chance to wake up. This fix mirrors the change done in the functional test by commit f72bff0ec272 ("test/distributor: fix quitting workers in burst mode"). Fixes: c3eabff124e6 ("distributor: add unit tests") Signed-off-by: Stanislaw Kardach Acked-by: David Hunt Tested-by: Lukasz Wojciechowski Reviewed-by: Lukasz Wojciechowski --- app/test/test_distributor_perf.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app/test/test_distributor_perf.c b/app/test/test_distributor_perf.c index b25f79a348..371a14ba4c 100644 --- a/app/test/test_distributor_perf.c +++ b/app/test/test_distributor_perf.c @@ -188,9 +188,10 @@ quit_workers(struct rte_distributor *d, struct rte_mempool *p) rte_mempool_get_bulk(p, (void *)bufs, num_workers); quit = 1; - for (i = 0; i < num_workers; i++) + for (i = 0; i < num_workers; i++) { bufs[i]->hash.usr = i << 1; - rte_distributor_process(d, bufs, num_workers); + rte_distributor_process(d, &bufs[i], 1); + } rte_mempool_put_bulk(p, (void *)bufs, num_workers); -- 2.25.1 --- Diff of the applied patch vs upstream commit (please double-check if non-empty: --- --- - 2021-06-12 06:53:58.382547000 +0800 +++ 0068-test-distributor-fix-worker-notification-in-burst-mo.patch 2021-06-12 06:53:56.330000000 +0800 @@ -1 +1 @@ -From 00dac9a99c783e0d442e73842ebb006f2f39c59d Mon Sep 17 00:00:00 2001 +From 8e681713b3c154b05a02a04d201ec9bdbf2c1e08 Mon Sep 17 00:00:00 2001 @@ -4,0 +5,3 @@ +Cc: Luca Boccassi + +[ upstream commit 00dac9a99c783e0d442e73842ebb006f2f39c59d ] @@ -15 +17,0 @@ -Cc: stable@dpdk.org