From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wr0-f193.google.com (mail-wr0-f193.google.com [209.85.128.193]) by dpdk.org (Postfix) with ESMTP id ACFEE1B868 for ; Tue, 15 May 2018 15:47:50 +0200 (CEST) Received: by mail-wr0-f193.google.com with SMTP id q3-v6so217560wrj.6 for ; Tue, 15 May 2018 06:47:50 -0700 (PDT) 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; bh=XbvzoAHRv96NtKtqE6lYzpAgwED2xvg41wznGloM/bw=; b=fBfIb4HAvcTKEgs8yhS1aQFAbH4lZ4mmrFSVf5bTf/mew6vPpgKPOsHV+z6zsr2twC tmHXvvIwluwr6QkjKyhjY70/2vkerR3cqVLpj4cNNfMq8ZwxJEkcE7/lgAdm8U1zJGg0 UuqffXNMckpwzQtiTN8pR+D7berfxQ2a//7Lr10Nh4HmlU7EfHtBpJ37eK6EAe43fSQp 8Ic0xWZUCthHfC4RI/xRS2leZFlJWZ2aLTlcfjsLctML/YuLaLMAniM9BevbyNnIBDIF 8HJKjLGHrtXbzVhaML46Fy+/zCZI0VK7WaMAcx897PryQ20Elq72s5awhThPR43XhUzS MCdA== 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; bh=XbvzoAHRv96NtKtqE6lYzpAgwED2xvg41wznGloM/bw=; b=RuCbGEtfOau0HUmz2HAwJHsTNo1FbVgdEvbPT1yriZWiz5JywKFFXQdotfWWij0Rcz nqbwo2u/Nk8BTdRoVlIc3k8bsce7IyqzpKsv3ZeKnpKUNKzrPo56ZgunEczrGmVl7PqF P/0MvxtpPfHWuIImc0Tr7uYQaZ+KVXxchQbRXrs9Ncy5+3Fi2t5cSyUDiwOxyIAtnAi8 tbFaS6V67C/OWgNEDn5EtWH91JK83/EDKBZqsIVSoLA5YZ0iuUFOnRbtJjreJgLCd5R6 cjmhtJLAUgP/0UYHZL74HZURbmpaMObAhtLg9q9VUhrc2D84/1peEPBsl3nW0bjnFT9M uw4Q== X-Gm-Message-State: ALKqPwdbWPdN4B/aniilFlhS73zOQl2iBYvtueb1wqgb2racYyPCqsXJ +u5AsYydVLZ71QwuJHN5OkY= X-Google-Smtp-Source: AB8JxZoSwUarhzlXHaulg4qRd9lQd5SAjDn0Qbc3RWCaphh2QazvCOX/FkiUwuAZ8vrFo6jGyNOTCA== X-Received: by 2002:adf:accd:: with SMTP id o71-v6mr11437370wrc.61.1526392070381; Tue, 15 May 2018 06:47:50 -0700 (PDT) Received: from localhost (slip139-92-244-193.lon.uk.prserv.net. [139.92.244.193]) by smtp.gmail.com with ESMTPSA id d8-v6sm114023wrb.52.2018.05.15.06.47.49 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 15 May 2018 06:47:49 -0700 (PDT) From: luca.boccassi@gmail.com To: Tomasz Jozwiak Cc: Pablo de Lara , dpdk stable Date: Tue, 15 May 2018 14:46:17 +0100 Message-Id: <20180515134731.9337-6-luca.boccassi@gmail.com> X-Mailer: git-send-email 2.14.2 In-Reply-To: <20180515134731.9337-1-luca.boccassi@gmail.com> References: <20180503110612.12146-2-luca.boccassi@gmail.com> <20180515134731.9337-1-luca.boccassi@gmail.com> Subject: [dpdk-stable] patch 'app/crypto-perf: fix burst size calculation' has been queued to stable release 18.02.2 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: , X-List-Received-Date: Tue, 15 May 2018 13:47:50 -0000 Hi, FYI, your patch has been queued to stable release 18.02.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 05/16/18. So please shout if anyone has objections. Thanks. Luca Boccassi --- >>From 9237f557c95321752a8e0b57c01742f831064d94 Mon Sep 17 00:00:00 2001 From: Tomasz Jozwiak Date: Thu, 26 Apr 2018 11:05:49 +0200 Subject: [PATCH] app/crypto-perf: fix burst size calculation [ upstream commit 3356083a775c816cb1efa41019fa6ddbbec023c8 ] This patch fixes segmentation fault in pmd_cyclecount_bench_ops function in case when state->opts->nb_descriptors is not natural multiple of burst size. To reproduce run: dpdk-test-crypto-perf with params: --ptest pmd-cyclecount --pmd-cyclecount-delay-ms 5 \ --devtype crypto_qat --optype cipher-then-auth \ --cipher-algo aes-cbc --cipher-op encrypt \ --cipher-key-sz 16 --cipher-iv-sz 16 \ --auth-algo sha2-256-hmac \ --auth-op generate --auth-key-sz 64 --digest-sz 32 \ --total-ops 10000 --burst-sz 255 --buffer-sz 1024 --silent Fixes: 96dfeb609be1 ("app/crypto-perf: add new PMD benchmarking mode") Signed-off-by: Tomasz Jozwiak Acked-by: Pablo de Lara --- app/test-crypto-perf/cperf_test_pmd_cyclecount.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/test-crypto-perf/cperf_test_pmd_cyclecount.c b/app/test-crypto-perf/cperf_test_pmd_cyclecount.c index 8f7616081..c8d16db6d 100644 --- a/app/test-crypto-perf/cperf_test_pmd_cyclecount.c +++ b/app/test-crypto-perf/cperf_test_pmd_cyclecount.c @@ -145,7 +145,7 @@ pmd_cyclecount_bench_ops(struct pmd_cyclecount_state *state, uint32_t cur_op, for (cur_iter_op = 0; cur_iter_op < iter_ops_needed; cur_iter_op += test_burst_size) { - uint32_t burst_size = RTE_MIN(state->opts->total_ops - cur_op, + uint32_t burst_size = RTE_MIN(iter_ops_needed - cur_iter_op, test_burst_size); struct rte_crypto_op **ops = &state->ctx->ops[cur_iter_op]; -- 2.14.2