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 24D6F42611 for ; Fri, 22 Sep 2023 02:20:38 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 1E36C402DD; Fri, 22 Sep 2023 02:20:37 +0200 (CEST) Received: from NAM11-BN8-obe.outbound.protection.outlook.com (mail-bn8nam11on2040.outbound.protection.outlook.com [40.107.236.40]) by mails.dpdk.org (Postfix) with ESMTP id CB85640151; Fri, 22 Sep 2023 02:20:34 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Ffe3xgpbGZExIUiku3gJZyrooJiZhN8TEmmyI7EFq7kiKnTBE2lr39DPooZSBakhDWOWNkkP2VyZ1YOVL6MjljNTZN5+ppv8c8AfqH5tgmjS6LjxKQzHOIYJDuW9skLxqmz3JKqjWihLJ/tjHmcYBZjGw2ZIasHCGTC7v1ItCFLQMyTWn27XOXlbv62hloP8tp+DTijDaGl4D8UXOSPU304i2d34qiepUNY2OEyV/mVj2VuFd3f4kHNMnbVvzaQtMYBaj6YiPkFzal8hpPl9x9ZqPPs+uHJuehHZV45/+WsNoglJkJiyEQKFCmX+gXysTL9xzTOPri1kotSzN8yOhQ== 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-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=Ajh1ss7QRxxWvfzL62RZyHD7AEAyWrhoKpPFFbPmsqU=; b=AeACy0RYI6ZSK4+FJAXs8OUidb4OBEMgK082w52Y3dfxMOVbzS/EaIb/BBykKgRbSzPFJREHITjFmB0XqHBO+7zwqbLdluztKK+v/56pg9Yg1d8WeEGgxSuDSn1apMvLjrAhdK7+FgXfHvnu1+k1//bBfZkzrpY3yFBn9wEQM9QQpRQ/7yb8isqWQZZSUjoPX95gfC2DmGmChb2J8nbDXuH94l6L3+MA79fVp8QtR/tesrTpcSYWBEjot4gEiO3P0cj+hfY2IgsUIWMs7DFjB0rhBm/Kk9xs886gEyW3gLEIJKMyo124qmR7Mfp/YB2LcC8BE25bYyrYhK+YTUD2HQ== 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=Ajh1ss7QRxxWvfzL62RZyHD7AEAyWrhoKpPFFbPmsqU=; b=o30PJbP1CTjzOcVF2rZqNw+k023QTrckI4XO3pXTGhUEulQDQ3Uk/KR5SvK2bWy75RBkMw44mTLPXHYdz09+SvCkRvAxz3zRnm13o6hEYXr+yJnIifmuNJSfp3p86Rl7zvAzsv40wFd6WGCZztEyozvLaOoE82OaVOaDov4IgV6uFmLiLMdpCFNaMLyMheCIE4vVUOtMCdtrnlH0ewc+cb80DRq5QM3FTqPW6uq4OUnZ+gvJ2IRow+GCmIaU21dE3xk3VcHgPtITt9JkGoUW/Uz9aTXPhw1j8c23ng2+3fssqxObwetqIUaUWs8j1HX8gxs0pqskg5fBsKRS0V8huA== Received: from CO6PR12MB5396.namprd12.prod.outlook.com (2603:10b6:303:139::8) by PH0PR12MB8822.namprd12.prod.outlook.com (2603:10b6:510:28d::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6768.31; Fri, 22 Sep 2023 00:20:31 +0000 Received: from CO6PR12MB5396.namprd12.prod.outlook.com ([fe80::e896:3875:7236:4e23]) by CO6PR12MB5396.namprd12.prod.outlook.com ([fe80::e896:3875:7236:4e23%4]) with mapi id 15.20.6792.026; Fri, 22 Sep 2023 00:20:31 +0000 From: Suanming Mou To: Dariusz Sosnowski , Matan Azrad , Slava Ovsiienko , Ori Kam CC: "dev@dpdk.org" , "stable@dpdk.org" Subject: RE: [PATCH] net/mlx5: fix jump ipool entry size Thread-Topic: [PATCH] net/mlx5: fix jump ipool entry size Thread-Index: AQHZ14QiibYjhLghwk+xMbsPtLV+0rAmJcvQ Date: Fri, 22 Sep 2023 00:20:31 +0000 Message-ID: References: <20230825184330.3334318-1-dsosnowski@nvidia.com> In-Reply-To: <20230825184330.3334318-1-dsosnowski@nvidia.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nvidia.com; x-ms-publictraffictype: Email x-ms-traffictypediagnostic: CO6PR12MB5396:EE_|PH0PR12MB8822:EE_ x-ms-office365-filtering-correlation-id: 5a17a476-0456-44fc-27c3-08dbbb01bb0e x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: 8QbSCprnuuD9lgFBNUjkPkbBj+3Q1ROYTcfpCTv/E/qtdY9m3bFHTHQiRxkhMHxf/KyPGo96+PnihJ+wxsg/HGOlNG2vWXM5tG1NBX3hGa+v7o0y9ncnZ0G1ugka9e11ZDOz8L3URXKQdzrGf3bf+V1Zl9du2N8Hpc2jkoNa/YD25Ah/vYUlknTbqD+CvdPwc2aDo81LXbNm6tktX+++gYvJahN3s2oqmpn3ar5TLrVw7thc4c3KY8vT3eYRc0Eottnx+vyqbKpQ71OuJlRrylxQObwfWkP3Fv+04rTmqzBLCx6OThCH1/YeERpOIBGBXIN5huPBCbtyONQ9Y34GAKp91y9btYueU8D4wFQoR0bt3PH5NXpesXTp7kOWfBjIhEi6nORL4VDm4gyec8LpV2N+dvLG5vvCy1cv6qQaSrNmEspEQGw02H0R6iRu4cXsELHv0xff5bNJmTBO1y0B+wIYVofZME1gz1inJwUaWsDBuaHYK2+yYTnfoVinNBpn+60lNJViFVab3VmDs8htvXsWtsw3Rfoqr7DMNm/Ac3mZDbklScSRm6NUripd0oFxO/yy8y3CpYKpX8gkJNhigYh4RITOrV5j3P/3pTiHqP99IIn0V0K5cjvGO9A7XPm8 x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:CO6PR12MB5396.namprd12.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230031)(396003)(39860400002)(346002)(376002)(366004)(136003)(186009)(451199024)(1800799009)(8936002)(6506007)(478600001)(71200400001)(7696005)(4326008)(54906003)(38070700005)(122000001)(64756008)(26005)(66476007)(6636002)(66446008)(86362001)(76116006)(66946007)(450100002)(38100700002)(52536014)(5660300002)(83380400001)(110136005)(66556008)(316002)(2906002)(53546011)(33656002)(9686003)(41300700001)(55016003)(8676002); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?LNg+adrGni0Pc7OoUCvkmZHjFsAIBdKOQH/zZNE1jaE1zOYviT9l7EmlDFpS?= =?us-ascii?Q?05uuyM1wiQ5PVo+2iljNoBcyhwggrFp+DPX+yZ0FZTGpoctvFDQcI7lNHxCJ?= =?us-ascii?Q?6r6K7Kr/wRIRna99XCEKJZ2ShKuuvSLK/3PYfTLrYmjMTc054wlQEvqgthT6?= =?us-ascii?Q?NrGGTvzK7vmlHL3PHYPW2CVsCq+SkLO2Baf0CLG4mGGuQ8TehIjo3vnxwjQZ?= =?us-ascii?Q?lj6eAH0Jc0k1BDoJy2UxeT4MmmnKFY4VWJrr7X1dgAASFFboIcVoz/uv+DHd?= =?us-ascii?Q?DMpGTlnVBePM9jiaOGTpbqknCDsd0+wGe4F0ShDYUBkiafzQuAFe2C/g8toe?= =?us-ascii?Q?G/yeHCqHEyTtROP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5?= =?us-ascii?Q?VVxUhwOQd6DPj3regWU0JlJj96mcc89VwtcqOErtwUDd/EQP/NZ/3j1sQ3xV?= =?us-ascii?Q?kRp6rWhCtFQO6XQsnMj6Ark86pLJfxAQqQH6kGU9Q1SYSDGUsO0ltiHcf/GS?= =?us-ascii?Q?CYs8zRnoZW9Te+aLsteTPtZihdsCNlU0tvrMqy6EUqldH+p+POgU6MTYWxYo?= =?us-ascii?Q?pSBO0VQgZJABxYkLaqKA+6JGHiF6Lzc1gnh5sMT+z2YV+xkORxpxgBb4vSKD?= =?us-ascii?Q?giyOubdvZEqgwzDTMAZv46EhnOQsSyw0SExeujsN5d77x9RYMXPEYy+BTmmb?= =?us-ascii?Q?+WE0cnGKFLUVEjZ8gFXjhT2EKP4TjxFSeX4shsGb?= 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: CO6PR12MB5396.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 5a17a476-0456-44fc-27c3-08dbbb01bb0e X-MS-Exchange-CrossTenant-originalarrivaltime: 22 Sep 2023 00:20:31.0530 (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: obmH8SOmTtcFPxg1cOQinvUcPx3+uLV8V3sSmTqe1tnQT7IoGVia/Pkb1ihlOEoTzcsMA87OWsjb+tgNc+qH8w== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH0PR12MB8822 X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: stable-bounces@dpdk.org Thanks. > -----Original Message----- > From: Dariusz Sosnowski > Sent: Saturday, August 26, 2023 2:44 AM > To: Matan Azrad ; Slava Ovsiienko > ; Ori Kam ; Suanming Mou > > Cc: dev@dpdk.org; stable@dpdk.org > Subject: [PATCH] net/mlx5: fix jump ipool entry size >=20 > In mlx5 PMD, MLX5_IPOOL_JUMP ipool configuration is used to initialize th= e ipool > containing either: >=20 > - flow table entry when DV flow engine is chosen or, > - group table entry when HW steering flow engine is chosen. >=20 > Default configuration for MLX5_IPOOL_JUMP ipool specified entry size as s= ize of > mlx5_flow_tbl_data_entry struct, used with DV flow engine. > This could lead to memory corruption when mlx5_flow_group struct (used wi= th > HW steering flow engine) would have bigger size than mlx5_flow_tbl_data_e= ntry. >=20 > This patch fixes that. Entry size for MLX5_IPOOL_JUMP ipool is chosen > dynamically based on device configuration. >=20 > Fixes: d1559d66ed2d ("net/mlx5: add table management") > Cc: suanmingm@nvidia.com > Cc: stable@dpdk.org >=20 > Signed-off-by: Dariusz Sosnowski Acked-by: Suanming Mou > --- > drivers/net/mlx5/mlx5.c | 15 ++++++++++++++- > 1 file changed, 14 insertions(+), 1 deletion(-) >=20 > diff --git a/drivers/net/mlx5/mlx5.c b/drivers/net/mlx5/mlx5.c index > b373306f98..7c79cbb7be 100644 > --- a/drivers/net/mlx5/mlx5.c > +++ b/drivers/net/mlx5/mlx5.c