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 1228341D58; Fri, 24 Feb 2023 15:41:28 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id A5F6A40697; Fri, 24 Feb 2023 15:41:27 +0100 (CET) Received: from mail-qv1-f48.google.com (mail-qv1-f48.google.com [209.85.219.48]) by mails.dpdk.org (Postfix) with ESMTP id B6D0040693 for ; Fri, 24 Feb 2023 15:41:26 +0100 (CET) Received: by mail-qv1-f48.google.com with SMTP id ev13so13826416qvb.10 for ; Fri, 24 Feb 2023 06:41:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1677249686; h=content-transfer-encoding:in-reply-to:from:content-language :references:to:subject:user-agent:mime-version:date:message-id:from :to:cc:subject:date:message-id:reply-to; bh=yrhETt8YfTQU0jkqQRYmvynkSrYY7omM4w02eS+LMI8=; b=d0DIjbp2IRZE1vb5B8hPbsUiDc1TWXrMBU9liM07LXSWgup4agN8yqZ8JysPxRDGHU Hz6goau73Jcq7j5Jxt7Mx+lty/zvDY5fzW+EsL2amAH1hVsdVnhtnbj2FoNnfqpuY+WL Z8IbmuxR6ABJHhF6pZQhkm9CewQ3AtfX+GbvzjqQbEzDhjPQRR2Q3wHRa+AsmKCxQOUu 4NRHThIQ0pO3qNx6lZ5Ea8oSQ3enUq5vQZh5FS4JIgWeszN/NH8MDro462Fxa5rUW9iz eXg45Yu2Tuxd6V67KloJy9qSqEDXgMPGchV4vIClCx8gn7N9ehmcnXf/6AvdOfz0MwVj lllQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1677249686; h=content-transfer-encoding:in-reply-to:from:content-language :references:to:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=yrhETt8YfTQU0jkqQRYmvynkSrYY7omM4w02eS+LMI8=; b=HyOHHaGN8lXdC2ajsUPJLT2ZFde5Q/J6GXtaFEmS30hMOopGtpYotVsTYYyPic78Nx RMRTyciy7vwHb8UseRMs2Ghn24qL+UKlOcDMZVnwoEWksUMUyPa/iwjKkLwYEuhDUJn2 HWIYhAQKgy5vLLjGrPwp4Ka9KMd3W109hey2zpbLT2lyvNuM0MfEAnaw6Ea5gMzQYOfI vn65mF4z+JrscKm4x9vYiDwjqjEowWlKggLGGDVEzzfFb3ltkYm6FVmx4jJ5ZERRVk4c Xd9BJAe98vqtqrChStUaudC5WhXpFuLrKiu/EUeG3SWAiLk0gQWMJYkefankaGh4u/gB xOlw== X-Gm-Message-State: AO0yUKWk6vA0QIXmRFFMCSE1XVQ7u8qpS/5ifxWwhmPCHLauaQ1ne666 549URQGhIG9rygWsdJ8lDBByu66DJcqMEA== X-Google-Smtp-Source: AK7set8C6K1/IHFhMxH3FNPxq4uTt9ZIjW26LS3kQMUjs44zbZRVzxOT6gUhI3NGToTf+ce+qp5tLA== X-Received: by 2002:a05:6214:5011:b0:56e:b427:819b with SMTP id jo17-20020a056214501100b0056eb427819bmr26364957qvb.16.1677249686004; Fri, 24 Feb 2023 06:41:26 -0800 (PST) Received: from [10.249.156.219] (nat-216-240-30-23.netapp.com. [216.240.30.23]) by smtp.gmail.com with ESMTPSA id y82-20020a376455000000b007423c011937sm4494770qkb.91.2023.02.24.06.41.25 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 24 Feb 2023 06:41:25 -0800 (PST) Message-ID: <26912e28-fbd7-0e95-a8ad-3e66537febc8@gmail.com> Date: Fri, 24 Feb 2023 14:41:22 +0000 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.7.2 Subject: Re: [PATCH v1] eventdev/crypto: wrong crypto enqueue count stats To: dev@dpdk.org References: <20221130151159.1678917-1-ganapati.kundapura@intel.com> Content-Language: en-US From: "Zhang, Fan" In-Reply-To: <20221130151159.1678917-1-ganapati.kundapura@intel.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org On 11/30/2022 3:11 PM, Ganapati Kundapura wrote: > crypto_enq_count is updated on failure to enqueue ops to cryptodev. > > Updated crypto_enq_count on successful enqueue of ops to cryptodev. > > Signed-off-by: Ganapati Kundapura > > diff --git a/lib/eventdev/rte_event_crypto_adapter.c b/lib/eventdev/rte_event_crypto_adapter.c > index c293a62..e1a0367 100644 > --- a/lib/eventdev/rte_event_crypto_adapter.c > +++ b/lib/eventdev/rte_event_crypto_adapter.c > @@ -485,6 +485,9 @@ eca_enq_to_cryptodev(struct event_crypto_adapter *adapter, struct rte_event *ev, > cdev_id, > qp_id, > &nb_enqueued); > + stats->crypto_enq_count += nb_enqueued; > + n += nb_enqueued; > + > /** > * If some crypto ops failed to flush to cdev and > * space for another batch is not available, stop > @@ -495,9 +498,6 @@ eca_enq_to_cryptodev(struct event_crypto_adapter *adapter, struct rte_event *ev, > &qp_info->cbuf))) > adapter->stop_enq_to_cryptodev = true; > } > - > - stats->crypto_enq_count += nb_enqueued; > - n += nb_enqueued; > } > > return n; Acked-by: Fan Zhang