From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wr0-f196.google.com (mail-wr0-f196.google.com [209.85.128.196]) by dpdk.org (Postfix) with ESMTP id 0C4E41B19 for ; Mon, 30 Apr 2018 16:44:30 +0200 (CEST) Received: by mail-wr0-f196.google.com with SMTP id g21-v6so8289740wrb.8 for ; Mon, 30 Apr 2018 07:44:30 -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=bPCE1mddA0kDlcUsm1u3BNo1sZaR/oasqXQoyYiPCFU=; b=eKqYXAj3M4Nf2CTpLwkyotvqqT/3cFTP1Pdtc42/AGIwRlRJ4FZ5Chw/R0jn2y8ciH Qe5k+OLYefzjzTD4KULPl1kwDfxTqwUz1++JhcJX6Ey4wrQoVi/acpHxrSfpDI6J/iRp b2NX7MlOtZyhYE7jEINgTmMtz2lMi45akW/hosiHpldGxHI7X+7PE0Tpzjlw+3hqctBG BSSGoHHlZN9u3a+mUC/2Dot7XYjaZFJk/CpJbsphOrtM+Mya10G3fTkC850pLGimDqGB wv5tFfg/wKgZGG2HQvp5i/CSpfTvmBk6Su9e4jMr9CPkRcKKi2NOUFnz5ySxnWq4bkVR zivA== 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=bPCE1mddA0kDlcUsm1u3BNo1sZaR/oasqXQoyYiPCFU=; b=A2Xwd39ytu/2CqkAdwsZzHyWjpH4AO1oucgxLn2Gv8sSYpxmKwWpYxiCy+Cd3yeTaR FAxLqggwDUJoobGAzAATReOZgNfvKsjdI4gPHXXL+Fzf8OTtfvGa1lVkR3wGwjo5zHjs y66ypdxBc0hDnu5EOa9Tdfz2qsbXSlStMlM8bKzSOMPaUzehHyMXOfrtKDEGaLUdTh5u IwyMWRXH1JZYfy3hPIToEz81gOa6kmOZqXBhFD3h9Y/+8pLRE8bPyKyDzjosu/W4X/SA h3GfkmNZqY3MebBmGl/9bqhv5l2ynWXmjVcYErG/4yvWAy1ZXi0O27FKeiKdxseGTLPJ xJVA== X-Gm-Message-State: ALQs6tCdShy2tABFtQfzvPF/0jxP+qs+mY3vIeBNAkVW9GhTb0AJ93Dh EtO6uPGXZ6zyl6K56HYoyTQ= X-Google-Smtp-Source: AB8JxZqi8phwwb/4IhEnWlXhdgNeMc216D6DPjXqFxI3TBACx/mdyHfHHQ+IjFLnWuIPQ6Pa8DanIA== X-Received: by 2002:adf:e210:: with SMTP id j16-v6mr9555239wri.118.1525099469789; Mon, 30 Apr 2018 07:44:29 -0700 (PDT) Received: from localhost ([2a00:23c5:be9a:5200:ce4c:82c0:d567:ecbb]) by smtp.gmail.com with ESMTPSA id 132sm1635761wmp.15.2018.04.30.07.44.28 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 30 Apr 2018 07:44:28 -0700 (PDT) From: luca.boccassi@gmail.com To: Pablo de Lara Cc: Fiona Trahe , dpdk stable Date: Mon, 30 Apr 2018 15:41:33 +0100 Message-Id: <20180430144223.18657-78-luca.boccassi@gmail.com> X-Mailer: git-send-email 2.14.2 In-Reply-To: <20180430144223.18657-1-luca.boccassi@gmail.com> References: <20180430140606.4615-80-luca.boccassi@gmail.com> <20180430144223.18657-1-luca.boccassi@gmail.com> Subject: [dpdk-stable] patch 'crypto/zuc: remove unnecessary check' 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: Mon, 30 Apr 2018 14:44:30 -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/02/18. So please shout if anyone has objections. Thanks. Luca Boccassi --- >>From 6189aafb31926c41d084f5ed7587b6ede2b7b397 Mon Sep 17 00:00:00 2001 From: Pablo de Lara Date: Thu, 19 Apr 2018 15:55:40 +0100 Subject: [PATCH] crypto/zuc: remove unnecessary check [ upstream commit 5943233a687af76672d45a15755f5432fb4c73e9 ] When processing operations, the operation type was being checked to avoid if it was set to NOT SUPPORTED. In data path, doing so is not required since that is already checked when creating the crypto session, so that case will not ever happen. Fixes: cf7685d68f00 ("crypto/zuc: add driver for ZUC library") Signed-off-by: Pablo de Lara Acked-by: Fiona Trahe --- drivers/crypto/zuc/rte_zuc_pmd.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/crypto/zuc/rte_zuc_pmd.c b/drivers/crypto/zuc/rte_zuc_pmd.c index 5fcd1a245..2e337c468 100644 --- a/drivers/crypto/zuc/rte_zuc_pmd.c +++ b/drivers/crypto/zuc/rte_zuc_pmd.c @@ -353,8 +353,7 @@ zuc_pmd_enqueue_burst(void *queue_pair, struct rte_crypto_op **ops, curr_c_op = ops[i]; curr_sess = zuc_get_session(qp, curr_c_op); - if (unlikely(curr_sess == NULL || - curr_sess->op == ZUC_OP_NOT_SUPPORTED)) { + if (unlikely(curr_sess == NULL)) { curr_c_op->status = RTE_CRYPTO_OP_STATUS_INVALID_SESSION; break; -- 2.14.2