From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 4A23EA058A; Fri, 17 Apr 2020 17:46:08 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 17C701E972; Fri, 17 Apr 2020 17:46:08 +0200 (CEST) Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by dpdk.org (Postfix) with ESMTP id 421B31E961 for ; Fri, 17 Apr 2020 17:46:07 +0200 (CEST) IronPort-SDR: h79QyBGKOmivyFbO5hWmPqWRyzdHOwA4C6wmf/B8RxpixaS7KbdJYLj6LhIBJKnI2huTGLs46I W6EJhlulJinQ== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 17 Apr 2020 08:46:06 -0700 IronPort-SDR: f4lVsBHvlg1U6/AbwA+Wqwh8IdfpxMHLYgvQkwj5ZswvgvUdICZAV+ac2qI1pO0Gv6ka1OL43X r5ABo5SXGxZQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.72,395,1580803200"; d="scan'208";a="364360899" Received: from adamdybx-mobl.ger.corp.intel.com (HELO addy-VirtualBox.ger.corp.intel.com) ([10.104.121.26]) by fmsmga001.fm.intel.com with ESMTP; 17 Apr 2020 08:46:04 -0700 From: Adam Dybkowski To: dev@dpdk.org, fiona.trahe@intel.com, akhil.goyal@nxp.com Cc: Adam Dybkowski Date: Fri, 17 Apr 2020 17:44:02 +0200 Message-Id: <20200417154404.648-1-adamx.dybkowski@intel.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200408125101.25764-1-adamx.dybkowski@intel.com> References: <20200408125101.25764-1-adamx.dybkowski@intel.com> Subject: [dpdk-dev] [PATCH v3 0/2] compress/qat: im buffer too small - split op X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" This patch implements a special way of buffer handling when internal QAT IM buffer is too small for Huffman dynamic compression operation. Instead of falling back to fixed compression, the operation is now split into multiple smaller dynamic compression requests (possible to execute on QAT) and their results are then combined and copied into the output buffer. This is not possible if any checksum calculation was requested - in such case the code falls back to fixed compression as before. v2: * various post-review small fixes v3: * refactor and simplify unit tests, removing the need of adding a new test suite separate for QAT-specific tests Adam Dybkowski (2): compress/qat: im buffer too small - split op test/compress: im buffer too small - add unit tests app/test/test_compressdev.c | 1185 ++++++++++++++++++++++-- doc/guides/compressdevs/qat_comp.rst | 3 - doc/guides/cryptodevs/qat.rst | 7 +- doc/guides/rel_notes/release_20_05.rst | 10 + drivers/common/qat/qat_qp.c | 223 ++++- drivers/common/qat/qat_qp.h | 3 + drivers/compress/qat/qat_comp.c | 474 +++++++++- drivers/compress/qat/qat_comp.h | 29 +- drivers/compress/qat/qat_comp_pmd.c | 27 +- 9 files changed, 1820 insertions(+), 141 deletions(-) -- 2.17.1