From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by dpdk.org (Postfix) with ESMTP id 14B251B4BA; Wed, 11 Jul 2018 15:09:22 +0200 (CEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by orsmga102.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 11 Jul 2018 06:09:22 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.51,338,1526367600"; d="scan'208";a="244378283" Received: from irsmsx105.ger.corp.intel.com ([163.33.3.28]) by fmsmga005.fm.intel.com with ESMTP; 11 Jul 2018 06:09:21 -0700 Received: from irsmsx107.ger.corp.intel.com ([169.254.10.193]) by irsmsx105.ger.corp.intel.com ([169.254.7.26]) with mapi id 14.03.0319.002; Wed, 11 Jul 2018 14:09:19 +0100 From: "De Lara Guarch, Pablo" To: "Daly, Lee" CC: "dev@dpdk.org" , "stable@dpdk.org" Thread-Topic: [PATCH] compress/isal: fixes ISA-L PMD used with offsets in mbuf Thread-Index: AQHUGEvEig8zpE4bYk+EUX7aPSYEcaSJ/7PA Date: Wed, 11 Jul 2018 13:09:19 +0000 Message-ID: References: <1531226641-54158-1-git-send-email-lee.daly@intel.com> In-Reply-To: <1531226641-54158-1-git-send-email-lee.daly@intel.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiMzM0OTY4YWQtOWRjMi00NmVhLWI4OGUtYzU1N2VkMWJlN2E3IiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX05UIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE3LjEwLjE4MDQuNDkiLCJUcnVzdGVkTGFiZWxIYXNoIjoiejZPV2hEcG5FRzZzU0FNZmVQaXMyT1wvaHdcL2h5MGVFeUhkSmU0ZVZXUDJrSjkrMnlucEsrSE1lN0JRMkNWbHQrIn0= x-ctpclassification: CTP_NT dlp-product: dlpe-windows dlp-version: 11.0.200.100 dlp-reaction: no-action x-originating-ip: [163.33.239.182] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: [dpdk-dev] [PATCH] compress/isal: fixes ISA-L PMD used with offsets in mbuf 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: , X-List-Received-Date: Wed, 11 Jul 2018 13:09:23 -0000 Hi Lee, > -----Original Message----- > From: Daly, Lee > Sent: Tuesday, July 10, 2018 1:44 PM > To: De Lara Guarch, Pablo > Cc: dev@dpdk.org; Daly, Lee ; stable@dpdk.org > Subject: [PATCH] compress/isal: fixes ISA-L PMD used with offsets in mbuf >=20 > This patch allows the ISA-L compression PMD, to be used with offsets in t= he > mbuf. > Offsets can now be used for source and destination buffers, during compre= ssion > or decompression. >=20 > Fixes: dc49e6a "compress/isal: add ISA-L compression functionality" > Fixes: 7bf4f06 "compress/isal: add ISA-L decomp functionality" > Cc: stable@dpdk.org >=20 > Signed-off-by: Lee Daly > --- > drivers/compress/isal/isal_compress_pmd.c | 60 ++++++++++++++++++++++---= - ... > + /* Point decompression state to output buffer */ > qp->state->avail_out =3D op->m_dst->data_len; Actually, I think "avail_out =3D data_len - dst.offset"