From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pf0-f194.google.com (mail-pf0-f194.google.com [209.85.192.194]) by dpdk.org (Postfix) with ESMTP id 267AC2C36 for ; Sun, 23 Jul 2017 21:08:26 +0200 (CEST) Received: by mail-pf0-f194.google.com with SMTP id q85so8821291pfq.2 for ; Sun, 23 Jul 2017 12:08:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fridaylinux-org.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=CDTMuor8zoHRFUEjx/FOIQR6QW7dq/LgKlITUsnJTCM=; b=tzdS9EktLR0stDIo41wA9jzFLglPQ4wmRKNC/hcykQQ6gaGuBNhwUixRLvO2aQdwuG N9fsUeXKcu1LRGGAwxem/zxrlkAHbAKt6nBToJoY7WT1LwKP+eKvuQy6TCyUGdyyE4TH nIx4kuBovXSckqlaxj2IQmVynV4HgF7XS/i2VYukU4z27kBCZX5Tz+dV51+ijl6TzvdX C5I1cLCI76D9wKUGYKeYbvpMa8NKPzCKIHfazn3qbcTaJafzQOnjCwRrPlmUZKVe8L5I QFmTOmm/4p6UwV8rxKZUtdDvNHL3TsdBflAiKAp38k9RNNLwkkoQVBZtBkmov4Do5USw xs1g== 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=CDTMuor8zoHRFUEjx/FOIQR6QW7dq/LgKlITUsnJTCM=; b=Bbo82ONvSkD0TUtc0novzbgoy+4mHTmSQ1C7FbTjnNciYhBLGAW3Pk5UQrJcnQtYJq ZjZmmkiChZ0BN34Wx/PJrLy4csfLVqyQ4aAxEYXdCsTmSidyM5/y9lQ4ki/wm+JHCCSk 8uDMSGA4EwWuYzo1pJBU+TSDvesT6xJ0ELjVybhOhru9QjekbQUr0Xai13I9hYr2e3rn ACg2zoV+isO+0J9L0obKV3CDU0lr2xHVF9VIy3rf+qnGl25RuHKtHHPdDKVdCL6c3ARh HplU3dPwWGBBItqYBEjs1XDAtXIsy9K5/YKFv/i9CL16+9Um2Ytyqqvou1t59oYbDywq 0X3g== X-Gm-Message-State: AIVw113EB0lsEIGrVqg6s/ih08uRJZJy4Dq9fqL89XVuccDqoSaADiHj /8LFusrIfy1b0MM6 X-Received: by 10.84.210.169 with SMTP id a38mr15032077pli.388.1500836905466; Sun, 23 Jul 2017 12:08:25 -0700 (PDT) Received: from localhost.localdomain ([45.63.61.64]) by smtp.gmail.com with ESMTPSA id h125sm16827454pfe.178.2017.07.23.12.08.21 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 23 Jul 2017 12:08:24 -0700 (PDT) From: Yuanhan Liu To: Arek Kusztal Cc: Fiona Trahe , dpdk stable Date: Mon, 24 Jul 2017 03:07:30 +0800 Message-Id: <1500836852-3563-5-git-send-email-yliu@fridaylinux.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1500836852-3563-1-git-send-email-yliu@fridaylinux.org> References: <1500836852-3563-1-git-send-email-yliu@fridaylinux.org> Subject: [dpdk-stable] patch 'crypto/qat: fix NULL authentication hang' has been queued to LTS release 16.11.3 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: Sun, 23 Jul 2017 19:08:26 -0000 Hi, FYI, your patch has been queued to LTS release 16.11.3 Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet. It will be pushed if I get no objections before 07/27/17. So please shout if anyone has objections. Thanks. --yliu --- >>From 6ec178f32e12ec95885936593edc7eaa5abe05eb Mon Sep 17 00:00:00 2001 From: Arek Kusztal Date: Fri, 21 Apr 2017 09:11:30 +0100 Subject: [PATCH] crypto/qat: fix NULL authentication hang [ upstream commit 426dc9e3018dcdb0db9b2c58405d9ee5f28b0b00 ] To avoid a possible HW problem when dealing with NULL authentication case, the state sizes in the request descriptor are set. Fixes: db0e952a5c01 ("crypto/qat: add NULL capability") Signed-off-by: Arek Kusztal Acked-by: Fiona Trahe --- drivers/crypto/qat/qat_adf/qat_algs_build_desc.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/drivers/crypto/qat/qat_adf/qat_algs_build_desc.c b/drivers/crypto/qat/qat_adf/qat_algs_build_desc.c index 8900668..1c4b184 100644 --- a/drivers/crypto/qat/qat_adf/qat_algs_build_desc.c +++ b/drivers/crypto/qat/qat_adf/qat_algs_build_desc.c @@ -99,6 +99,9 @@ static int qat_hash_get_state1_size(enum icp_qat_hw_auth_algo qat_hash_alg) case ICP_QAT_HW_AUTH_ALGO_KASUMI_F9: return QAT_HW_ROUND_UP(ICP_QAT_HW_KASUMI_F9_STATE1_SZ, QAT_HW_DEFAULT_ALIGNMENT); + case ICP_QAT_HW_AUTH_ALGO_NULL: + return QAT_HW_ROUND_UP(ICP_QAT_HW_NULL_STATE1_SZ, + QAT_HW_DEFAULT_ALIGNMENT); case ICP_QAT_HW_AUTH_ALGO_DELIMITER: /* return maximum state1 size in this case */ return QAT_HW_ROUND_UP(ICP_QAT_HW_SHA512_STATE1_SZ, @@ -761,6 +764,9 @@ int qat_alg_aead_session_create_content_desc_auth(struct qat_session *cdesc, state2_size = ICP_QAT_HW_MD5_STATE2_SZ; break; case ICP_QAT_HW_AUTH_ALGO_NULL: + state1_size = qat_hash_get_state1_size( + ICP_QAT_HW_AUTH_ALGO_NULL); + state2_size = ICP_QAT_HW_NULL_STATE2_SZ; break; case ICP_QAT_HW_AUTH_ALGO_KASUMI_F9: state1_size = qat_hash_get_state1_size( -- 2.7.4