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 898BE4308A; Thu, 17 Aug 2023 07:06:23 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 67A0840ED8; Thu, 17 Aug 2023 07:06:23 +0200 (CEST) Received: from EUR04-HE1-obe.outbound.protection.outlook.com (mail-he1eur04on2041.outbound.protection.outlook.com [40.107.7.41]) by mails.dpdk.org (Postfix) with ESMTP id A6E4140685 for ; Thu, 17 Aug 2023 07:06:22 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=N2/swfIY82oDjJJJnzCT4hkZEH8NLDfXDcjs7gd+IklsTKKAYxPlMEixue8MUFG9pWJHzET7AEOlx8Uuylujr7ypRv7iEqljrvGSW21Y2No4Ru938lj9uhFeusJqMOE91kcBVmwvQPjm474/8UmQ/MPbKdhq3F4Q50mdGaUCRmxZ3ZLi2cLQLyuJjgh01ovNgeUmwN7ETlEYmp5QwSKbU7RPlxkSb6Os+qdcLuEth/uHSYxDiuLtNuEQ6JbuPjNfaQC9lv8ENaFBczy4g6I1iYT1kGZ7ahMqWHTEME0hfo2ge6evSQU/VvHwowESed7BDWhGtopIdas+6pOieXUnmA== 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=kmwLveU8cjfclcE6wTiW1tWT9wmyOH3y6aWI7l8cqWk=; b=FJQzcVWaspsFkbr4vFUsz+eBtRtSyoh4q7+ECt5g4QhDo3HCB7QuL7RZDqv8r14nJdyVXd8xtScwYag0WPMlUM9Z7jMVHIIOVLQLLMDXZx9dB9fu5ijASD1AruKt+3vbLae5K3cFLKlksPQIn8u3RaUQwVkLPyI0BPxEW4rtz+rDZkxc7MaBPZWys8HQzbeqUqxkyuPn/lAApqZ7YJz4KLmByb5uLzhaOWc0fr7lSiF94brguDBRvC6TgD4B5oxWtCr8eZ3+kA7RGg/oe6fqH090d11GJ7R2zQ2JpvAEmciVo75Qc2EjOrm/4sHMrwL/txNxM6PmUWANrZPmqog0hg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=arm.com; dmarc=pass action=none header.from=arm.com; dkim=pass header.d=arm.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=armh.onmicrosoft.com; s=selector2-armh-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=kmwLveU8cjfclcE6wTiW1tWT9wmyOH3y6aWI7l8cqWk=; b=YWt+8t9PfI3Xxe5vRvJDZqD16EatCzrGnJzDODMitR+2AYGKOD6HNb9QfIKuR2yrJ6H/xbOaczrT0yWGNa+kNnKH0cuE9TU0vv5cbm5BdLtpgYmAzXQ6NwAbZIzwlITgcD55NpZGir6Z4LeK/mWjR22inS1GwWYC49L3vWS8uv0= Received: from AM8PR08MB5810.eurprd08.prod.outlook.com (2603:10a6:20b:1d2::20) by PAVPR08MB9722.eurprd08.prod.outlook.com (2603:10a6:102:31d::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6678.26; Thu, 17 Aug 2023 05:06:20 +0000 Received: from AM8PR08MB5810.eurprd08.prod.outlook.com ([fe80::18ab:cc9c:3c53:f573]) by AM8PR08MB5810.eurprd08.prod.outlook.com ([fe80::18ab:cc9c:3c53:f573%5]) with mapi id 15.20.6678.029; Thu, 17 Aug 2023 05:06:20 +0000 From: Honnappa Nagarahalli To: "dev@dpdk.org" , Matan Azrad , "viacheslavo@nvidia.com" CC: Tyler Retzlaff , Wathsala Wathawana Vithanage , nd , nd Subject: MLX5 PMD access ring library private data Thread-Topic: MLX5 PMD access ring library private data Thread-Index: AdnQxsvoCzxwBK+4RuO3Q5bzZMsUvw== Date: Thu, 17 Aug 2023 05:06:20 +0000 Message-ID: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ts-tracking-id: 2CD11515CFA3D1479BB182BF9142C6EF.0 x-checkrecipientchecked: true authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=arm.com; x-ms-publictraffictype: Email x-ms-traffictypediagnostic: AM8PR08MB5810:EE_|PAVPR08MB9722:EE_ x-ms-office365-filtering-correlation-id: 4138c6f3-de24-4758-bb88-08db9edfb1d1 nodisclaimer: true x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: NVXM72S8nR7yLeRhYBGX0KI2LD8cmAqgnXQFQzv3w9B1lqXmPR0DsoCu2gMUFM+NNzKK/NjZUdOXjnjTYJR98ivlY9TBfROgWbLWfRnzBda+MJDAPoNdr9NhkYHUmLXYckZYoGRA6DFPGSs0NKajvlOKwi8Xn5VcxqQmoOIBVBWgD4k+Cv8C7UB8gt9HtQkYZjMAx0TeM4ETjyoYpSuxQWSzTig1LK/NND+oh/ylvVOrd0e5Qpfa0Ke96qLTVm4b/Zat36BqRKJJdQKWPUIg0DuO4Ltw4SRP7f6FmodbsolxEX1K84vs03S6nBZGg3+XBSiPvPSb4NgKzYEP5zfzYFqI03edx1IzipA854EfGjX5IaiPEUBv/fMzOx3O4/ynDgT8HN+RHKIUoTCIHGj8Bf0Q4n4MnAEiEwIZ1XedutAflF2M0PenvSUebAidG+rOxoDVuGM/8JrzG4BWjoA4ryiKRNC6FsuWAGeEpU+URLA7GyoNOChpjN7BparUbCzBepxeJoLTHomOQRYIASlZLOZniMfK/G/ygju2sKPN9IvAMk7s81zUiN8ljYUz3J9biy9VlNYhsCfi+4sRhuOcl3cC3c//7mpYxFIoxQls6VMKVjQqEmKOIK5sb7j287q7 x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:AM8PR08MB5810.eurprd08.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230031)(346002)(396003)(39860400002)(376002)(366004)(136003)(1800799009)(451199024)(186009)(316002)(110136005)(54906003)(66946007)(66556008)(64756008)(76116006)(66476007)(66446008)(122000001)(5660300002)(41300700001)(52536014)(38100700002)(38070700005)(4326008)(8936002)(8676002)(2906002)(4744005)(83380400001)(55016003)(478600001)(86362001)(9686003)(33656002)(7696005)(6506007)(71200400001); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?x1IcGWfLs1MTd6PQ4jWTsPCx2A4RSbm9x7UXV3CRhvrqwHWwYNGLuGQ76/Ck?= =?us-ascii?Q?cGeKmMgrpnR7LjcOiYE6UBOuYmjpgzJy6K58pUNs6LAlb+sOlsVkjZQ9jcR7?= =?us-ascii?Q?UBKggCVrP9m54+vSthGLhDb3QBfSmKIPoib8u4Kt3ieUuK39lA7IXfpLZ9iJ?= =?us-ascii?Q?ANnpnPR9MXJEYL524ids7GmafV4h3RcJPQEdvtDrGlji/Xr8R7D8gABetAY9?= =?us-ascii?Q?BSwoSmE1lqht1kPhKrA8NQ8W7lCPaaNkyZSE3RbH0QSh2VbesvDghymgqJMs?= =?us-ascii?Q?PhcANI59fk/TOy9FbeK4WNLlJ92uYUg7d3sU/ePG0A1zlOI+6naQcOaNcjQR?= =?us-ascii?Q?wW7pgfI6MNbJcVBtxnPOgXHp0/73Lw92FVyXyc5sqqKuPW2ls//Qr9uUvQvo?= =?us-ascii?Q?1j0R9EV8jbr6Nfxnm58R8yazQT8Q6f7J4vicd9/wF8hUBDS0FlcN0fnB/NM6?= =?us-ascii?Q?anP9uN2sERlGMsevqGjbrYvu/bzkDr0k4j8QIG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W6GjqVG4VszEmQin0H3e3pRmhkUTRd2ens1SDhqtTYUjXwAKj1Diqll?= =?us-ascii?Q?tLxQWg/xWvUCS8X4HXmxnArD7JHGWw8uRmWorX9Dsbdln8UeuS6Sf1Ux9nkI?= =?us-ascii?Q?bAzyHZZuX90dhWqMh7D3pvQva0wnkPPLwxnL1H84A6a3jytp3oP6GSMFLhb1?= =?us-ascii?Q?stgyPPO0BV82scP61JrNztj7ljxgkcYSzZNMg0Iy?= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: AM8PR08MB5810.eurprd08.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 4138c6f3-de24-4758-bb88-08db9edfb1d1 X-MS-Exchange-CrossTenant-originalarrivaltime: 17 Aug 2023 05:06:20.0880 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: f34e5979-57d9-4aaa-ad4d-b122a662184d X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: cDTn6/yCkveGfsMhZXqsIreRoCoMIayCFGYI9ja5ugy6VPWAHz0Os58D1duu++mW0ZIu+1nsComagf/k/QLOTOFuSLy9cRPpSjY4P1+au4Q= X-MS-Exchange-Transport-CrossTenantHeadersStamped: PAVPR08MB9722 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 Hi Matan, Viacheslav, Tyler pointed out that the function __mlx5_hws_cnt_pool_enqueue_revert is = accessing the ring private structure members (prod.head and prod.tail) dire= ctly. Even though ' struct rte_ring' is a public structure (mainly because = the library provides inline functions), the structure members are considere= d private to the ring library. So, this needs to be corrected. It looks like the function __mlx5_hws_cnt_pool_enqueue_revert is trying to = revert things that were enqueued. It is not clear to me why this functional= ity is required. Can you provide the use case for this? We can discuss poss= ible solutions. Thank you, Honnappa