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 B77D241EA5 for ; Wed, 15 Mar 2023 23:46:54 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id B337742B7E; Wed, 15 Mar 2023 23:46:54 +0100 (CET) Received: from mail-wr1-f54.google.com (mail-wr1-f54.google.com [209.85.221.54]) by mails.dpdk.org (Postfix) with ESMTP id 7AC6A427F2 for ; Wed, 15 Mar 2023 23:46:53 +0100 (CET) Received: by mail-wr1-f54.google.com with SMTP id i9so9677866wrp.3 for ; Wed, 15 Mar 2023 15:46:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1678920413; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=A6AOUWYDBPzzoYC74QwiekAwboMxt18Y3Ugl/Idi0Q8=; b=cerTwfRZHVpxC0FZTCDSyJFX3pSmCosFAPjcB+8Mbi3A9d36E7dhHkgx1esZ+Ty7wr X6UYjTh5gRyVg7n53tmulsdgUtH2Ne288DKw0ucX3yTWxEpRFqgVz9hTSu4ON/QlfP5a LuDqYtQBl8i4Tbv9l0Ir2NQUlVVJin5Ikcsusg4CuecTRF7um0EAnF3j0unXntHK8hq9 IekDjiUf60NujXOT4x6ZsK7HOLZVsBIlvk97GyqiRdh+tfx8aXaessuy6JXHagpQzEA/ Oqy1DZjpDFRu7vMcgUIcF3ziV13q7h6j8cd5z/Xr0fPKUgWJBug4973Yo5ESh4FJ9cOx jd6g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678920413; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=A6AOUWYDBPzzoYC74QwiekAwboMxt18Y3Ugl/Idi0Q8=; b=Qg5F1vjtAipeFVl763qdm28WhF8a7lmlaJtnjJKafbHsf0pp3Rhdk/I/DykVS88cMw 5znrII2phgvC2wFzk3zMSf1XLoVseX2Hk0nTTFSvqu02EjJCIQX6vNJVeTAGzZj/Vs1Y lHHzQ2DX1Zh8D6EPQF1iEkaMnxqwV+AcfGJLM7jKuIC+XJDb1bVju8rPNXRa+Sl0Sn9H YdRXSfnvfqS9P1O7+QTsMUx8MR6q02eo8CpGQXduFbK7JPSSsuWYrZDolY7GmVZzZbWc Z8bsN8ov9YPws0/hOSDq1F2t3+MXSSvnPzDGNc0G0RssZUcF3OnFPh3dlZUerrEE+bvp J4Cw== X-Gm-Message-State: AO0yUKXqKsNv+s3qfezyy4NuQQniPIFEgn9l8moCKCxdyDCLYspj1BwK /e+azGrrLSoXt2X8+dKaP60= X-Google-Smtp-Source: AK7set/XORvlwqvKLlrtn0Qp9j9Vd/AEExSqncMBffqu5HX7intboYoWhewRhtojHLOTotaPDCLKug== X-Received: by 2002:adf:ef0e:0:b0:2c7:1e00:d514 with SMTP id e14-20020adfef0e000000b002c71e00d514mr3123110wro.38.1678920413221; Wed, 15 Mar 2023 15:46:53 -0700 (PDT) Received: from localhost ([137.220.119.58]) by smtp.gmail.com with ESMTPSA id x1-20020a5d6501000000b002c54241b4fesm5947503wru.80.2023.03.15.15.46.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 15 Mar 2023 15:46:52 -0700 (PDT) From: luca.boccassi@gmail.com 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 20.11.8 Date: Wed, 15 Mar 2023 22:46:01 +0000 Message-Id: <20230315224631.1025649-10-luca.boccassi@gmail.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230315224631.1025649-1-luca.boccassi@gmail.com> References: <20230223093715.3926893-71-luca.boccassi@gmail.com> <20230315224631.1025649-1-luca.boccassi@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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.8 Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet. It will be pushed if I get no objections before 03/17/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://github.com/bluca/dpdk-stable This queued commit can be viewed at: https://github.com/bluca/dpdk-stable/commit/fa73c89d4a4e1757d7ca668752f65731767c760c Thanks. Luca Boccassi --- >From fa73c89d4a4e1757d7ca668752f65731767c760c 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 [ 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 5876aafa5b..4875257e4d 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 |= PKT_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.39.2 --- Diff of the applied patch vs upstream commit (please double-check if non-empty: --- --- - 2023-03-15 22:44:50.212298529 +0000 +++ 0010-app-testpmd-fix-packet-count-in-IEEE-1588-engine.patch 2023-03-15 22:44:49.523849003 +0000 @@ -1 +1 @@ -From 32567c6d06cd1bb823215476355b48bb2002e1fd Mon Sep 17 00:00:00 2001 +From fa73c89d4a4e1757d7ca668752f65731767c760c Mon Sep 17 00:00:00 2001 @@ -5,0 +6,2 @@ +[ upstream commit 32567c6d06cd1bb823215476355b48bb2002e1fd ] + @@ -9 +10,0 @@ -Cc: stable@dpdk.org @@ -18 +19 @@ -index fc4e2d014c..896d5ef26a 100644 +index 5876aafa5b..4875257e4d 100644 @@ -24 +25 @@ - mb->ol_flags |= RTE_MBUF_F_TX_IEEE1588_TMST; + mb->ol_flags |= PKT_TX_IEEE1588_TMST;