From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 0E4E8A0547; Sat, 31 Jul 2021 19:57:29 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 931724014D; Sat, 31 Jul 2021 19:57:28 +0200 (CEST) Received: from mx0b-0016f401.pphosted.com (mx0a-0016f401.pphosted.com [67.231.148.174]) by mails.dpdk.org (Postfix) with ESMTP id E04E840042; Sat, 31 Jul 2021 19:57:26 +0200 (CEST) Received: from pps.filterd (m0045849.ppops.net [127.0.0.1]) by mx0a-0016f401.pphosted.com (8.16.0.43/8.16.0.43) with SMTP id 16VHvPSD031846; Sat, 31 Jul 2021 10:57:25 -0700 Received: from nam10-bn7-obe.outbound.protection.outlook.com (mail-bn7nam10lp2106.outbound.protection.outlook.com [104.47.70.106]) by mx0a-0016f401.pphosted.com with ESMTP id 3a53vr8wmp-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Sat, 31 Jul 2021 10:57:25 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=luKvHAH76g9tb6eDwHradfiQPAu8aLbLyMwHirWLqaYkAjwIRntI8YovV6qbzSdGPVoWOTHWyJQItK+/2WUATOM1KSc1SQL8Ub/sO97oviHfHafVUz5dxt/zFOyNwUhnqSzQz7TdavOcKW5lPc6up3og3kKJPkMsI1fjmao2BYMwQVNiYDIUkUqmBjBOQNgc91GekUf59Jgdyg/PhS6InoCiH+7RcStC9OC9LIm3uvyJRvlDWsxmefmbBeMrnKjaeLCNe9haw3Nj0RSKubuAFIzUl3DW0I2fIczrkM+tA2AuavIreNBqffvdMteuwKAlfWxECYy0cw4ZSNmgkGL6AQ== 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=puk85fjbrld8yFmJfkkcMq3eXQkt/uC2LAdJWhEfeVU=; b=iI/id1NsaVhuCPd1NsNXbsdxJffUMOAD1D248Up8AOG+DLOZaI199mZwTPinop08oiQ3K/azRyA/bM+CxxppTVwFZyz7y7wRyZ/UBJW1DS2lbndhTepF58hI7e5Iw34qGD98eiKK2DsOLAU1613UHavw4KIi9ZAaB3oyOkkpiA3u9bHkb9uTnZoLH+mKsdjuai2vL32asuLXrvgdIEm1YCs87GuvvFf5YT/pbxaqwGmuaX8C4HlPEl86duQ4wFuMpkhJmTpq2BdjEYGejpqd448qcHMMp/iDSX5iyIkfxCAs69UmAzjXp7FHH3TG9FdRxR/pcbmZDraREwucQM6ULA== 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=selector1-marvell-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=puk85fjbrld8yFmJfkkcMq3eXQkt/uC2LAdJWhEfeVU=; b=EB4vQwCygYetmnuT57gT+niUIHdsRmhRb+3UKj9np32fIoNBSnxBEIyTa0StHerl5mZZhRtR4abknJ7HG9fnQ/D6kW0uftxNwkmlEGEBJtX0K1xXRDeyo8c2Zi2hRh5kpcUDhu5xmZP8VEy4eeRXLDgm2RJlnFNh7ji1yKw/ZRM= Received: from CO6PR18MB4484.namprd18.prod.outlook.com (2603:10b6:5:359::9) by CO1PR18MB4796.namprd18.prod.outlook.com (2603:10b6:303:ef::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4373.21; Sat, 31 Jul 2021 17:57:23 +0000 Received: from CO6PR18MB4484.namprd18.prod.outlook.com ([fe80::1455:9a67:a6e7:e557]) by CO6PR18MB4484.namprd18.prod.outlook.com ([fe80::1455:9a67:a6e7:e557%7]) with mapi id 15.20.4373.026; Sat, 31 Jul 2021 17:57:23 +0000 From: Akhil Goyal To: Raja Zidane , "dev@dpdk.org" , Thomas Monjalon CC: "matan@nvidia.com" , "stable@dpdk.org" Thread-Topic: [EXT] [dpdk-dev] [PATCH] compress/mlx5: fix level translation in xform API Thread-Index: AQHXhIOvLDYu6jpKy0mJV4CRs54aH6tdYb1Q Date: Sat, 31 Jul 2021 17:57:23 +0000 Message-ID: References: <20210729141108.20908-1-rzidane@nvidia.com> In-Reply-To: <20210729141108.20908-1-rzidane@nvidia.com> Accept-Language: en-US Content-Language: en-US X-Mentions: thomas@monjalon.net X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: nvidia.com; dkim=none (message not signed) header.d=none;nvidia.com; dmarc=none action=none header.from=marvell.com; x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: fd5ff301-4708-4489-47ba-08d9544ca644 x-ms-traffictypediagnostic: CO1PR18MB4796: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:8882; x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: vADcCt2CWZvT6ey0tyYA78sYtOdZ8wxoZ1FXmQ/4AGyhXbFzXMmD431rOfCuIgYnuZqPZJ4eJ+jeBZu7F8BsXe8VjYH+9a8vnwrC17fbdR5AN9apNYcoQjKn8Uxw0mnPjCtGJFsaaoVdcIIimodLkrVSlvGjqBNJsif0v4KPhF/Uncx6MFoZgfhSmcE/VxQLgHEJvMkmrWNJ107i/E/zhs5AH4Jcqxz8JnySuXSjnhFnVjfNCwXCSV5EHgVw845BNl+uIcGqpeshsXUZd9Boc0biJY9/U9jemgGyRInM+999wmdzhKlmq//iaZydRxLzQIKGVxmlXW4Kb92pvyZkVK1w8d4fV0laDiZIJS7GwC6e///WTZDcoxTx2utQ5J17iw07qf6hxrpgqUjCvzAIcGvXYUylKy7XxS8/ThdbNmcNQVUCPW3VsZDer6Jqz5mqqFMWcx5TDGS1BKPybYt9XJxjdAYaXx3wQ5DA7cIoKmRiW6r9B8noCye0ovR5ihEHJlyj4RCmLFL/rDUzWJLaPbkPR15gyoJE2fxCfFk5W0Xq/cogVKkEojPLb40Iu+HnN/c6TM+U2SjbZyoUTMwGUF1ooYZiFlMrt9EdRocLrFA2oinuG9KKwWdXZ6uXma6WiAFlmqdqV4UqrAk8NVANVH7gm8qyoe5LDGRtTOOSQm7nxeZIXTrqJStwdk/P1t1momAEGGeTnkxRwodIWWZEJg== x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:CO6PR18MB4484.namprd18.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(366004)(396003)(376002)(346002)(136003)(39850400004)(316002)(71200400001)(6506007)(38100700002)(2906002)(54906003)(4326008)(7696005)(478600001)(5660300002)(4744005)(110136005)(33656002)(8676002)(8936002)(52536014)(66556008)(66446008)(64756008)(66476007)(86362001)(66946007)(186003)(76116006)(55236004)(55016002)(26005)(9686003)(38070700005)(122000001)(83380400001); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?z69LOeUXZSNUBcVOb5hFnNUgXtR886M+3vxC5iJAH2RYOhaAWQnIXKGC3k2G?= =?us-ascii?Q?Y4bh/+ejOcK2w3mDORu9Pk9AlLpkK59xfdLmu2bBHhIJUGepMT97PdI0zh7H?= =?us-ascii?Q?7MvsPfR4B9W29zMQfXg3C5TsxbpA3yKba5C42m//uVksmhNmW/TmEhGTfeI8?= =?us-ascii?Q?LYJveYG+BweFU2KYZ/9kcWxSHkaT2+bhuISWL3GbqHCY7/PdXwWQHhezZco2?= =?us-ascii?Q?pz5QTQ2RIgRL3BaXSFFQmPEf1HFRt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?Q?/bSEHC8tNEUiRfr9Enf0CZdkD0ert6UsBkbPhyPTCTvZGQDc1EUXUx2joiQH?= =?us-ascii?Q?Cxhr7WtiGBvGf/z7JdwrptpPSXocW7j+GIV+jfAJjTn9JG3T+FjN77Z2VR8x?= =?us-ascii?Q?Mxn0vAn7Zcu1mOJmHM4J0mOHsKR+Q1iPsodbrzrJdtvf5xoa44F3Ga5dfdI0?= =?us-ascii?Q?oNoCYDJ4YTQr3MdJCES3j6yD?= x-ms-exchange-transport-forked: True Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: marvell.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: CO6PR18MB4484.namprd18.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: fd5ff301-4708-4489-47ba-08d9544ca644 X-MS-Exchange-CrossTenant-originalarrivaltime: 31 Jul 2021 17:57:23.1743 (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: gKy7MUa7oxqmSVKnMZ6FgSmjOYuVKSwvBvNqZW6W9IFWLXYdAnefr9Izh/J+xnBIM4Vgobaq+5GphWNDJeyb4g== X-MS-Exchange-Transport-CrossTenantHeadersStamped: CO1PR18MB4796 X-Proofpoint-ORIG-GUID: eychgyj0tGQhPicuECcr8Do6IVC-7Iu0 X-Proofpoint-GUID: eychgyj0tGQhPicuECcr8Do6IVC-7Iu0 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.391, 18.0.790 definitions=2021-07-31_05:2021-07-30, 2021-07-31 signatures=0 Subject: Re: [dpdk-dev] [EXT] [PATCH] compress/mlx5: fix level translation in xform API X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 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" > Compression Level is interpreted by each PMD differently. > However, lower numbers give faster compression > at the expense of compression ratio, while higher numbers > may give better compression ratios but are likely slower. > The level affects the block size, which affects performance, > the bigger the block, the faster the compression is. >=20 > The problem was that higher levels caused bigger blocks: > size =3D min_block_size - 1 + level. >=20 > the solution is to reverse the above: > size =3D max_block_size + 1 - level. >=20 > Fixes: 39a2c8715f8f ("compress/mlx5: add transformation operations") > Cc: matan@nvidia.com > Cc: stable@dpdk.org >=20 > Signed-off-by: Raja Zidane > --- This patch is not acked, hence not applied for RC3. @Thomas Monjalon can you pick it directly if it gets acked?