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 6C2ABA034F; Mon, 7 Jun 2021 09:28:54 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 56809410E4; Mon, 7 Jun 2021 09:28:54 +0200 (CEST) Received: from NAM10-MW2-obe.outbound.protection.outlook.com (mail-mw2nam10on2063.outbound.protection.outlook.com [40.107.94.63]) by mails.dpdk.org (Postfix) with ESMTP id 229B040041; Mon, 7 Jun 2021 09:28:53 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=VnP88TeLe3eI+pImoB/+OswFhHs1ioo5/QkOWMIzo3XylAAfb8eEHnj7kQLU6aRjxFDd7FM8Gk7TopQEZR26adnKwEc1YiFsibvooFDYXXaiHFvQQjqoylllleq1ExuYO1oRplxA4IuBeaCcChg/n8yejoqCFxVhNTrEaOd4dMf+7zyoy6smDkbYFktnB+FLHK4XoBVe4j47m+MTkuyz0K5sCfK0mVAUQMDSHKPeUfvqGOhFQUH7LmIxgrktVfMgytqIdmxzCR7mS0zf5XP1re6qT+orsy1hmpHaPBarzyjwzViD0Et1mxDpuWftzHtaxHifyCji6ft888BCvnoiEQ== 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=qMokc7HWKb1jg9fh4sWEb7dDg5Z0AujEp2cyFJpOqdo=; b=I8pwEK9uYYrkjkO9ZohWWemq1O5cB1vBWokJCjiHomsktYB9L8cmekHbjiHtNnNwzFTAtbMgQ/FfLTzCogYLkAIm8Zahd339Kq0ytN3C+fedz+8A6yyEjRpm0rTwLj47BPXw2fRA/lPZ3m1nrBOpdjOznH67gHJIi3IP+CJrLNC4cFuZ+HbVKdgb97LSq09KgC3Xq9odyRzzoyfl1dUNOqOAX5VV7fNQkVnyRlCFMUY6BTMuPpQ2R1bIj5jOomgQ03ffPipVslAYxLO7ND/+eYznV91N+PGaBhDwK6uZeybQCiR2Hz2wElaAAbEw1vCvOcZ+W0BosDUehVDw6lKkdg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nvidia.com; dmarc=pass action=none header.from=nvidia.com; dkim=pass header.d=nvidia.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Nvidia.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=qMokc7HWKb1jg9fh4sWEb7dDg5Z0AujEp2cyFJpOqdo=; b=CtBQNEOJeN+0KSg9aWCwxR62R9JtRlkFdNXgWxZlNmvg3c6EX/FHEUNG1WRNMmhDs7O8iI4nDjUQPgiSN3SP5dVaqIG5/6Hhtznf9vKxWl9ubDa/CMm/3yfi7uzKILMZtzBjfwI4BMoKM/CPZ10LudvwSh3IALAEqDlVP8K+XYkQ9qCKJosVv66pnBvJf4Kl33kzWCyUx3zrJPLTcJ228FI8cMxLcH40/Tll9YPiLjEysuNdMf5LPnCih7odiuCXsvE5WnMk8Nkym6kGsWnqWUsnN0Rp1z6j2Mv0/mtU6bBHnQCBRbzvz5AqZSmUWDUQ9pYimSzkFn3DOKxt/tfYIg== Received: from DM4PR12MB5389.namprd12.prod.outlook.com (2603:10b6:5:39a::7) by DM8PR12MB5432.namprd12.prod.outlook.com (2603:10b6:8:32::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4195.20; Mon, 7 Jun 2021 07:28:52 +0000 Received: from DM4PR12MB5389.namprd12.prod.outlook.com ([fe80::70df:ef1e:d98c:ce4]) by DM4PR12MB5389.namprd12.prod.outlook.com ([fe80::70df:ef1e:d98c:ce4%6]) with mapi id 15.20.4195.029; Mon, 7 Jun 2021 07:28:52 +0000 From: Matan Azrad To: Michael Baum , "dev@dpdk.org" CC: Raslan Darawsheh , Slava Ovsiienko , "stable@dpdk.org" Thread-Topic: [PATCH 2/4] compress/mlx5: fix constant size in QP creation Thread-Index: AQHXVrVnJoSZ8KVMSk2c7N+FqnnooKsIMARg Date: Mon, 7 Jun 2021 07:28:51 +0000 Message-ID: References: <20210601071122.1612432-1-michaelba@nvidia.com> <20210601071122.1612432-2-michaelba@nvidia.com> In-Reply-To: <20210601071122.1612432-2-michaelba@nvidia.com> Accept-Language: en-US Content-Language: en-US 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=nvidia.com; x-originating-ip: [193.47.165.251] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: a45ff921-0673-4ada-f932-08d92985e647 x-ms-traffictypediagnostic: DM8PR12MB5432: x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:2958; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: htKZ21tnbVlcGlh0D+SEqQZvYmcSXqkXwyx6sSGFJx75apQziNb3QeBqjXQwf3T6IAbo0QvwkwcB9f7uLbcgvsZB3mRnetiO32eC/xLA5f4xinNf7ZXx1UzXraXU40EWcau0CGZvQlNmj8tmdvD1Gc6xM691XRsAwM+q2kBo4Bb4bBMeCuTtmfcNUHStmb17DoeFE5MpAV3La0xis/Fd7BAFQMWOwLt3A4I9jiMXRMIFOhHsDzWXgzL/53q0/Iit6D9yf6032McKaHlprTBsjFHqZF66cz/i6Df7Q7wadc4wO5sG9cutcXE0P1axV0W+wnL8VEuycxwwOyNpfJOcupFudDsSwuWQQ1ojJ9H+XApmOE+IEN4oa3qtOUhIfxjRufoVpw9TYFClnF+vaOF/AWxtBabZD83AufyFJSTbU+M8cvSLlUnUpJArzJ6Xu7BapE1VNmD7kRvSCW5T8RnAZVYsarFCnMmigoQ+YdmJdVqQ0ii8uFVVHGfBKBWeO/HwGf0p8E2MJDRJarw4t2yerjh0ItO4xBqV+KI8GtQmVORG++LlFbFjKAuTps6f/H5wpYFne2wP3zZtTiR+SyR535P1i3a2r8k27dIh0b4lpfE= x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DM4PR12MB5389.namprd12.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(346002)(39860400002)(376002)(396003)(136003)(366004)(55016002)(66946007)(64756008)(66446008)(71200400001)(66476007)(66556008)(5660300002)(8676002)(7696005)(38100700002)(52536014)(122000001)(54906003)(8936002)(6506007)(86362001)(9686003)(76116006)(26005)(186003)(33656002)(450100002)(4326008)(2906002)(478600001)(316002)(110136005)(4744005); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata: =?us-ascii?Q?L/V3Sc1eaLgpKhy81mRl/SbTGirOREc1llIJ7co5Yro6j9Ai8LLXoZ3RUV63?= =?us-ascii?Q?iUbvcIfJs4/6M2tRjcrcwc1IgsuU8wFdMTcdNizVHBeuCx0ZVlV0w8Jd3r0I?= =?us-ascii?Q?N1p2Ow3qwvzSSRGejeVUlovKpvCS1Kptv7ProrbAxtgC6pn82GAzjo60+E7w?= =?us-ascii?Q?xZD+IawatJ3K+z0QJev1JAEdldAObujzrWrVsZqiFkd2rhBv+1hQyF8Dmkis?= =?us-ascii?Q?7PmZemXscSumrwwi8BcI0AQzcmn4STkC5dXsOX5V48AHtXNnjsdZbm28TryT?= =?us-ascii?Q?Ul4tih+iHFkbpMZLL3EkSZKMVprCt68eYvaNFt/h2x1+3QifFtBpMXQBNINR?= =?us-ascii?Q?jhLj9gnkr7y+5sLKCwElhAoaR0fNBo2acTHu2ik3e9m6j6sdNr0gGLKpSLNz?= =?us-ascii?Q?+wqj2v4D0KNEBzfFg/sF2Ih5fWy2lJjBazItrAIppybDQpxEtNeUND4H6IfU?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XMqdwlYbZy?= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: DM4PR12MB5389.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: a45ff921-0673-4ada-f932-08d92985e647 X-MS-Exchange-CrossTenant-originalarrivaltime: 07 Jun 2021 07:28:51.9316 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: aSQESwM60VYdcE7m19IO0pmhyyfEolrf7QxTTac0VeUHPx/UoBXO+dpPsqjDrydbrr16mxf6afmturMZIj6DLQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM8PR12MB5432 Subject: Re: [dpdk-dev] [PATCH 2/4] compress/mlx5: fix constant size in QP creation 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" From: Michael Baum: > The mlx5_compress_qp_setup function makes shifting to the numeric > constant 1, then sends it as a parameter to rte_calloc function. >=20 > The rte_calloc function expects to get size_t (64 bits, unsigned) and ins= tead > gets a 32-bit variable, because the numeric constant size is a 32-bit. > In case the shift is greater than 32 the variable will lose its value eve= n though > the function can get 64-bit argument. >=20 > Change the size of the numeric constant 1 to 64-bit. >=20 > Fixes: 8619fcd5161b ("compress/mlx5: support queue pair operations") > Cc: stable@dpdk.org >=20 > Signed-off-by: Michael Baum Acked-by: Matan Azrad