From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from out3-smtp.messagingengine.com (out3-smtp.messagingengine.com [66.111.4.27]) by dpdk.org (Postfix) with ESMTP id 52A062D13 for ; Thu, 1 Feb 2018 10:48:28 +0100 (CET) Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id 0CB8E202F7; Thu, 1 Feb 2018 04:48:28 -0500 (EST) Received: from frontend2 ([10.202.2.161]) by compute1.internal (MEProxy); Thu, 01 Feb 2018 04:48:28 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fridaylinux.org; h=cc:date:from:in-reply-to:message-id:references:subject:to :x-me-sender:x-me-sender:x-sasl-enc; s=fm2; bh=aKEb09AT/a/A+DztD rqIfF60oqlh+xJ2JUajbH0uYBQ=; b=RC5sVqDCNZFmPHVT8dzkLg7ZnC1TUOKXM 2i/+yOWcKsSgMx24nDmMOv1BjR0mHZZ2NzDksLCTJCbuXyxEHXwBqWA1jO3ToB4H soJ1LA9lIOn7KujqoQ211Xv2qWPOLF1Tiy9Zs+Fe02D7eHWMHiyD6EG6R6bgdoYQ adLEAI9R/GBjbqyvAElb1mcUEkkWsuGi8rpPoUg9LqtojOfoSLljAyE6Pq6LycTC pl1WzeGJ0Q9OSj7+k2pStDjfun7bVc9hMePPkH4kBfKFg9bK7UjrTFiYhtJpu6uz EUErGeojD8I+MDcx7Gi4R0AL2Lf8lN3499Yhw0nkr5V95492QYlhQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:date:from:in-reply-to:message-id :references:subject:to:x-me-sender:x-me-sender:x-sasl-enc; s= fm1; bh=aKEb09AT/a/A+DztDrqIfF60oqlh+xJ2JUajbH0uYBQ=; b=lVOn2TqO occuNGZedp244oUs7eaBLzZ7lrNJ6Q2xgSxNGRj18XS+OPLYkcS7Jk7DLmogtYdm nexJdCnN1CJnduprzON8VTS93UIYZJXUGDHdG4GA9GUWKceBphl68XRY6iHnc3tV alz3Fo3eFw8LIsf4zoI7gKbojxxro67BJkK6ME5z//+MZfCucQ34WRJyyh1mY/Fp erggwSRKWupWAtdSMvOOZsKya+DwInVpoNkeZxlCkLsubpcfXbm2EL4+pOJ++7ZD 3YhYMNprpdJKMwVvGcTaqRNBC3sbC0+5CH2aAsF+EqlNhwiZuUaNMAbgU6IJM465 NERrnRkiwUJ+Lg== X-ME-Sender: Received: from yliu-mob.mtl.com (unknown [115.150.27.200]) by mail.messagingengine.com (Postfix) with ESMTPA id D9A96240B6; Thu, 1 Feb 2018 04:48:25 -0500 (EST) From: Yuanhan Liu To: Tomasz Jozwiak Cc: Fiona Trahe , dpdk stable Date: Thu, 1 Feb 2018 17:47:24 +0800 Message-Id: <1517478479-12417-10-git-send-email-yliu@fridaylinux.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1517478479-12417-1-git-send-email-yliu@fridaylinux.org> References: <1517478479-12417-1-git-send-email-yliu@fridaylinux.org> Subject: [dpdk-stable] patch 'crypto/qat: fix parameter type' has been queued to LTS release 17.11.1 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: Thu, 01 Feb 2018 09:48:28 -0000 Hi, FYI, your patch has been queued to LTS release 17.11.1 Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet. It will be pushed if I get no objections before 02/03/18. So please shout if anyone has objections. Thanks. --yliu --- >>From 5be0172eff06705dfd41e9e5d5bbaba0debe660a Mon Sep 17 00:00:00 2001 From: Tomasz Jozwiak Date: Mon, 22 Jan 2018 17:28:05 +0100 Subject: [PATCH] crypto/qat: fix parameter type [ upstream commit c202320775bb8094c41eaaff562a38cd6d7bce70 ] This commit fixes right cast from qat_cipher_get_block_size function. This function can return -EFAULT in case of any error, and that value must be cast to int instead of uint8_t Fixes: d18ab45f7654 ("crypto/qat: support DOCSIS BPI mode") Signed-off-by: Tomasz Jozwiak Acked-by: Fiona Trahe --- drivers/crypto/qat/qat_crypto.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/crypto/qat/qat_crypto.c b/drivers/crypto/qat/qat_crypto.c index f85c2c8..8629595 100644 --- a/drivers/crypto/qat/qat_crypto.c +++ b/drivers/crypto/qat/qat_crypto.c @@ -848,7 +848,7 @@ static inline uint32_t qat_bpicipher_preprocess(struct qat_session *ctx, struct rte_crypto_op *op) { - uint8_t block_len = qat_cipher_get_block_size(ctx->qat_cipher_alg); + int block_len = qat_cipher_get_block_size(ctx->qat_cipher_alg); struct rte_crypto_sym_op *sym_op = op->sym; uint8_t last_block_len = block_len > 0 ? sym_op->cipher.data.length % block_len : 0; @@ -903,7 +903,7 @@ static inline uint32_t qat_bpicipher_postprocess(struct qat_session *ctx, struct rte_crypto_op *op) { - uint8_t block_len = qat_cipher_get_block_size(ctx->qat_cipher_alg); + int block_len = qat_cipher_get_block_size(ctx->qat_cipher_alg); struct rte_crypto_sym_op *sym_op = op->sym; uint8_t last_block_len = block_len > 0 ? sym_op->cipher.data.length % block_len : 0; -- 2.7.4