From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id A367AA04F3 for ; Thu, 19 Dec 2019 15:37:11 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 9995E1BF71; Thu, 19 Dec 2019 15:37:11 +0100 (CET) Received: from mail-wr1-f66.google.com (mail-wr1-f66.google.com [209.85.221.66]) by dpdk.org (Postfix) with ESMTP id 0B86E1BF71 for ; Thu, 19 Dec 2019 15:37:10 +0100 (CET) Received: by mail-wr1-f66.google.com with SMTP id g17so6227244wro.2 for ; Thu, 19 Dec 2019 06:37:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=lDePGkK/hviMVvfIUVMgO61pweaNFw0PG2wXfFScmcw=; b=IrwEPmCnyl2q+DXNNZ+rPahz6QJKBzZ7jGDcdY8bZNW39yKQ8xA2vkNqW2x4W8JGoA 552bhyrWz724g8cJtt1XMQr08CyzRO8SOA4O+wTLDLmO0MiAzPcRp1j1YTv4GXu3lbjn /mY8rnqW8TNg5nAPcp6T8SS6YhTh/DLbAxYYRBE6GrFi9eVaOPJ3LqmeZaxOXJuMpbXy eiKJsKP8ohveYbY9iN0L9H+bvwSmI35NxeGR1g0qjiXBJS0qaiaInfZ6QEKHvxyZs7Y6 4lpPqiAvpj7YNHJPGbYTvJQ0ZIF9nrLP48sxTXUGFnpipkQhAaB3/DUSL+q2SGuLKjc2 cbew== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=lDePGkK/hviMVvfIUVMgO61pweaNFw0PG2wXfFScmcw=; b=WzJ/u9xCNVspmwQaDoDw30/6gGkYeQTbbkco28jFQYaDWd3nJupMnGwp+X4BNX5tTk xdnKDugsnf5Gre+qQD63Tg4q6NseJjZ5DLIEl0uD5oofVjyLdEc02POI5E84tz7+TeRW YT6WgEboQ47glcOGbHQc/TDHrWbdkjsqzHCVzuJz8AbxAqZ/4/WnbnKhjlVNRk5BH1bI zYPbGf+rWN++gj1LzebIYYliiaN7QHxFHp1yCaiZ0dGcCFEnq05aAcgTecVdBvG2cVY3 UufqzDV1iFW6z0eCaGCNVAPTsWjorhD4zXwxV8tL1yof0Ld6AithN0A4e8gefnkHvNMM cglw== X-Gm-Message-State: APjAAAWDhO79dtgHEhHkOd1lAbt15imWu0ylxDO7HppwHf2/An2s9N// tC4NH6DqO05KmoaqtvfvH+0= X-Google-Smtp-Source: APXvYqxtSzMK/CA5NkmFIgYaJ6KOZ9ElgOXRXTLDfIoYqWoBO9JCBKnWOrmLPM5l3vYvaDNRA+oROA== X-Received: by 2002:adf:e984:: with SMTP id h4mr9593066wrm.275.1576766229720; Thu, 19 Dec 2019 06:37:09 -0800 (PST) Received: from localhost ([88.98.246.218]) by smtp.gmail.com with ESMTPSA id n10sm6470712wrt.14.2019.12.19.06.37.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 19 Dec 2019 06:37:09 -0800 (PST) From: luca.boccassi@gmail.com To: Honnappa Nagarahalli Cc: Ruifeng Wang , Vladimir Medvedkin , dpdk stable Date: Thu, 19 Dec 2019 14:33:19 +0000 Message-Id: <20191219143447.21506-52-luca.boccassi@gmail.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20191219143447.21506-1-luca.boccassi@gmail.com> References: <20191219143447.21506-1-luca.boccassi@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [dpdk-stable] patch 'test/lpm: fix measured cycles for delete' has been queued to LTS release 17.11.10 X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.15 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 LTS release 17.11.10 Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet. It will be pushed if I get no objections before 12/21/19. 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. Thanks. Luca Boccassi --- >From cd203f7f3413b5c1a89fe76e0ebae464f21bc39c Mon Sep 17 00:00:00 2001 From: Honnappa Nagarahalli Date: Tue, 1 Oct 2019 00:32:53 -0500 Subject: [PATCH] test/lpm: fix measured cycles for delete [ upstream commit c425fb6b9b3264dfe5d212fe80151cfd800b907c ] total_time needs to be reset to measure the cycles for delete API. Fixes: af75078fece3 ("first public release") Signed-off-by: Honnappa Nagarahalli Reviewed-by: Ruifeng Wang Acked-by: Vladimir Medvedkin Tested-by: Vladimir Medvedkin --- test/test/test_lpm_perf.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/test/test_lpm_perf.c b/test/test/test_lpm_perf.c index e7e1281bda..09b256b987 100644 --- a/test/test/test_lpm_perf.c +++ b/test/test/test_lpm_perf.c @@ -489,7 +489,7 @@ test_lpm_perf(void) (double)total_time / ((double)ITERATIONS * BATCH_SIZE), (count * 100.0) / (double)(ITERATIONS * BATCH_SIZE)); - /* Delete */ + /* Measure Delete */ status = 0; begin = rte_rdtsc(); @@ -499,7 +499,7 @@ test_lpm_perf(void) large_route_table[i].depth); } - total_time += rte_rdtsc() - begin; + total_time = rte_rdtsc() - begin; printf("Average LPM Delete: %g cycles\n", (double)total_time / NUM_ROUTE_ENTRIES); -- 2.20.1 --- Diff of the applied patch vs upstream commit (please double-check if non-empty: --- --- - 2019-12-19 14:32:28.402050097 +0000 +++ 0052-test-lpm-fix-measured-cycles-for-delete.patch 2019-12-19 14:32:26.061296953 +0000 @@ -1,26 +1,27 @@ -From c425fb6b9b3264dfe5d212fe80151cfd800b907c Mon Sep 17 00:00:00 2001 +From cd203f7f3413b5c1a89fe76e0ebae464f21bc39c Mon Sep 17 00:00:00 2001 From: Honnappa Nagarahalli Date: Tue, 1 Oct 2019 00:32:53 -0500 Subject: [PATCH] test/lpm: fix measured cycles for delete +[ upstream commit c425fb6b9b3264dfe5d212fe80151cfd800b907c ] + total_time needs to be reset to measure the cycles for delete API. Fixes: af75078fece3 ("first public release") -Cc: stable@dpdk.org Signed-off-by: Honnappa Nagarahalli Reviewed-by: Ruifeng Wang Acked-by: Vladimir Medvedkin Tested-by: Vladimir Medvedkin --- - app/test/test_lpm_perf.c | 4 ++-- + test/test/test_lpm_perf.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) -diff --git a/app/test/test_lpm_perf.c b/app/test/test_lpm_perf.c -index 77eea66ade..a2578fe90e 100644 ---- a/app/test/test_lpm_perf.c -+++ b/app/test/test_lpm_perf.c -@@ -460,7 +460,7 @@ test_lpm_perf(void) +diff --git a/test/test/test_lpm_perf.c b/test/test/test_lpm_perf.c +index e7e1281bda..09b256b987 100644 +--- a/test/test/test_lpm_perf.c ++++ b/test/test/test_lpm_perf.c +@@ -489,7 +489,7 @@ test_lpm_perf(void) (double)total_time / ((double)ITERATIONS * BATCH_SIZE), (count * 100.0) / (double)(ITERATIONS * BATCH_SIZE)); @@ -29,7 +30,7 @@ status = 0; begin = rte_rdtsc(); -@@ -470,7 +470,7 @@ test_lpm_perf(void) +@@ -499,7 +499,7 @@ test_lpm_perf(void) large_route_table[i].depth); }