From patchwork Fri Sep 27 08:03:15 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hemant Agrawal X-Patchwork-Id: 174600 Delivered-To: patch@linaro.org Received: by 2002:a92:7e96:0:0:0:0:0 with SMTP id q22csp3161427ill; Fri, 27 Sep 2019 01:05:37 -0700 (PDT) X-Google-Smtp-Source: APXvYqxo5Xqos2o+04s4wIbehfGCEtjqIXz6zKCDm9eynpQz4nNqExZcT38eIpK/W4e+1tp1jz0x X-Received: by 2002:a17:906:1f57:: with SMTP id d23mr6803181ejk.103.1569571537357; Fri, 27 Sep 2019 01:05:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1569571537; cv=none; d=google.com; s=arc-20160816; b=1FAZjnqWnXkhlZ8oPdRaFvRaawagV5W6tWgD+UrdoKUxCxNHYBWR1SfBH1I1k3J7x6 Xv8GfsWKgLXO1j77hleCCLmjeseJzTUmVLy48SZuMnARjkCOqMFo3wz+DV+SgQ0SM1WH J+wKDkkwBI2DY/BnIJTPcHf4Cjb5d7+gdHXF2BS/7gCvaMWMPdYewhlp4r2yP9XR0n8U TAdVb9Dn4fn+sXDx/B2pxqOE5uRiQdoCLG/wWNUHqEC2M3Ed+kjvaqK7PVslFRY04I+P wEpnhsPPtBss/H2+DqKHQTFzivGu2/QBgyuEklhPgf2Baynfwk6lRxnAy04AePdIQevc kN6Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:subject:message-id:date:cc:to :from; bh=ArR/5KR965rIVoPmL5pUKuKm3Qm/dRs2dGWaX1ltClE=; b=R4nPXKEObOnh6bqHAWXbtl1FRZrtAs4Fryx7xfxABq7FiuDPOwdWoY9KbTzU6DAMOk ANvvx8dnYJp9dD8Ys9fbAaEM9zwjGiT+ow6PaU/UDXxFApIf66x7yvDxMvB0AXLHJPKB gG01I1Pp8aXYlBy2qbGGiT+B8XzclGppNoUVhe6luRUUINPIOj54m5B7FLjVuWr0RV7h aAKL+EmRPlAS9ceLdZ7q0piHSrX76kUWMQasOUA6Wm+zeeNhQYsKKXoYam1LZdSwRk8g P78lohBge6YuGLfSzcFvqOWLskoySgs18ZsCqNSJnOys00zqknQwL4HzunJSR5Ci8hUk ufOw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of dev-bounces@dpdk.org designates 92.243.14.124 as permitted sender) smtp.mailfrom=dev-bounces@dpdk.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from dpdk.org (dpdk.org. [92.243.14.124]) by mx.google.com with ESMTP id z54si1071531edd.337.2019.09.27.01.05.37; Fri, 27 Sep 2019 01:05:37 -0700 (PDT) Received-SPF: pass (google.com: domain of dev-bounces@dpdk.org designates 92.243.14.124 as permitted sender) client-ip=92.243.14.124; Authentication-Results: mx.google.com; spf=pass (google.com: domain of dev-bounces@dpdk.org designates 92.243.14.124 as permitted sender) smtp.mailfrom=dev-bounces@dpdk.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id C54692C23; Fri, 27 Sep 2019 10:05:35 +0200 (CEST) Received: from inva021.nxp.com (inva021.nxp.com [92.121.34.21]) by dpdk.org (Postfix) with ESMTP id 4279F11A2 for ; Fri, 27 Sep 2019 10:05:34 +0200 (CEST) Received: from inva021.nxp.com (localhost [127.0.0.1]) by inva021.eu-rdc02.nxp.com (Postfix) with ESMTP id 1B11E200648; Fri, 27 Sep 2019 10:05:34 +0200 (CEST) Received: from invc005.ap-rdc01.nxp.com (invc005.ap-rdc01.nxp.com [165.114.16.14]) by inva021.eu-rdc02.nxp.com (Postfix) with ESMTP id 49709200658; Fri, 27 Sep 2019 10:05:32 +0200 (CEST) Received: from bf-netperf1.ap.freescale.net (bf-netperf1.ap.freescale.net [10.232.133.63]) by invc005.ap-rdc01.nxp.com (Postfix) with ESMTP id 99DF1402D5; Fri, 27 Sep 2019 16:05:29 +0800 (SGT) From: Hemant Agrawal To: akhil.goyal@nxp.com, dev@dpdk.org Cc: Hemant Agrawal Date: Fri, 27 Sep 2019 13:33:15 +0530 Message-Id: <20190927080315.21981-1-hemant.agrawal@nxp.com> X-Mailer: git-send-email 2.17.1 X-Virus-Scanned: ClamAV using ClamSMTP Subject: [dpdk-dev] [PATCH 3/3] app/crypto-perf: add check for out-of-place case X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" Segmented frames not supported for out-of-place case. This patch returns err if such config is requested. Signed-off-by: Hemant Agrawal --- app/test-crypto-perf/cperf_options_parsing.c | 7 +++++++ 1 file changed, 7 insertions(+) -- 2.17.1 Acked-by: Akhil Goyal diff --git a/app/test-crypto-perf/cperf_options_parsing.c b/app/test-crypto-perf/cperf_options_parsing.c index 7a5aa06a6..eba4cf7a6 100644 --- a/app/test-crypto-perf/cperf_options_parsing.c +++ b/app/test-crypto-perf/cperf_options_parsing.c @@ -964,6 +964,13 @@ cperf_options_check(struct cperf_options *options) if (options->op_type == CPERF_CIPHER_ONLY) options->digest_sz = 0; + if (options->out_of_place && + options->segment_sz <= options->max_buffer_size) { + RTE_LOG(ERR, USER1, "Out of place mode can only work " + "with non segmented buffers\n"); + return -EINVAL; + } + /* * If segment size is not set, assume only one segment, * big enough to contain the largest buffer and the digest