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 A2142A2F6B for ; Tue, 8 Oct 2019 13:52:17 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 67CDA1D161; Tue, 8 Oct 2019 13:52:17 +0200 (CEST) Received: from EUR02-VE1-obe.outbound.protection.outlook.com (mail-eopbgr20046.outbound.protection.outlook.com [40.107.2.46]) by dpdk.org (Postfix) with ESMTP id CFF6A1D161 for ; Tue, 8 Oct 2019 13:52:15 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=UF5XWj4QL8lucsUCggM9XxoQxgNiOc6tkKBovved2H1/wy8qmKybGcsC92wzJaXERv6tFrH9bVoWJQa3RewN9M3dQTCPG3n5ogE0TdgLYLJX26F6MwSM7SpvIgVlAlvYqKAWizf4yxdfPkYER5AZbcRdJH/vyWWEKWgXZumIGOht8uZcGr1aUa88SYKytSY+DmrVfZD3Gbqtd3yCSvonooKRxX/gx6WFv1g1NiMSgXC0CbuvPj70J8IhtU86h9uHGsyywqaV4FwuJD40UANQ39GBA2VWfYxNJogbCX/tvZEX64QwwF4yjcbyfEazZjsYMIc1mCfCnk7muq7SBhihjQ== 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=9iLUVM8hecGBUes9+rB7akwV4AJ2VyAsiOjPX7BPytY=; b=dMfuenqAQdP+eCedJNlCExojqMf36Ew4YCxsacvHHif3bmegATo2m/3scrAQWDbKtmUtKsPbQl/tsIUtAVy0K5CXNtSQRcn41hmFtgQxwSzkL8no/nC34L9qCo0/GGsCU3pIUhG87G/oB2l5fRDevqOZaUyNsGJnxpKBqrm2sA6SIryz61PXbUxlYa7/oAyMv3EFecXQv5zHvUCulZf9aRZf+c4vc4q1qOPN5KkqyLOHwZmnUGb9EOWkrPK45vCRhoTD0EuVgOHqE39fQJT8kQNeaA0rBur55kj/UGJ44go/wzrGD9AQwG+Maw0HHbCun4M7xBHIs3rUMnNGepaSCw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=mellanox.com; dmarc=pass action=none header.from=mellanox.com; dkim=pass header.d=mellanox.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Mellanox.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=9iLUVM8hecGBUes9+rB7akwV4AJ2VyAsiOjPX7BPytY=; b=MhZjBZZ7pKo5ahLmZveEFhGcmq6MNONCeOhfnXxqoMZyaBzUyTbgT0MUbWvoJCpzRnE3+V99dq7A5DFMliYD1X0j6vJFNSKKrp3gVzGNhDGT+OI6/SpUOIWMm6MN+8VfzQmCY9tqRSljc8NV11DdWe0XHShdtrmfaveO7QJj+RM= Received: from DB3PR0502MB3964.eurprd05.prod.outlook.com (52.134.65.161) by DB3PR0502MB3963.eurprd05.prod.outlook.com (52.134.72.22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2305.23; Tue, 8 Oct 2019 11:52:07 +0000 Received: from DB3PR0502MB3964.eurprd05.prod.outlook.com ([fe80::1528:69ed:ffec:764b]) by DB3PR0502MB3964.eurprd05.prod.outlook.com ([fe80::1528:69ed:ffec:764b%5]) with mapi id 15.20.2327.026; Tue, 8 Oct 2019 11:52:07 +0000 From: Raslan Darawsheh To: Ori Kam , Matan Azrad CC: "dev@dpdk.org" , Ori Kam , Dekel Peled Thread-Topic: [dpdk-dev] [PATCH] net/mlx5: fix the alloc size of rqt attribute Thread-Index: AQHVdFRUrYYe5peYb0q+Pt2cgMOtcKdQtM1Q Date: Tue, 8 Oct 2019 11:52:07 +0000 Message-ID: References: <1569493335-44790-1-git-send-email-orika@mellanox.com> In-Reply-To: <1569493335-44790-1-git-send-email-orika@mellanox.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: spf=none (sender IP is ) smtp.mailfrom=rasland@mellanox.com; x-originating-ip: [212.29.221.74] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 4fe604c7-241c-4ef1-ee17-08d74be5f233 x-ms-office365-filtering-ht: Tenant x-ms-traffictypediagnostic: DB3PR0502MB3963:|DB3PR0502MB3963: x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:7691; x-forefront-prvs: 01842C458A x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(4636009)(366004)(376002)(39860400002)(346002)(136003)(396003)(189003)(199004)(13464003)(64756008)(6636002)(55016002)(71200400001)(446003)(25786009)(6436002)(71190400001)(99286004)(66446008)(476003)(2906002)(66066001)(8676002)(66946007)(76116006)(4744005)(14444005)(6506007)(53546011)(9686003)(81156014)(81166006)(316002)(6116002)(256004)(5660300002)(11346002)(66476007)(7696005)(8936002)(478600001)(33656002)(107886003)(52536014)(186003)(7736002)(76176011)(66556008)(14454004)(74316002)(102836004)(229853002)(54906003)(110136005)(486006)(86362001)(3846002)(26005)(6246003)(4326008)(305945005); DIR:OUT; SFP:1101; SCL:1; SRVR:DB3PR0502MB3963; H:DB3PR0502MB3964.eurprd05.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A:1; received-spf: None (protection.outlook.com: mellanox.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: Tx49aNj8lgGz+hXX5UR4Zwbhj+86eGRp4KY2FpkBg1GpsUdT51wX5KqJW73CIFh34TyI++XgWr3RacsON2c4oY8GINdIDcpBlDD+2HpT5hLZRSTfiZ/oY8YxaAEFGsv3c9yUYMtUHRu4SjK/ktuqJqUlGax8COFjiP1prfXxi2y0gtjRnIZrtltckPeyOlD+xQn7+tKv1R8G7zcVeCntFVszKpRgEIJl/w7Ik6vZaXbriLxyYGphWqATwe0IniSWfvrFuLaA2uBfB/xD0rPpmOcXcxX2TCy0wvYY5Ag010G9TZ1w2V5EBTASiRzqRXxRsLMJExEHZy8NYgeS/Aer2oWDXikEDq32Xlen4W9KpYnxTqu8Y2SZxWA9ZHifkJKePFc7ffic3MhS5HlXuHsBN6HdPTfKugC9bGhwlcPlx3o= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: Mellanox.com X-MS-Exchange-CrossTenant-Network-Message-Id: 4fe604c7-241c-4ef1-ee17-08d74be5f233 X-MS-Exchange-CrossTenant-originalarrivaltime: 08 Oct 2019 11:52:07.8658 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: a652971c-7d2e-4d9b-a6a4-d149256f461b X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: ENEu39ohk2M2wvl195yZS1JNFhyNmEo7Fy/2LsbhCwqFBvgw+BIJ+G4en6g7vxv+hwQjtL8WLhm9v/+wjC50iw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB3PR0502MB3963 Subject: Re: [dpdk-dev] [PATCH] net/mlx5: fix the alloc size of rqt attribute 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" Hi, > -----Original Message----- > From: dev On Behalf Of Ori Kam > Sent: Thursday, September 26, 2019 1:22 PM > To: Matan Azrad > Cc: dev@dpdk.org; Ori Kam ; Dekel Peled > > Subject: [dpdk-dev] [PATCH] net/mlx5: fix the alloc size of rqt attribute >=20 > The receive queues list size is based on the size of uint32_t, so > when allocating the memory, the correct value should be used. Or > else there is risk to corrupt the memory, depending on the queues > number, because there is some pad area for alignment. If the queue > number is not large enough, the issue couldn't be observed. >=20 > Based on Bing fix. >=20 > Fixes: dc9ceff73c99 ("net/mlx5: create advanced RxQ via DevX") > Cc: dekelp@mellanox.com >=20 > Signed-off-by: Ori Kam Added Cc: stable@dpdk.org Patch applied to next-net-mlx, Kindest regards, Raslan Darawsheh