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 D5B05A046B for ; Sat, 27 Jul 2019 06:22:04 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 1B6141C4DD; Sat, 27 Jul 2019 06:22:04 +0200 (CEST) Received: from mx0b-0016f401.pphosted.com (mx0b-0016f401.pphosted.com [67.231.156.173]) by dpdk.org (Postfix) with ESMTP id A4A631C4DC for ; Sat, 27 Jul 2019 06:22:01 +0200 (CEST) Received: from pps.filterd (m0045851.ppops.net [127.0.0.1]) by mx0b-0016f401.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id x6R4LPNq006908; Fri, 26 Jul 2019 21:22:00 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.com; h=from : to : cc : subject : date : message-id : references : in-reply-to : content-type : content-transfer-encoding : mime-version; s=pfpt0818; bh=RtCiPhFsYMlTGuOlgH2NiW8cA5c4nEb6ek6JLcIs7gU=; b=MAHWG/WRMEUy008f/df0KwQigoyXKo+bHRyW37zLTbJ1r9KViwCk6ZKCQd0d5ebEN3XK qpFyq50Ua6W4zUwBpcki8EGse6ick32NdDQ5msXcNfn6vzvcINK6+QExgAp1awZj9Ndo /dk/fM8pKLwqgtMgYHgqZRw0cNl3ijG3L8IYbHnW2R/XhfXms8LAxHMWFGiuHBA5lig5 q+Qamu2O4t5CVxxHbO3b3Y/VqneFw2kjgk8J5RO+U+dJkhxdFUJVo0wPIw6MPJ5IDUey roeLLvhUJpTAlXOhDa/iJnpH8v1ejG5oiOGkyNw+xwn3rGiSdUtF7LTldLJVQdKOxKt0 /A== Received: from sc-exch02.marvell.com ([199.233.58.182]) by mx0b-0016f401.pphosted.com with ESMTP id 2tx6259abn-2 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT); Fri, 26 Jul 2019 21:22:00 -0700 Received: from SC-EXCH03.marvell.com (10.93.176.83) by SC-EXCH02.marvell.com (10.93.176.82) with Microsoft SMTP Server (TLS) id 15.0.1367.3; Fri, 26 Jul 2019 21:21:58 -0700 Received: from NAM01-SN1-obe.outbound.protection.outlook.com (104.47.32.59) by SC-EXCH03.marvell.com (10.93.176.83) with Microsoft SMTP Server (TLS) id 15.0.1367.3 via Frontend Transport; Fri, 26 Jul 2019 21:21:58 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=RkslMOtfsRyjglNiZKGbpV7Wt3zY2fLFV0umThDIo4f6C00OIV0FVL8Y/yWK9VCClipZJVeF6LPP8pNDtbzQOuXfQ2uCwQ7XQ6FeED7OcDFTrOgRdJQ/t4HVLv09jZ/23wC8HJBuhCvpti1ng+x1rtzWsAvMhKDI/XKnHrOfS1ulADuihvyK7+OOlr7ZpCoy8ZydJnkFYYNX0uX5xSUhoL+3I2UyJ0hdXl/8yDTHhw3JqO6FXTh3Xc2kdkFQlYj0hORGkcruRqXnhgHTuCfOXpy30JHU/jHnLaRi6hSnP3g6DUW0JjZlPSOME1mWOvnjIV2s1gK+9VPpnxzBcbbygg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=RtCiPhFsYMlTGuOlgH2NiW8cA5c4nEb6ek6JLcIs7gU=; b=i2BjJczaf+nbrgrHl+AfK8Nuw+NUkOk9d1YdGsHnL1GL/Wkx0PGPc8IxpJgd/qJx7GGTLI5DpqCgIBDsZc0vvn2cbu4dBGAJ8uZUp2KLzIZj/APWrYvI3bAVh1Rs04G7QBJ8WA2fMZmyvvv8hO22q0PPZyp8GirVRiuR7/cYiMBQyqWiMc5yH4Lf14B+rpxIZMEUrazOq6SYYtzcA5PrLMb0fwhwSpwcmSA4c6uFpdpQuQNZX2VsxOA9aq62/35i+rw/ffbbbSIiZiGB4qd3/kupqgguWCd/2kvQ0QyjHbaSvAUWBdXjEh8rKQAtFjmxo4UqYoS5RIfXArJdIvrH4w== ARC-Authentication-Results: i=1; mx.microsoft.com 1;spf=pass smtp.mailfrom=marvell.com;dmarc=pass action=none header.from=marvell.com;dkim=pass header.d=marvell.com;arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.onmicrosoft.com; s=selector2-marvell-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=RtCiPhFsYMlTGuOlgH2NiW8cA5c4nEb6ek6JLcIs7gU=; b=GUQffm0rJOq8dJ/lD9GQkf0UZNzJ7vtBkBtXkuHKejdRbfHAi/SJVoBjRFlHg+HMpjE+8JNS1qyicyFDHj/GCvFlimSdFzzDMAdeYjrKYSw6IRqBAPZPBNwwjc4KhjCKIrMFQvvOxkmkFxgjMVdwt/elIdp6HgxWrKKXqxHaM/k= Received: from BN6PR1801MB2052.namprd18.prod.outlook.com (10.161.157.11) by BN6PR1801MB1875.namprd18.prod.outlook.com (10.161.157.27) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2115.10; Sat, 27 Jul 2019 04:21:55 +0000 Received: from BN6PR1801MB2052.namprd18.prod.outlook.com ([fe80::b9c4:1fd1:a47e:cd72]) by BN6PR1801MB2052.namprd18.prod.outlook.com ([fe80::b9c4:1fd1:a47e:cd72%6]) with mapi id 15.20.2094.017; Sat, 27 Jul 2019 04:21:55 +0000 From: Shally Verma To: Fiona Trahe , "dev@dpdk.org" CC: "akhil.goyal@nxp.com" Thread-Topic: [EXT] [PATCH] compressdev: clarify destination buffer size for corner case Thread-Index: AQHVQwsD2dtsutl330+LmdSpjl16lKbd320Q Date: Sat, 27 Jul 2019 04:21:55 +0000 Message-ID: References: <1564074249-16222-1-git-send-email-fiona.trahe@intel.com> In-Reply-To: <1564074249-16222-1-git-send-email-fiona.trahe@intel.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [122.169.231.225] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 5140e606-8cd9-49c3-31a0-08d71249f58d x-microsoft-antispam: BCL:0; PCL:0; RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600148)(711020)(4605104)(1401327)(2017052603328)(7193020); SRVR:BN6PR1801MB1875; x-ms-traffictypediagnostic: BN6PR1801MB1875: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:4941; x-forefront-prvs: 01110342A5 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(4636009)(366004)(39850400004)(136003)(396003)(346002)(376002)(13464003)(189003)(199004)(99286004)(66556008)(2906002)(6506007)(52536014)(68736007)(229853002)(2501003)(6246003)(25786009)(81156014)(76176011)(64756008)(66946007)(76116006)(11346002)(446003)(66446008)(7736002)(53546011)(7696005)(26005)(66476007)(102836004)(4326008)(53936002)(110136005)(8936002)(3846002)(305945005)(66066001)(55016002)(81166006)(478600001)(6116002)(186003)(8676002)(71190400001)(9686003)(74316002)(33656002)(256004)(71200400001)(476003)(86362001)(316002)(6436002)(5660300002)(486006)(14454004); DIR:OUT; SFP:1101; SCL:1; SRVR:BN6PR1801MB1875; H:BN6PR1801MB2052.namprd18.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A:1; received-spf: None (protection.outlook.com: marvell.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam-message-info: f3Nwn1hGafy4zWP7WL6tX2Sh2OyPRENTP7CEdSd/rrwNdoOfkhKuatYFFq2w5yLG4NysWFe49ATufVz9LT+Y7QWRNz9NgAmfcqs5WLmZllw+Inkx6jSihaNtNU5OJrlCgc7GlVx2YC9HdmtSLDK4WjRBH3ZKUuE0R1oZtwuH8YbgUa5QFC5GFQZH7+Yibemk7G1dBDUkO+PSOFZY7H64UeCJW2TIRR2lOLViPAje6cUav1EnwreDX1yOLavIdrg43AA9dBA3l37//NDpD7s+RYpS5noRbuAf/PnRGRERHkriwWZLHUEH9gKZqDu4A89fBo2zabaCyQOKKh6iqGZkggFNrajRFvfoV2kym/Xc/0At+ofCVG/dlVMnIAmTPF1rkIyIEQGb2cMqFRUefAt1Rm5gwdT96hGILkxZ5yR812o= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Exchange-CrossTenant-Network-Message-Id: 5140e606-8cd9-49c3-31a0-08d71249f58d X-MS-Exchange-CrossTenant-originalarrivaltime: 27 Jul 2019 04:21:55.6648 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 70e1fb47-1155-421d-87fc-2e58f638b6e0 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: shallyv@marvell.com X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN6PR1801MB1875 X-OriginatorOrg: marvell.com X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:5.22.84,1.0.8 definitions=2019-07-27_02:2019-07-26,2019-07-27 signatures=0 Subject: Re: [dpdk-dev] [EXT] [PATCH] compressdev: clarify destination buffer size for corner case 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" > -----Original Message----- > From: Fiona Trahe > Sent: Thursday, July 25, 2019 10:34 PM > To: dev@dpdk.org > Cc: akhil.goyal@nxp.com; fiona.trahe@intel.com; Shally Verma > > Subject: [EXT] [PATCH] compressdev: clarify destination buffer size for > corner case >=20 > External Email >=20 > ---------------------------------------------------------------------- > Clarify the corner case with incompressible data whereby the output can > actually be greater than the uncompressed data. >=20 > Signed-off-by: Fiona Trahe > --- > lib/librte_compressdev/rte_comp.h | 6 ++++++ > 1 files changed, 6 insertions(+), 0 deletions(-) >=20 > diff --git a/lib/librte_compressdev/rte_comp.h > b/lib/librte_compressdev/rte_comp.h > index b7474c4..95306c5 100644 > --- a/lib/librte_compressdev/rte_comp.h > +++ b/lib/librte_compressdev/rte_comp.h > @@ -323,6 +323,12 @@ struct rte_comp_op { > * If the output data is expected to be bigger than this a chain of > * mbufs can be passed to the PMD if the PMD's capabilities indicate > * it supports this. > + * > + * @note, if incompressible data is passed to an engine for > compression > + * using RTE_COMP_ALGO_DEFLATE, it's possible for the output data > + * to be larger than the uncompressed data, due to the inclusion > + * of the DEFLATE header blocks. The size of m_dst should > accommodate > + * this, else OUT_OF_SPACE errors can be expected in this case. > */ >=20 > struct { > -- > 1.7.0.7 Acked-by: Shally Verma