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 15C79A0487 for ; Mon, 29 Jul 2019 10:48:50 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 0AC291BF4A; Mon, 29 Jul 2019 10:48:49 +0200 (CEST) Received: from EUR04-HE1-obe.outbound.protection.outlook.com (mail-eopbgr70053.outbound.protection.outlook.com [40.107.7.53]) by dpdk.org (Postfix) with ESMTP id 091C11BF48 for ; Mon, 29 Jul 2019 10:48:48 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=gcoS+J8yLoIAKMG7kMoA06DjHcXaI6BLaZ450SIfDzw/FfGc+z1Zt+yupRr/HV2Gozh3MGVTG0gbYQ/zgg21ZO9sOMJKnGYFkGOZElxSlfF1URLLOvGjRY2ILk8I1YLGzevYv7nzf+A9xo7/qGPqTda1pnkNUFSDRhqO5Uu2dcbU2QDO2pqEyldLrp1x2EqDZSc2BRBEp2K1O5qdbmJBqTgz3TvBMInE33zIWbB3jJ62haxR/kNo76zvQFOsrq415OSVkAQ2vTQvWU0VBagGWsSw6aCua+HjndwBdMzrYBtlH1zcSeQAE8r97NSrzFUqUZKFT/E1BKyEUJ0T/IkSag== 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=090f+W3D4Az3AxfFfDqiy03OJKtJulsZkdixCM5zzks=; b=gK8YZatvAtyuUcYcRLU9qsiUNJdiVkKMgl3MZXXaYWRZ4Wae0Jn01m5ICUGozSS7BhHDzsmr81l2T29nvWNF3eNZOZ0VoxiW1j2yb6z5CG/m4pgZ3i6zo5WX5UQG6uYorFpeTlVyejquEb70ubV6HIaCCDCKU3yeRI2el2PmLd3cxepx8miDXAbrXRhfs2w1inSxSYEE/riyDoZp38497R1rt8BGUjlOikiG7P2DTlqPUTr06R3jvuQF8Db6pwYo/PxmowL8mPq5jZbHLlqMB+1ukcZBRo0ZIDB3X53gfnhXz0r+1muLT/oBhhArqmHhf7oRvGC+I9HlnmvaKIaeYA== ARC-Authentication-Results: i=1; mx.microsoft.com 1;spf=pass smtp.mailfrom=nxp.com;dmarc=pass action=none header.from=nxp.com;dkim=pass header.d=nxp.com;arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=090f+W3D4Az3AxfFfDqiy03OJKtJulsZkdixCM5zzks=; b=SpFictEuaT/x3KnCiKPXgaV+A1qnBS8dI7TZuHh9UyQfzBl8aasVuM3jbjBDA9ml71Xrc5CRswFkFDhN6cCMrvSo6+4x056IjA6IbbdHR715KNDCah1FocJLXnTTF3XUGcU6x3fOhxDhgJzj0FLKPhgel6Ar2tG97b0QMr3YAeU= Received: from VE1PR04MB6639.eurprd04.prod.outlook.com (20.179.235.82) by VE1PR04MB6559.eurprd04.prod.outlook.com (20.179.234.88) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2115.13; Mon, 29 Jul 2019 08:48:46 +0000 Received: from VE1PR04MB6639.eurprd04.prod.outlook.com ([fe80::964:4ddc:346b:e2ec]) by VE1PR04MB6639.eurprd04.prod.outlook.com ([fe80::964:4ddc:346b:e2ec%7]) with mapi id 15.20.2115.005; Mon, 29 Jul 2019 08:48:46 +0000 From: Akhil Goyal To: Shally Verma , Fiona Trahe , "dev@dpdk.org" Thread-Topic: [EXT] [PATCH] compressdev: clarify destination buffer size for corner case Thread-Index: AQHVQwr/o0jN1LD5JEWYgHmhn5vzg6bd34+AgANvE1A= Date: Mon, 29 Jul 2019 08:48:46 +0000 Message-ID: References: <1564074249-16222-1-git-send-email-fiona.trahe@intel.com> In-Reply-To: Accept-Language: en-IN, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: spf=none (sender IP is ) smtp.mailfrom=akhil.goyal@nxp.com; x-originating-ip: [92.120.1.65] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: b952d597-2b0b-49da-09ae-08d7140191c7 x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0; PCL:0; RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600148)(711020)(4605104)(1401327)(4618075)(2017052603328)(7193020); SRVR:VE1PR04MB6559; x-ms-traffictypediagnostic: VE1PR04MB6559: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:5797; x-forefront-prvs: 01136D2D90 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(4636009)(346002)(396003)(136003)(376002)(39860400002)(366004)(199004)(189003)(8936002)(2501003)(5660300002)(7736002)(229853002)(6116002)(256004)(6436002)(81156014)(81166006)(3846002)(33656002)(52536014)(14454004)(53936002)(25786009)(305945005)(7696005)(74316002)(6246003)(316002)(478600001)(68736007)(71190400001)(71200400001)(26005)(186003)(66556008)(110136005)(2906002)(99286004)(8676002)(102836004)(66446008)(66066001)(6506007)(55016002)(446003)(476003)(9686003)(11346002)(86362001)(44832011)(486006)(64756008)(76116006)(66476007)(66946007)(76176011); DIR:OUT; SFP:1101; SCL:1; SRVR:VE1PR04MB6559; H:VE1PR04MB6639.eurprd04.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX:1; received-spf: None (protection.outlook.com: nxp.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam-message-info: FtTGs5/gOKROTeWNsRye3cg6TDWrYl/2JtO4PVV6wE0PGwwCEXaPdKSXFt3MCWAFZSERr6XyFBur+GtRh5/UksQy3b8AyDzZFjZ6Gv9mAutq9dt0atNOtwvJAyEWi8qOtKqqyAgGvLTO2Z/pYTtkChn4GKUSqjBqUbbvhk63CjKy6gCwdVV+4fSeUGgCSe82SSvuKIeRzv+2BGIM43gcVvY07QJwHlxKrVrHHuJcY9bO93zZ4Gm1wIU1pvDW29sqGYfkUtLHuCIqsPDX2u08jOSHAKnJnsP+0Pn9cW4OLC+JGQoaqhvIuQgVoYkU/cYaJhIytQwvG3T225j4L+Wp/DDMrES2J8vjQK0sI5lCJRv7p2heowL8KAQq7mz6vW6dWLPPxMoFPQr401NQmOd7WJh6eXu9uCmqL4y9mVkQ6Fc= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: b952d597-2b0b-49da-09ae-08d7140191c7 X-MS-Exchange-CrossTenant-originalarrivaltime: 29 Jul 2019 08:48:46.8418 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: akhil.goyal@nxp.com X-MS-Exchange-Transport-CrossTenantHeadersStamped: VE1PR04MB6559 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" > > > > ---------------------------------------------------------------------- > > Clarify the corner case with incompressible data whereby the output can > > actually be greater than the uncompressed data. > > > > Signed-off-by: Fiona Trahe > > --- > > lib/librte_compressdev/rte_comp.h | 6 ++++++ > > 1 files changed, 6 insertions(+), 0 deletions(-) > > > > 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. > > */ > > > > struct { > > -- > > 1.7.0.7 > Acked-by: Shally Verma Applied to dpdk-next-crypto Thanks.