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 17C28A057C; Fri, 27 Mar 2020 12:47:45 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 344211C1C2; Fri, 27 Mar 2020 12:47:29 +0100 (CET) Received: from mail-wr1-f67.google.com (mail-wr1-f67.google.com [209.85.221.67]) by dpdk.org (Postfix) with ESMTP id EA4F51C1D2 for ; Fri, 27 Mar 2020 12:47:27 +0100 (CET) Received: by mail-wr1-f67.google.com with SMTP id j17so10981336wru.13 for ; Fri, 27 Mar 2020 04:47:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=accelercomm-com.20150623.gappssmtp.com; s=20150623; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-transfer-encoding:content-language; bh=RSvN2iZdzkbN4/lURIGP49AaJmWYOB9q4dsJvwQeN6w=; b=RBWCIlajphR61rgzzsDZIR1tkLffbI9Qwz0zUG0ltQzOGo56Tj3TWIBsRKonYGd3qS 74mfaRvSbXG+W8CEQxrNmrIQEGiU5waVZlh3nO38o24nTo06PtrF5A396oujFJeYnT7T sJyYLTfu1QK5RvN3mkb06419gaAs1zePcpDuUfnWbYgO5Vy/gDVEx77a0pjb8F3vXtPX vefYxkEm1ZgmdqgxfFJ3pszmVAhqslrtx5Tzb5M8UmOohrsE60C65p09NkLQ2fop4biW 1dgX1jLTzOZtXkcUJJVjMyn2x+JmQom+cLOinLQB/8SwlJ1BOQKTtgHUUNe9hH28tl7v iLzA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding :content-language; bh=RSvN2iZdzkbN4/lURIGP49AaJmWYOB9q4dsJvwQeN6w=; b=mkRIW/91YTAmY482TdMHgNkxZ685CqwROXUnbuXA/QuNKezfB9RAr+oMHB+cNlIsXV Hrx5LBVxrUOzXgjUSoioKdt5SZpXp38UmnmO/L+dA8z8aBIoLJ5iMCs1o7r2ThO9KBkq 3IWgYC0WRwOMYDadHuHNbpr4r0lMEH63ay5H5uVfWnEhSx6gbLiSJ29QkXGytZdlCGPy PDNTAFl8oEILR3ZHUNlX+z+2FcRvr6fPbDLYCQsCgPW/tAAITGXdJs+oGDivSB+HB7G/ tLyfGwwJUzC8Cuj7AssuZ88jmT3eyzAsyQVy7A13D4xCEMXbsF3iFFXguZ6ifXF/RS3U B24w== X-Gm-Message-State: ANhLgQ1m33kW5TEsujLpZuLZ0yi5zQvvHiL0OO+7WyNmfj48fgZxufSb Jzu4nU0Xf9sheXrBmwi+hPGS/t8VgpM= X-Google-Smtp-Source: ADFU+vtGMGyEwE1fVfou2+32QA/m2Cvn+m/aRM9twum7D8gblHxPj5zWhdnYlvyvgvd6WCU7ixjDew== X-Received: by 2002:a5d:4648:: with SMTP id j8mr14672544wrs.202.1585309647271; Fri, 27 Mar 2020 04:47:27 -0700 (PDT) Received: from ?IPv6:2a00:23c4:cf2d:a200:6023:b810:2491:c6a9? ([2a00:23c4:cf2d:a200:6023:b810:2491:c6a9]) by smtp.gmail.com with ESMTPSA id k15sm7968440wrm.55.2020.03.27.04.47.26 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 27 Mar 2020 04:47:26 -0700 (PDT) To: dev@dpdk.org References: <1582778348-113547-15-git-send-email-nicolas.chautru@intel.com> <1585193268-74468-1-git-send-email-nicolas.chautru@intel.com> <1585193268-74468-10-git-send-email-nicolas.chautru@intel.com> From: Dave Burley Message-ID: Date: Fri, 27 Mar 2020 11:47:26 +0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.5.0 MIME-Version: 1.0 In-Reply-To: <1585193268-74468-10-git-send-email-nicolas.chautru@intel.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US Subject: Re: [dpdk-dev] [PATCH v5 09/10] test-bbdev: support for offload test for LDPC 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" Acked-by: Dave Burley On 26/03/2020 03:27, Nicolas Chautru wrote: > From: Nic Chautru > > Adding support for the offload latency tests when > using the LDPC encoder and decoder operations. > > Signed-off-by: Nic Chautru > --- > app/test-bbdev/test_bbdev_perf.c | 26 +++++++++++++++++++------- > 1 file changed, 19 insertions(+), 7 deletions(-) > > diff --git a/app/test-bbdev/test_bbdev_perf.c b/app/test-bbdev/test_bbdev_perf.c > index c45cdd2..6ec17e5 100644 > --- a/app/test-bbdev/test_bbdev_perf.c > +++ b/app/test-bbdev/test_bbdev_perf.c > @@ -4643,7 +4643,7 @@ typedef int (test_case_function)(struct active_device *ad, > offload_latency_empty_q_test_dec(uint16_t dev_id, uint16_t queue_id, > const uint16_t num_to_process, uint16_t burst_sz, > uint64_t *deq_total_time, uint64_t *deq_min_time, > - uint64_t *deq_max_time) > + uint64_t *deq_max_time, const enum rte_bbdev_op_type op_type) > { > int i, deq_total; > struct rte_bbdev_dec_op *ops[MAX_BURST]; > @@ -4657,7 +4657,12 @@ typedef int (test_case_function)(struct active_device *ad, > > if (unlikely(num_to_process - deq_total < burst_sz)) > burst_sz = num_to_process - deq_total; > - rte_bbdev_dequeue_dec_ops(dev_id, queue_id, ops, burst_sz); > + if (op_type == RTE_BBDEV_OP_LDPC_DEC) > + rte_bbdev_dequeue_ldpc_dec_ops(dev_id, queue_id, ops, > + burst_sz); > + else > + rte_bbdev_dequeue_dec_ops(dev_id, queue_id, ops, > + burst_sz); > > deq_last_time = rte_rdtsc_precise() - deq_start_time; > *deq_max_time = RTE_MAX(*deq_max_time, deq_last_time); > @@ -4672,7 +4677,7 @@ typedef int (test_case_function)(struct active_device *ad, > offload_latency_empty_q_test_enc(uint16_t dev_id, uint16_t queue_id, > const uint16_t num_to_process, uint16_t burst_sz, > uint64_t *deq_total_time, uint64_t *deq_min_time, > - uint64_t *deq_max_time) > + uint64_t *deq_max_time, const enum rte_bbdev_op_type op_type) > { > int i, deq_total; > struct rte_bbdev_enc_op *ops[MAX_BURST]; > @@ -4685,7 +4690,12 @@ typedef int (test_case_function)(struct active_device *ad, > > if (unlikely(num_to_process - deq_total < burst_sz)) > burst_sz = num_to_process - deq_total; > - rte_bbdev_dequeue_enc_ops(dev_id, queue_id, ops, burst_sz); > + if (op_type == RTE_BBDEV_OP_LDPC_ENC) > + rte_bbdev_dequeue_ldpc_enc_ops(dev_id, queue_id, ops, > + burst_sz); > + else > + rte_bbdev_dequeue_enc_ops(dev_id, queue_id, ops, > + burst_sz); > > deq_last_time = rte_rdtsc_precise() - deq_start_time; > *deq_max_time = RTE_MAX(*deq_max_time, deq_last_time); > @@ -4695,6 +4705,7 @@ typedef int (test_case_function)(struct active_device *ad, > > return i; > } > + > #endif > > static int > @@ -4732,14 +4743,15 @@ typedef int (test_case_function)(struct active_device *ad, > printf("== test: offload latency empty dequeue\ndev: %s, burst size: %u, num ops: %u, op type: %s\n", > info.dev_name, burst_sz, num_to_process, op_type_str); > > - if (op_type == RTE_BBDEV_OP_TURBO_DEC) > + if (op_type == RTE_BBDEV_OP_TURBO_DEC || > + op_type == RTE_BBDEV_OP_LDPC_DEC) > iter = offload_latency_empty_q_test_dec(ad->dev_id, queue_id, > num_to_process, burst_sz, &deq_total_time, > - &deq_min_time, &deq_max_time); > + &deq_min_time, &deq_max_time, op_type); > else > iter = offload_latency_empty_q_test_enc(ad->dev_id, queue_id, > num_to_process, burst_sz, &deq_total_time, > - &deq_min_time, &deq_max_time); > + &deq_min_time, &deq_max_time, op_type); > > if (iter <= 0) > return TEST_FAILED;