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 36D95A0544; Fri, 11 Nov 2022 14:16:44 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id DF43A4014F; Fri, 11 Nov 2022 14:16:43 +0100 (CET) Received: from mail-qk1-f172.google.com (mail-qk1-f172.google.com [209.85.222.172]) by mails.dpdk.org (Postfix) with ESMTP id B76CA40141; Fri, 11 Nov 2022 14:16:42 +0100 (CET) Received: by mail-qk1-f172.google.com with SMTP id z30so2911115qkz.13; Fri, 11 Nov 2022 05:16:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=6QGY55e5Cz/bvsegDoFoy1EJsRazdHMh+mv0cqc1pTE=; b=RrwbHr5skqvE7v/67qKT3qscLBL3Eg/4hyDfGN8kmhiMgSU2/0qc/yzaOI/u4m1q0W GIjymv3KmVDXPNBoAGn9N35/mUwMrrk/i4kMbAVhThiAEAsGzcK2NncVMHF7DpSUj+hv ecaj/jmbgPwP7YxFTC/YEAjj3lOKyeI9xU7bKv125u19amvXOgCGiZnSW1iVJ5gYI+bb 3XWxB0sUP/oupYIub58NbBTB++/eQTvN/nYynVTl6dbWuGkaxr5GYgfx70jEyi7XGT6Y tVmY3Ajs8OcjA6PtTYHRyKaAGyounaCAd6Y6xZX/Tzz4JvIzlkNuUSFbHtPQ6W/mzlsx z5Eg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=6QGY55e5Cz/bvsegDoFoy1EJsRazdHMh+mv0cqc1pTE=; b=vWzy1yNe7/RpH6gSavCUeStee0QRmncrh/nETXRd5Ed1AuHaxiyUICmyi7fY1GL2fO lsAkQ9Ybq42j3aFrHSdh6CwkIjy2wUXa91y1hnRWtHDatqMVPzLxs07NMR6+acTojMFP 5f3MXQ2b9xfeLaz9gZ2EfuHIIrHkadbaqX3cDFgf2Q/7gfzlUfj7FzEGMLA5pn1vXFCI nv7pwpCyl7+PsWO0rUnTNANlTMqUjTPGcE38oXKrOjGQKX3UCh9F7tA9J1/WSQISn3+u J+xzRBzpdCRd+UjP6w8f86svSAzjIzFkC1XTEfw7FmXDqr250kSIDxdGp1NiFgAFPOWb CxXQ== X-Gm-Message-State: ANoB5plRQUBtvOx2AbIL75eu7+momhxq4rD8eOrwHvFEKnZ8tbIUR53u sm4g1ZnuwIOjxtkQGT5EX2A= X-Google-Smtp-Source: AA0mqf53Ft7gnhb4F2Xpa5/t4kARNa2LYzfFXip83WMXx+Gb4vkXPV1DlZ9Bk2vNC8igiujGddMvfw== X-Received: by 2002:a37:e306:0:b0:6fa:23d1:856f with SMTP id y6-20020a37e306000000b006fa23d1856fmr946409qki.564.1668172602068; Fri, 11 Nov 2022 05:16:42 -0800 (PST) Received: from [10.249.155.188] (nat-216-240-30-25.netapp.com. [216.240.30.25]) by smtp.gmail.com with ESMTPSA id d11-20020a05620a240b00b006e2d087fd63sm1457520qkn.63.2022.11.11.05.16.39 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 11 Nov 2022 05:16:40 -0800 (PST) Message-ID: <04616529-f326-622f-8c45-05d6de124b3b@gmail.com> Date: Fri, 11 Nov 2022 13:16:36 +0000 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.3.3 Subject: Re: [dpdk-dev v1] app/test: fix of bitwise and operator in return Content-Language: en-US To: Kai Ji , dev@dpdk.org Cc: stable@dpdk.org, gakhil@marvell.com References: <20221111115941.16232-1-kai.ji@intel.com> From: "Zhang, Fan" In-Reply-To: <20221111115941.16232-1-kai.ji@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/11/2022 11:59 AM, Kai Ji wrote: > This patch remove incorrect bitwise and operator used in the > return function of sw snow3g testcase > > Signed-off-by: Kai Ji > --- > app/test/test_cryptodev.c | 6 ++++-- > 1 file changed, 4 insertions(+), 2 deletions(-) > > diff --git a/app/test/test_cryptodev.c b/app/test/test_cryptodev.c > index e1122fcd7c..d6ae762df9 100644 > --- a/app/test/test_cryptodev.c > +++ b/app/test/test_cryptodev.c > @@ -6870,8 +6870,10 @@ test_snow3g_decryption_with_digest_test_case_1(void) > */ > snow3g_hash_test_vector_setup(&snow3g_test_case_7, &snow3g_hash_data); > > - return test_snow3g_decryption(&snow3g_test_case_7) & > - test_snow3g_authentication_verify(&snow3g_hash_data); > + if (test_snow3g_decryption(&snow3g_test_case_7)) > + return TEST_FAILED; > + > + return test_snow3g_authentication_verify(&snow3g_hash_data); > } > > static int Acked-by: Fan Zhang