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 7878EA00C5; Thu, 28 Jul 2022 16:46:31 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 1E53140151; Thu, 28 Jul 2022 16:46:31 +0200 (CEST) Received: from EUR04-HE1-obe.outbound.protection.outlook.com (mail-eopbgr70058.outbound.protection.outlook.com [40.107.7.58]) by mails.dpdk.org (Postfix) with ESMTP id 70ED54014F for ; Thu, 28 Jul 2022 16:46:29 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=b3YMBT1LbeCukGdACw+D4+v/hI2y8GPoYf1DbgcdPGH5vI3lvNLz2+4qjmKrTBT/G8Lz4hFXYu0gF9VCerDWqG8kHUobsovVEWn8jAoImXGCrUEG+Zs0iR5akwqBKE6Yc63jguw9PG4PDXoC0yR753pnF/f4QEctVL8D5i+T76ZEqQ2nv46WnXoW9WP1c4fj4NAc9jce8Jt4Ci/3F8SMo316WpVYOZgBQN7KDzJ/RloW6APVdKIp1AMMQY5WWBzRdjivwPYGqTfVXgmCFZjjwj1ECtF0IQ/HZXcCK2VZ8QmEpRMAk+O1DAXpYfQQ3niSNS64Zl1JPVScuGVuDLL0ZA== 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=cVTF8qLLtg5GkPBG0vQfq4ecXnElThIhjdURt+K93Zw=; b=NOjm058upL6h2F4l5Rah6uxFfPM4UsHAn3yShsT8dBn82FXDJQ5Rnl6UsJ+/cRSduLNkNszh2zS78F+3dPVIlJO8E2awYRLFP+OszSzdbUnRf3yG3RKpU4NGAUpgocr/FTVhP2ztKFzcTs3kZN/XK6jJWIW4FNlCOdK25GOxOOefwHSgOjDbB9fvD6XnhkTvUJgtbj0mesO4DUtzF5OtsHoQN8z8h3BJ8RK1LpryEGJkpHhFWiLym0Wxn4NzNZWcY6KtI3Egtgy+P8WfHNI0f5/rUqJG7KeYGadiobW8yzJX6RUXMVSG8JecSoZw4ETOAxMDrN6jZUvXQBsN7vbWDQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=xsightlabs.com; dmarc=pass action=none header.from=xsightlabs.com; dkim=pass header.d=xsightlabs.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=xsightlabs.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=cVTF8qLLtg5GkPBG0vQfq4ecXnElThIhjdURt+K93Zw=; b=kVft50GYz/NzCdQm4IPtNzgmw24ilcTWlA2GSmNOnsYFcSREPmy8QG+ijszJSSiA8FTXWPPZW1XFgALbQnZwf/NpbvTe1gbfL8sBjM9sBtXWv7vKkmJUZ+ykHh6aU26wMaub+SDe9UrNx38RlQXWaf1dF6ywpl91pWZ7joArn44= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=xsightlabs.com; Received: from DB9P193MB1482.EURP193.PROD.OUTLOOK.COM (2603:10a6:10:2a6::7) by AS8P193MB1447.EURP193.PROD.OUTLOOK.COM (2603:10a6:20b:39d::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5482.10; Thu, 28 Jul 2022 14:46:27 +0000 Received: from DB9P193MB1482.EURP193.PROD.OUTLOOK.COM ([fe80::d09a:72e6:a61d:ce90]) by DB9P193MB1482.EURP193.PROD.OUTLOOK.COM ([fe80::d09a:72e6:a61d:ce90%7]) with mapi id 15.20.5458.025; Thu, 28 Jul 2022 14:46:27 +0000 Message-ID: <7a030fd7-65ab-787d-60df-1eae8d5b6f06@xsightlabs.com> Date: Thu, 28 Jul 2022 10:46:21 -0400 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.11.0 Subject: Re: [RFC] EAL: legacy memory fixed address translations To: =?UTF-8?Q?Morten_Br=c3=b8rup?= , Dmitry Kozlyuk Cc: dev@dpdk.org, Bruce Richardson References: <256b5409-ddaf-d7cc-00c1-273ca76dbf71@xsightlabs.com> <6aaa04d8-2ac5-ced6-ec25-d42bc52a3e2f@xsightlabs.com> <20220726225910.26159820@sovereign> <20220727233644.21f0b2a3@sovereign> <20220728102537.48ff6e5f@sovereign> <98CBD80474FA8B44BF855DF32C47DC35D87202@smartserver.smartshare.dk> From: Don Wallwork In-Reply-To: <98CBD80474FA8B44BF855DF32C47DC35D87202@smartserver.smartshare.dk> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-ClientProxiedBy: VI1PR0701CA0044.eurprd07.prod.outlook.com (2603:10a6:800:90::30) To DB9P193MB1482.EURP193.PROD.OUTLOOK.COM (2603:10a6:10:2a6::7) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 0e630275-7064-431c-c72a-08da70a7f34f X-MS-TrafficTypeDiagnostic: AS8P193MB1447:EE_ X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 1y0N0zkQ/p4ChYXGa1ljHpQDYM0rNy4VsBrqJw4o+SICiEDN1fnAymF3V6890WfIjff7FqMEKInRFDzho+EpC7pbP6KXo3wbw3Hc0jCRlgHVoaxDdZcyzjTCPYSLB/umX/wcRwoatCR4G2t7UuE7x7Ft1dvDNvMvVyLAw45NwTMps/GcK310SbpPZn2pO2PM5YZW5RwExTSRXLViensDkkpoZ29PX4WTSWTqZ4KVSHTasQS5Xs2S62RUuvAjUdtBXt0lIusttS5agFWHlLN6NnF+3ZMXaWEnoiiwAnzE0AOGwbL2Y+gIlRJQkmkLa1d1h2XytOG9ga6+Utby5Xk0Bbvl5S4jv4TRm4hfQuh0pjMGUSxbth+1IssYLuSUZ889oQ272/qmVej1Uyujecmk9DOLnUiQepaXRC6dCbwXatXLiTUnj6qjD7QhDz79kAzhNKZc2DBcgqaW9J5jQZR6f4NE8ioECPuPCgiMVejN7oRT3rWilZFjHTTV6/StX/eFl4dDAK5a5mjCbcVDBeRN+G06CxvGfsRXmJlswYQtgt15rEJwpFpEtG6GorLEKlRUr9buxFMmlodwSfIVxPm5QBnh//BbwVNaqrBcly/ZSS+PGWe8x71gn+VbmE+oiwtTyIIIt2G8kgqGN43rk9nx08/1vQPnXHgdYx8fN9gxI8X3IJhvfYF6lCRZOYHSOCennC0EYeqdpj4EOAc882WiefqxcKx6lPopd9Cik/I2Y4MPAh4bLFClweQhiudUUubGPKr1arQPretzKtAHg4a8n10JSXp8e0cBIcJTbHfVat9pkdgbpVPZIhZA+kQMI33RIel9W0geFKp/npVVIYLMYbIBpaC9sbENFwL89cPzZWY= X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DB9P193MB1482.EURP193.PROD.OUTLOOK.COM; PTR:; CAT:NONE; SFS:(13230016)(4636009)(39850400004)(346002)(396003)(376002)(366004)(136003)(31696002)(86362001)(6506007)(26005)(6512007)(52116002)(53546011)(38350700002)(38100700002)(2616005)(41300700001)(186003)(6666004)(4744005)(31686004)(66476007)(66556008)(4326008)(66946007)(5660300002)(8936002)(36756003)(316002)(2906002)(6486002)(478600001)(8676002)(110136005)(43740500002)(45980500001); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?MlR4NGJXTWhxdU9xbGZYVFpDMXVYbnVSd1VPU1dRYW5oVDVIR3ludXJU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?WUJMTWFVdkR4OWRSTnUxU2FDTExyRjFRUTYwOE03RnlYVldsdWpnaSs0UlJl?= =?utf-8?B?cGVhdTh0TG13STdPdmljZGh1QzJhSFJqNVY5UFhxK3VtRE1jcW0wMHA4eTE0?= =?utf-8?B?YVo5MnU3OEJxRWVDUTloWnQ4MStVbzRNTW0zS2w5cWNuSFJsRXBva0FhYURJ?= =?utf-8?B?TTNsSTJQQ2didEsvRFlYZlZ5TitVU25vQW85aGJEY0V5a3gxbmoySHVqWFQy?= =?utf-8?B?NjFMNG1zWnJFaWNpV2ZMMnR1Y3owbS9JamxUa2xQSUk3TmtkbVJuL1NyQWtR?= =?utf-8?Q?3UAqMAi5wkhYgP8RJLNE0Axka?= X-OriginatorOrg: xsightlabs.com X-MS-Exchange-CrossTenant-Network-Message-Id: 0e630275-7064-431c-c72a-08da70a7f34f X-MS-Exchange-CrossTenant-AuthSource: DB9P193MB1482.EURP193.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 28 Jul 2022 14:46:27.2318 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 646a3e34-83ea-4273-9177-ab01923abaa9 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: ZhNFe/UudB12DZqqtxLwi8FodAWQKCiCEcs2AjhG9QYWLqJLWSf+6e7WSU3zzpa5cmJ3ej1YAXm7/bfnf6TbLQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS8P193MB1447 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 7/28/2022 7:29 AM, Morten Brørup wrote: >>> Let me try to give a trivial example of how it would work >>> to make sure we're on the same page and then we can get >>> back to details.. >> Thanks you, Don. >> Now it's perfectly clear what EAL should do and we can discuss API. > I think this RFC is an excellent proposal! Thanks Morten and Dmitry. Great to hear that.  When we have a patch ready, will post on the list. > > Long term, I also hope that it can lead to the removal of the mbuf->buf_iova field, making it available for other purposes - e.g. moving the mbuf->next field up here, so rte_pktmbuf_free(), rte_pktmbuf_prefree_seg() and other functions don't have to touch the mbuf's second cache line anymore. > Yes, it does seem possible that this could be done once the fixed translation logic is in place.