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 E641942366; Wed, 11 Oct 2023 18:44:00 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 732DE400EF; Wed, 11 Oct 2023 18:44:00 +0200 (CEST) Received: from EUR04-HE1-obe.outbound.protection.outlook.com (mail-he1eur04on2087.outbound.protection.outlook.com [40.107.7.87]) by mails.dpdk.org (Postfix) with ESMTP id 6A8AB400D7 for ; Wed, 11 Oct 2023 18:43:59 +0200 (CEST) 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=zUz35e1B/+4blmzZVTnqaXfUvs1gaKcJflrbdMXkL5E=; b=PrDZYpO0qJgbyMe6AGyvli++mD7ppT9rue/Dl3P+kR7dfUqi0PLBLII/zspHTjP1ArB/RrVp6SxGHlNtS5ZqwQbaBleAg8vV2GNJumfQYrNb1h4qPBA7JX5Piiodmy4VSrnCJ3FcQEwKCJFg5SlgOtEfcrBq1RrKTxJj3M1qmpY= Received: from AS9PR06CA0292.eurprd06.prod.outlook.com (2603:10a6:20b:45a::23) by AS4PR08MB7578.eurprd08.prod.outlook.com (2603:10a6:20b:4fd::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6838.41; Wed, 11 Oct 2023 16:43:54 +0000 Received: from AM7EUR03FT046.eop-EUR03.prod.protection.outlook.com (2603:10a6:20b:45a:cafe::d1) by AS9PR06CA0292.outlook.office365.com (2603:10a6:20b:45a::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6863.33 via Frontend Transport; Wed, 11 Oct 2023 16:43:54 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 63.35.35.123) smtp.mailfrom=arm.com; dkim=pass (signature was verified) header.d=armh.onmicrosoft.com;dmarc=pass action=none header.from=arm.com; Received-SPF: Pass (protection.outlook.com: domain of arm.com designates 63.35.35.123 as permitted sender) receiver=protection.outlook.com; client-ip=63.35.35.123; helo=64aa7808-outbound-1.mta.getcheckrecipient.com; pr=C Received: from 64aa7808-outbound-1.mta.getcheckrecipient.com (63.35.35.123) by AM7EUR03FT046.mail.protection.outlook.com (100.127.140.78) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6886.29 via Frontend Transport; Wed, 11 Oct 2023 16:43:54 +0000 Received: ("Tessian outbound fdf44c93bd44:v211"); Wed, 11 Oct 2023 16:43:54 +0000 X-CheckRecipientChecked: true X-CR-MTA-CID: e97c39b3e7f464b7 X-CR-MTA-TID: 64aa7808 Received: from d2f49d3ab1d2.2 by 64aa7808-outbound-1.mta.getcheckrecipient.com id 66540AE2-0EAF-4FAB-9FAA-9F8311362C16.1; Wed, 11 Oct 2023 16:43:47 +0000 Received: from EUR05-DB8-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id d2f49d3ab1d2.2 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Wed, 11 Oct 2023 16:43:47 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=DyuzFqKLngfcaFC/rCfKuDhqRc6FJzYykcjW4Btat2w3sStYD0IIgmlJuCwP57mfXKkfG8TSHtWX9Q18D3zUE1+IRcsiwKG2gEejSjgwuMQUvsw9WbnKPLADgUDS57rgXkAYOrbnzzjDKDjcDFhL+XqOqgkUSD8VU8xgA8/+qGX5+R7cOAeNWs/ddtZqZMQk00vKYe68KU8eeWi85vZVuQHe0EZG05Pu7I7i1rNOZOn0GOoCnnPt9TcYvqehtUbmvO387fSh5BqTXVUpgl2KhHclDRhJu0z1B8ir/vrVgL5ZmJZ9phE4oIwCiyfq5Oawa0+DlRi5GS7W+ZFipQMlcg== 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=zUz35e1B/+4blmzZVTnqaXfUvs1gaKcJflrbdMXkL5E=; b=MFAnXeb0OhzItr7otAOvR13rjT6ozhfXUVJhfVLRxdw6Wo6JBSlLpNpl2tWZlt6oJ3LJWn2mIuD6ecu6Jbdfo+4UTzRUfzoCNFMFpgKrJIgNqnBedlFytSNN0GnBMn5fW3wH2NWE5mqTIOFcAgs27IAQMLNSYJHXZkEAqVFucpJEiCFEUV5PgxmGujZ3cF8juZfsZsvtGyB+5JkgJ/lr1ZJee6jonIHxIOiVDRoRkuRPKcmIqsuYZghUjVQnPLcLjacg8zif5SSniwvzcw6xh24GFvz6H782UIPOo3c3KDNO4wV6UzN0LjjVjaPi46qx58b8AgzWJ9k1RH6Re88O7w== 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=zUz35e1B/+4blmzZVTnqaXfUvs1gaKcJflrbdMXkL5E=; b=PrDZYpO0qJgbyMe6AGyvli++mD7ppT9rue/Dl3P+kR7dfUqi0PLBLII/zspHTjP1ArB/RrVp6SxGHlNtS5ZqwQbaBleAg8vV2GNJumfQYrNb1h4qPBA7JX5Piiodmy4VSrnCJ3FcQEwKCJFg5SlgOtEfcrBq1RrKTxJj3M1qmpY= Authentication-Results-Original: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=arm.com; Received: from DB4PR08MB8151.eurprd08.prod.outlook.com (2603:10a6:10:381::16) by VI1PR08MB10276.eurprd08.prod.outlook.com (2603:10a6:800:1bd::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6863.41; Wed, 11 Oct 2023 16:43:45 +0000 Received: from DB4PR08MB8151.eurprd08.prod.outlook.com ([fe80::7e:f225:af56:ae16]) by DB4PR08MB8151.eurprd08.prod.outlook.com ([fe80::7e:f225:af56:ae16%5]) with mapi id 15.20.6863.032; Wed, 11 Oct 2023 16:43:45 +0000 Message-ID: <5cc7cb13-28e1-4c09-a08d-ce4d19e78e8f@arm.com> Date: Wed, 11 Oct 2023 17:43:42 +0100 User-Agent: Mozilla Thunderbird Cc: nd@arm.com, "dev@dpdk.org" , Kamalakshitha Aligeri Subject: Re: [RFC 1/2] eal: add pointer compression functions Content-Language: en-US To: Honnappa Nagarahalli , "thomas@monjalon.net" References: <20230927150854.3670391-1-paul.szczepanek@arm.com> <20230927150854.3670391-2-paul.szczepanek@arm.com> <22038988.EfDdHjke4D@thomas> From: Paul Szczepanek In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-ClientProxiedBy: LO4P123CA0638.GBRP123.PROD.OUTLOOK.COM (2603:10a6:600:296::18) To DB4PR08MB8151.eurprd08.prod.outlook.com (2603:10a6:10:381::16) MIME-Version: 1.0 X-MS-TrafficTypeDiagnostic: DB4PR08MB8151:EE_|VI1PR08MB10276:EE_|AM7EUR03FT046:EE_|AS4PR08MB7578:EE_ X-MS-Office365-Filtering-Correlation-Id: f5fa2b59-c276-4a40-b24d-08dbca7941b7 X-LD-Processed: f34e5979-57d9-4aaa-ad4d-b122a662184d,ExtAddr x-checkrecipientrouted: true NoDisclaimer: true X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam-Untrusted: BCL:0; X-Microsoft-Antispam-Message-Info-Original: X1LyGe6wNuAeWxhKlZhHxYj1UAY1t6V+lhnap+q8bkTej3AN4Nogd9kSQkRjeFEDnKtu9vKkZLecfHPyrai6kbZIB+NCKY/kb8ryqIUSyQ+ewixVxqoLEa1UG/aNdFNxjKcDudEuo8dRa+P8EA6UA1YTBzCuE0/j1MUnmr960pZUO8aNxhI4Vl8U24NQ2ru/Ekmq+73A04pw7tZa1NPaEDszUzs7KAaHS0ptd6Pwhi1eCVet2QdfwPDzSyRqi+eGlrw/H7ECiAy6DDAfpiY/aZlM1pP7AE9/83YOs6vK0cww/IEBf5RNhorHTe7zdOQ11wQoxMZO2N+tJf/fswYfD973ewo1eSRWYtWhS2cY/Ub3kMlnmoGeLTUgrR0y9MyOi7hlkfUUiR33G9p7/z5FCdx0lKkGbns93wCO8cC/ucjn+2krxRxdGffODIrg9wNBt5/P590IYL3mHclrOZe2RhDwIzQoDjuUx4rG57LgXN4UARdOOAkyoHixf/SWZJH9TCtg8vO7U6J1PePec/6euY0G3Y/ZKSyVmVuy5pvWrH2lO2xkJy04Q04Au7JVuzNGxt16Gn9PxsaiEyEm0X5YneMFUzqQtoNUrj0w+xj4UWeOiBeRIvzIpYpYMsOcwJ/5uXZzca3oznrN/KCmYznMpQ== X-Forefront-Antispam-Report-Untrusted: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DB4PR08MB8151.eurprd08.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230031)(396003)(39850400004)(346002)(366004)(136003)(376002)(230922051799003)(186009)(64100799003)(1800799009)(451199024)(2616005)(41300700001)(478600001)(31696002)(66946007)(66556008)(66476007)(6506007)(110136005)(54906003)(53546011)(6512007)(316002)(86362001)(5660300002)(36756003)(83380400001)(26005)(6486002)(31686004)(8936002)(4326008)(6666004)(8676002)(4744005)(44832011)(2906002)(38100700002)(45980500001)(43740500002); DIR:OUT; SFP:1101; X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR08MB10276 Original-Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=arm.com; X-EOPAttributedMessage: 0 X-MS-Exchange-Transport-CrossTenantHeadersStripped: AM7EUR03FT046.eop-EUR03.prod.protection.outlook.com X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id-Prvs: 3eb90718-b26a-43a5-70d7-08dbca793c0a X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: Fbh5NlZFzquc0FOPQ6qtWG6S01I7ivLxGQ03pDBeE21VVX2V7VwbhgBcgKKwizwO60sJtt+G//jGzY0M8htMF3uMWV1N83CEJYs3oW6iHXNkvI2l6gVYZGoPTXrCZusJGDbxieKpmkZaJO/v1RNyp2QcFZk/RYwrVZu8GIzVOMuTV2efZYvuI4USE1Q0U0MTGnQ9lH4vzpRl7p2LlhkPDZ77Ez9V3NxUpiPXGpieXo+BFUA3rxcdbf7+Lq5zaTE1n4u8xwAk67mrXw86cQnvm1z2me7dUXxyWDgs3TKHXlTaKlDgiSpmLfToCQkjpLuzVbk20xk/c5H+yoQ/VAgmJ28trE+/RmanhAheVfCWC4fAA+06cDayC55fa4IGKWWtikNBlLDHCb+pvxdzxvp5XgIHE9kRjb66x8IQM4WKC/FBxIUBOuUW3TDAtt/KxixdpOstaEOs/ChamCJggP/wvb/swxkXF3p/HSe/mssZCQkGS1dxvEriDXldrLiz/9MsqaMHwWHjudl+g8I0AgUWPWnH1ToD2ZEBfLMqQD4+N4nclSvWBA32nCq7/oy7JNito5CJGjr5hRvwZ31WtFgz8+iLBomiq1yBNEuMWvXw0ZU9my34c4rxr3rcCtFqWkksBnCBj9vvrUZrmv74mPbyAV+SOU0W9ZN9lsvWY+VA9CLZN2BSZfVxXGV347Jm9kThJRVkf2M1XW3HTaApnTi9ivKT4ArIm6Jv39/+cPLlREX+F3xOf+y9y7YiU4oQmu/J3mBDOM9kVgLpk4BwxQBjaA== X-Forefront-Antispam-Report: CIP:63.35.35.123; CTRY:IE; LANG:en; SCL:1; SRV:; IPV:CAL; SFV:NSPM; H:64aa7808-outbound-1.mta.getcheckrecipient.com; PTR:ec2-63-35-35-123.eu-west-1.compute.amazonaws.com; CAT:NONE; SFS:(13230031)(4636009)(136003)(39860400002)(346002)(376002)(396003)(230922051799003)(451199024)(64100799003)(82310400011)(1800799009)(186009)(40470700004)(36840700001)(46966006)(6512007)(40480700001)(47076005)(4326008)(2616005)(336012)(40460700003)(36860700001)(26005)(83380400001)(316002)(70586007)(110136005)(54906003)(53546011)(70206006)(8936002)(5660300002)(82740400003)(2906002)(478600001)(41300700001)(8676002)(4744005)(6486002)(6506007)(44832011)(6666004)(36756003)(81166007)(86362001)(31696002)(356005)(31686004)(43740500002); DIR:OUT; SFP:1101; X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 11 Oct 2023 16:43:54.4843 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: f5fa2b59-c276-4a40-b24d-08dbca7941b7 X-MS-Exchange-CrossTenant-Id: f34e5979-57d9-4aaa-ad4d-b122a662184d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=f34e5979-57d9-4aaa-ad4d-b122a662184d; Ip=[63.35.35.123]; Helo=[64aa7808-outbound-1.mta.getcheckrecipient.com] X-MS-Exchange-CrossTenant-AuthSource: AM7EUR03FT046.eop-EUR03.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS4PR08MB7578 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 On 11/10/2023 14:36, Honnappa Nagarahalli wrote: >> -----Original Message----- >> From: Thomas Monjalon >> Sent: Monday, October 9, 2023 10:54 AM >> To: Paul Szczepanek >> Cc: dev@dpdk.org; Honnappa Nagarahalli ; >> Kamalakshitha Aligeri >> Subject: Re: [RFC 1/2] eal: add pointer compression functions [...] >> I see it is providing some per-CPU optimizations, so it is in favor of having it in >> DPDK. >> Other than that, it looks very generic, so it is questionable to have in DPDK. > We had it done for mbuf pointers. But then, we thought it could be generic. > > Right now the API results in 32b indices. We could make it generic further by allowing for 16b indices. 8b indices does not make sense. To add to this, this being generic is I think a good thing. I think it belongs in DPDK as it will make it easy for other architectures to add their versions and maintain the abstraction.