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 95541428F8 for ; Sun, 9 Apr 2023 17:28:33 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 8FEF6427F2; Sun, 9 Apr 2023 17:28:33 +0200 (CEST) Received: from NAM10-DM6-obe.outbound.protection.outlook.com (mail-dm6nam10on2079.outbound.protection.outlook.com [40.107.93.79]) by mails.dpdk.org (Postfix) with ESMTP id 0258340141 for ; Sun, 9 Apr 2023 17:28:32 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=g17dWNH2WL7ColxTaIqxkQPMpdpnL3GjWqsHjSeYhHPfOwfzZbZSsBPkWCgj2k/+YVYRU9KQJgPWXf5+CgFPZzRyo756qyt8ZRqXwJnbEgLfSDQN8/Snm8515cRR4CI/ZDV2bak+ziMwu9mDEnyxefUbcrbmUY/UOEzDhQw32nfRLXEczUqSodXALs6z3hJQ+OUAgkzPgKQPDXoI/8MYhhdkyeQtRlkGhjOplap8H5G6mhHH0FJD6NSbHg0WhvSnX8fOnJKOhiq8zbcKv/F0vfddFpilZIwx/goYInNTrzBM/boIRyIs3b/CHEEmQQM0HRAgoMFC4vZt3XcQ9kOyuA== 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=dO2GnVExF83WTQFXLTPwiaEOSeuRd9OPYuPBLbFgms0=; b=LNsyS5p+tmBECr2+CsQAVeJa/8Q+ObkLEL/cHXSrbwyk2OY1SEaO1t7+loHnO4r3yuvvuLMdDAqCQoKP8GGk9X3DjaVi0gBUTZYo1YM74KTg9zOpd1LB05e2zX0hd0Qmqwd71VhPLkauJCb8YOJdgy/uqELNRUKTm7uZcxZxO7qXwp7EsanCWWlckS87VBwRL9LSFT0Fbq459VFOsgkEs18leOKhqdeQPrmXR41Y/yLQC3vysjfPyXVri95KHmkNZYOW0Gu/UmuzVdqXhED3qbRCv5SSRcrC1DEQgfAj1G8ilXgG8zxMGrQ8FLsVBQgGmR+gPEEW9F1yzY4VQ0gs4g== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 216.228.117.161) smtp.rcpttodomain=redhat.com 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=dO2GnVExF83WTQFXLTPwiaEOSeuRd9OPYuPBLbFgms0=; b=WYdzN1rLiqp1DF+nNRp0Vls7LXKoSEWZF/09cifFLENDfdJ0OPd7BvYSLQBDx0PnxXL2P/HLe+7ESXviFHS5cu/uUpAaqQE3yjK8Ocuzl2OWT6JAcSzqeQ2QISvJnKcMZcNxzgXwQgeCzemqbTCOhhFhnMj+jzEx0rBrLJP5c+FMdE6JLnRNk84t7sWkwGCIK20huTf4GdCqfsjOWg4/QcpXWvP8l3fPQNSpRTMfE2QPzIzMzVWpPoDI/6FIXWSK3ZfKI89zY+6UTEfpcpsdyImEeYwgpn4bHV85ZoJPEPxuFgFVDHakEmvb/NgqDCvpreueTkI0sBi3YVPuSA8s6w== Received: from BN9PR03CA0077.namprd03.prod.outlook.com (2603:10b6:408:fc::22) by DS0PR12MB9038.namprd12.prod.outlook.com (2603:10b6:8:f2::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6277.35; Sun, 9 Apr 2023 15:28:30 +0000 Received: from BN8NAM11FT040.eop-nam11.prod.protection.outlook.com (2603:10b6:408:fc:cafe::4c) by BN9PR03CA0077.outlook.office365.com (2603:10b6:408:fc::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6277.38 via Frontend Transport; Sun, 9 Apr 2023 15:28:30 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 216.228.117.161) 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.117.161 as permitted sender) receiver=protection.outlook.com; client-ip=216.228.117.161; helo=mail.nvidia.com; pr=C Received: from mail.nvidia.com (216.228.117.161) by BN8NAM11FT040.mail.protection.outlook.com (10.13.177.166) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6298.25 via Frontend Transport; Sun, 9 Apr 2023 15:28:29 +0000 Received: from rnnvmail201.nvidia.com (10.129.68.8) by mail.nvidia.com (10.129.200.67) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.5; Sun, 9 Apr 2023 08:28:24 -0700 Received: from nvidia.com (10.126.231.37) 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.37; Sun, 9 Apr 2023 08:28:22 -0700 From: Xueming Li To: David Marchand CC: Aman Singh , dpdk stable Subject: patch 'app/testpmd: fix packet count in IEEE 1588 engine' has been queued to stable release 22.11.2 Date: Sun, 9 Apr 2023 23:23:41 +0800 Message-ID: <20230409152529.5308-34-xuemingl@nvidia.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230409152529.5308-1-xuemingl@nvidia.com> References: <20230227062349.13764-1-xuemingl@nvidia.com> <20230409152529.5308-1-xuemingl@nvidia.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [10.126.231.37] X-ClientProxiedBy: rnnvmail203.nvidia.com (10.129.68.9) To rnnvmail201.nvidia.com (10.129.68.8) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: BN8NAM11FT040:EE_|DS0PR12MB9038:EE_ X-MS-Office365-Filtering-Correlation-Id: 9d3c01d2-b1e3-43ba-8c76-08db390f1287 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: yAScNjzoDI5dCyZWic1PjKwi81DYfXh+j0T3Uo3BUPWvA/O8eMg6F1qUhGRcz50GqmmKdceQZKERhjeokj5B18C0OZKvzzoEgsXAzF89JQUI5OqLc08oYxCsL23X3uTWZIRjxx1ZEeMfnlnPCaUzh8vkyDig4nTNKJL1BwTVd0h6caMabtPdvpN9BO3TM1aAWVT/Cg4Wgpot3KOEPxHgRXA5S4OFJVnvx4ttRn5GoiEFW/mgx+IIcUiuXABYZtYsJLaYhKE2mtvIL+KT0vI9CboDFkQyh+/xAb5yz0FKjPFIXnEsfO+VQNXFHrIKKNqpVjHplZEOSK/NYyzMHN+x1i2qCiLjMVAapXUYgXKRKqn3GFnyIkBE0BgjDDuvjZFTqS3DP5NAufc2eoO/mfe/lDk8Rh796RqU+sNxSKI1XCiKIcDyfTO/21RQfVE9O5e4faWV/R986ld0dzmrpitprNdnkHCz0s1mOZeSF5v58RfRCDjwoSMW/ScRUfpGDT0ajdJNtrdSDZTWGjw/Os6wuzB+tINM64IFrTgTcineFZComZZe3FEvJIAme3d5bSsuQ8TCoOlZ5hNEp2KEg4jemB3JxhfvaCvRYpjDTNw8JZ9zRJbJlzRKfiu++Q5/X31lhkPG57kQuCJwJzRxHyC37cacnqzLMBBUPU9iCZUFFJ+R+A3ARasoYHbD6fKtT01A+moxm1tXuOQw4rt8PxdTbDJZimSkYZowsZdXpChY1oE6vlHmJLW8fFztvg6jsX9zZS62oaeH8rJJlEEUlS7S+dOefFuLYPhW1CW6hE55qD2PqB4Y9fcKSJEhmnHjnwt62hyX0S7lsayPwcYU8tNYkw== X-Forefront-Antispam-Report: CIP:216.228.117.161; CTRY:US; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:mail.nvidia.com; PTR:dc6edge2.nvidia.com; CAT:NONE; SFS:(13230028)(4636009)(346002)(136003)(396003)(39860400002)(376002)(451199021)(40470700004)(36840700001)(46966006)(478600001)(7696005)(54906003)(316002)(53546011)(1076003)(26005)(16526019)(6286002)(186003)(6666004)(966005)(2906002)(4326008)(70586007)(70206006)(5660300002)(8676002)(6916009)(41300700001)(8936002)(82310400005)(7636003)(356005)(82740400003)(55016003)(86362001)(40480700001)(36756003)(40460700003)(47076005)(83380400001)(2616005)(426003)(336012)(36860700001); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 09 Apr 2023 15:28:29.9191 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 9d3c01d2-b1e3-43ba-8c76-08db390f1287 X-MS-Exchange-CrossTenant-Id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=43083d15-7273-40c1-b7db-39efd9ccc17a; Ip=[216.228.117.161]; Helo=[mail.nvidia.com] X-MS-Exchange-CrossTenant-AuthSource: BN8NAM11FT040.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DS0PR12MB9038 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 22.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 04/11/23. 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://git.dpdk.org/dpdk-stable/log/?h=22.11-staging This queued commit can be viewed at: https://git.dpdk.org/dpdk-stable/log/?h=22.11-staging/commit/e8996dc08d8fdc83f1fec584b61ecd6952e6a553 Thanks. Xueming Li --- >From e8996dc08d8fdc83f1fec584b61ecd6952e6a553 Mon Sep 17 00:00:00 2001 From: David Marchand Date: Mon, 20 Feb 2023 19:34:55 +0100 Subject: [PATCH] app/testpmd: fix packet count in IEEE 1588 engine Cc: Xueming Li [ upstream commit 32567c6d06cd1bb823215476355b48bb2002e1fd ] Don't count a packet has been transmitted before it is done. Fixes: af75078fece3 ("first public release") Signed-off-by: David Marchand Acked-by: Aman Singh --- app/test-pmd/ieee1588fwd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/test-pmd/ieee1588fwd.c b/app/test-pmd/ieee1588fwd.c index fc4e2d014c..896d5ef26a 100644 --- a/app/test-pmd/ieee1588fwd.c +++ b/app/test-pmd/ieee1588fwd.c @@ -184,13 +184,13 @@ ieee1588_packet_fwd(struct fwd_stream *fs) /* Forward PTP packet with hardware TX timestamp */ mb->ol_flags |= RTE_MBUF_F_TX_IEEE1588_TMST; - fs->tx_packets += 1; if (rte_eth_tx_burst(fs->rx_port, fs->tx_queue, &mb, 1) == 0) { printf("Port %u sent PTP packet dropped\n", fs->rx_port); fs->fwd_dropped += 1; rte_pktmbuf_free(mb); return; } + fs->tx_packets += 1; /* * Check the TX timestamp. -- 2.25.1 --- Diff of the applied patch vs upstream commit (please double-check if non-empty: --- --- - 2023-04-09 21:45:39.654805500 +0800 +++ 0033-app-testpmd-fix-packet-count-in-IEEE-1588-engine.patch 2023-04-09 21:45:38.619042200 +0800 @@ -1 +1 @@ -From 32567c6d06cd1bb823215476355b48bb2002e1fd Mon Sep 17 00:00:00 2001 +From e8996dc08d8fdc83f1fec584b61ecd6952e6a553 Mon Sep 17 00:00:00 2001 @@ -4,0 +5,3 @@ +Cc: Xueming Li + +[ upstream commit 32567c6d06cd1bb823215476355b48bb2002e1fd ] @@ -9 +11,0 @@ -Cc: stable@dpdk.org