From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by mail.toke.dk (Postfix) with ESMTPS id 1CDB39E31BF for ; Tue, 24 Jan 2023 12:18:09 +0100 (CET) Authentication-Results: mail.toke.dk; dkim=pass (2048-bit key; unprotected) header.d=intel.com header.i=@intel.com header.a=rsa-sha256 header.s=Intel header.b=czKgcBlW DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1674559090; x=1706095090; h=message-id:date:subject:to:cc:references:from: in-reply-to:content-transfer-encoding:mime-version; bh=uqQwPT6xGq1lS1tN42tPR7sLtV2DKNpNEAAWl9qWn0I=; b=czKgcBlWR89ey0XJJd0PLlGdkUuSmOBeb1i8cx9Oka06c+Wh19LRjb1P dwK+Jypye2NBaWpyIy4L/xQNFhZNUT2uJEhrNSoFGuwx/tn4iffNafQKx f6wbtNjk+SWAnw/0v4II+lhoLfcclnbEYscT4aDNT/vN4sVzsvaqHZFa3 i+FScJJtqFgRFfrhtoK5ZlmwTJpNBDHlpYJsBpxML11HXCBm7cuHMrwav a12NWZKq4MUWFevLDaFZvA5V8kPqWU4prjVuhn8k3YSR4w2DCiH1iqtSf nYb8g86eM58AduD/MXWmthT8KxHT4NuEuhjeSmY3+xJfhmBYR+JkA7YCE A==; X-IronPort-AV: E=McAfee;i="6500,9779,10599"; a="323967440" X-IronPort-AV: E=Sophos;i="5.97,242,1669104000"; d="scan'208";a="323967440" Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 24 Jan 2023 03:18:06 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10599"; a="990839133" X-IronPort-AV: E=Sophos;i="5.97,242,1669104000"; d="scan'208";a="990839133" Received: from fmsmsx601.amr.corp.intel.com ([10.18.126.81]) by fmsmga005.fm.intel.com with ESMTP; 24 Jan 2023 03:18:05 -0800 Received: from fmsmsx610.amr.corp.intel.com (10.18.126.90) by fmsmsx601.amr.corp.intel.com (10.18.126.81) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.16; Tue, 24 Jan 2023 03:18:05 -0800 Received: from fmsedg602.ED.cps.intel.com (10.1.192.136) by fmsmsx610.amr.corp.intel.com (10.18.126.90) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.16 via Frontend Transport; Tue, 24 Jan 2023 03:18:05 -0800 Received: from NAM10-BN7-obe.outbound.protection.outlook.com (104.47.70.105) by edgegateway.intel.com (192.55.55.71) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.16; Tue, 24 Jan 2023 03:18:03 -0800 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=SIkutT+Agpv9sVnhMp0MlBs72TBXy1ELKowP0vFJZMcz/5IxaKPa8bCQkmwXUjQGC5KPR4D2L0BjAmpMsVs6IhS3j/oMgwltO8fZDyfRwjp6I49XIJsE9VMUt3DitmLmxrsy5kWBI7GhWQT2IgtS58huSnuaUPkmxWrx9uF9PPxfR33uePja5Du5zHIYqTpqLQTBbe9rYkkZuFhGch6tVfFYd9i0mJexZYsPdHUd02fkKwYhAJoIGaejy/jEcjST2IakZNI7N9DExyPUfVseVId1nyGG8EHsGiomh/gnbmgJMKvZ3n2Y4Hh5O0kTXL4OxCYnhudw6LJAqgOq47iuqQ== 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=u5jLI1/LmagsMzs4uf+6UgL+I8LUnvd0/RqKoMWARME=; b=GpRTrwYKVj8BFqX7DdEbZimvQ5L5aJ+BHpSpN2U/BOREXrxP/qnMNH3iHy9+Um93yul8l7bhPYlG9P+WevrCOtLWdZDqpXBRZYLYTWCgt7iiVDqN8VsIr2RQrodkBODnpyTSx3Abvnqx4r7MMDXlV3LJjWCblBVX3xCQaafaaZOAO9N7OKFDq1I1oToPeZittAYmG1yO3lYz2ANM4XecLPjTd5o2Pp432qbZ+l6ef7MGiZV5T14saUwYWaSnPVNBkjOboS6KXtOIAvM4Nb11SmmAEjaxr0O+J7CqVX7Z174l2xvkbfAzq3v5tSnOuRjSjhT8YdDyL4WnnVGWaLxLOw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=intel.com; dmarc=pass action=none header.from=intel.com; dkim=pass header.d=intel.com; arc=none Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=intel.com; Received: from DM6PR11MB3625.namprd11.prod.outlook.com (2603:10b6:5:13a::21) by PH0PR11MB5189.namprd11.prod.outlook.com (2603:10b6:510:3d::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6002.33; Tue, 24 Jan 2023 11:17:58 +0000 Received: from DM6PR11MB3625.namprd11.prod.outlook.com ([fe80::3ff6:ca60:f9fe:6934]) by DM6PR11MB3625.namprd11.prod.outlook.com ([fe80::3ff6:ca60:f9fe:6934%3]) with mapi id 15.20.6002.033; Tue, 24 Jan 2023 11:17:58 +0000 Message-ID: <5b757a2a-86a7-346c-4493-9ab903de19e4@intel.com> Date: Tue, 24 Jan 2023 12:17:51 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.6.0 Content-Language: en-US To: Stanislav Fomichev References: <20230119221536.3349901-1-sdf@google.com> <901e1a7a-bb86-8d62-4bd7-512a1257d3b0@linux.dev> From: Alexander Lobakin In-Reply-To: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-ClientProxiedBy: FR3P281CA0061.DEUP281.PROD.OUTLOOK.COM (2603:10a6:d10:4b::9) To DM6PR11MB3625.namprd11.prod.outlook.com (2603:10b6:5:13a::21) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DM6PR11MB3625:EE_|PH0PR11MB5189:EE_ X-MS-Office365-Filtering-Correlation-Id: ac20d727-ee8d-42a1-6436-08dafdfca593 X-LD-Processed: 46c98d88-e344-4ed4-8496-4ed7712e255d,ExtAddr X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: RAx4ky9aoMhCr/PBrY1R9ihsLy4lWZyHAXmkzLMqvbwmwALkfHF8JBwYjROQYSjYsWUhiuriqC+fPZeVHLiRkH2DD+bkr937QICVV4f1yw+b3zKRqvKu7+Q9p3Y1MIFwg8y13BDPV7dHjDjMBjT103tr96Olp2+FmtQhyr2vgvD8z00wRQ9/ymQXKh1QeCj0BQkIySg2TDs+xaIEIV1QyNPWGduHO5MPTEUPexice5xgFksDglmzImMmXRbW8yhr1KYFBZqMlywgGlDxGLc/53riEL1/7ulqh9vyggO3ZnOU/BEmJUnyn44SHPTWMrvYcLbGu9zHmBWje0oz+RbrrNv+DFZVMRe+FC9fk5oOzIK9WOJErtA0hx4fZnxNgrQi06x9cqLI7/UpkXhkOHau30GGAfzSp+pNQpRYejJaiZuXvZfQwPt6q04Hlsp+LEGQeS6e/XL34bpsDc1cXi1t3JyxAfYE8rjxi4XBIWlDfnCZ5qAlDKNpbFbaV7CbZ4RJOQcd5z34AMOTiTfEgCqmK9nxx5kxA14I2W5Jqrvy9ixbGbCwl65yzKkjzGYZE4SHVG0iF7HUkeNjdmoiwQ26eeavagK/RSQ7GPj4guG6lfKD5xtoRgiGMVd2itdcAO7X6kKTwrNmexDqYsYOhIVjz36T538aHPmjlvMQpdquL1zNb0Igym0tKaolZV+cePqUxR2BKDoENnQLhbEvLF28PFH43oDsl06O7ZvXQvVGxAQ2XHma+2Q0oxbhmd+LeCi3re//Ze0jSTjqHFxP2zobgQ== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DM6PR11MB3625.namprd11.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230022)(376002)(346002)(39860400002)(366004)(136003)(396003)(451199015)(53546011)(31686004)(8676002)(66476007)(66946007)(6486002)(6916009)(66556008)(4326008)(2616005)(83380400001)(6512007)(186003)(8936002)(26005)(6666004)(5660300002)(41300700001)(7416002)(2906002)(6506007)(966005)(82960400001)(38100700002)(31696002)(316002)(478600001)(54906003)(86362001)(36756003)(45980500001)(43740500002);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?ZUNmN1hYQUEyRXVnRVB0Uk1VN0ZqTTkxb2tNNVJ4aDlSUG5tV21NVVpxd21k?= =?utf-8?B?YVBteUxEdWIrQmhYRFVXU082TjFkemd3b0NFTTM3bFlwaUpyOGR3aW1jd2lu?= =?utf-8?B?YU1HQkNFL0l6Zk91UWJFZzVjZzZuMVJGdFRsNmpBT0tFWmZRTU14MnIzTmVJ?= =?utf-8?B?eStGNTdUdE9lR3dSM1FjYW9qamNERm9iQ0hZVHdBNWdrUjBweGJCSkR4NVYy?= =?utf-8?B?bGtTSWQ1ekhHNzBDcmVlMWlmcFVUS2IzaWdnKys2dzB0R1FyRVdRaG5CYjAv?= =?utf-8?B?Z05TUWhpRlloUEtlNDJGbWo5a1hvLzFZT09VZmg2NDRKeHVCb0xsNXJqZk1S?= =?utf-8?B?WGZBMmtRd0Zrc080R0pIZk9ncGp5OWh3REZLbTdQOUk4d0h1b3dJaW5JR24z?= =?utf-8?B?czlyMGMzdGw3Z29vdlFpR1EzZjFNZU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-CrossTenant-AuthSource: DM6PR11MB3625.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 24 Jan 2023 11:17:58.0644 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 46c98d88-e344-4ed4-8496-4ed7712e255d X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: 0vuSV6XhiMy3oyUj4JBqkVDys0Hl9GTDdcje4YOVPaTf1O1YuGwtf6VYCNxMkjjXeaKoeBKM8Rt3wyfpemoO7nHFWCKiTHx+qGEHGBBBHFk= X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH0PR11MB5189 X-OriginatorOrg: intel.com Message-ID-Hash: WCRNAE5TMFGV6XKQOTDZZUFAB7DUHUBD X-Message-ID-Hash: WCRNAE5TMFGV6XKQOTDZZUFAB7DUHUBD X-MailFrom: alexandr.lobakin@intel.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header CC: Martin KaFai Lau , ast@kernel.org, daniel@iogearbox.net, andrii@kernel.org, song@kernel.org, yhs@fb.com, john.fastabend@gmail.com, kpsingh@kernel.org, haoluo@google.com, jolsa@kernel.org, David Ahern , Jakub Kicinski , Willem de Bruijn , Jesper Dangaard Brouer , Anatoly Burakov , Magnus Karlsson , Maryam Tahhan , xdp-hints@xdp-project.net, netdev@vger.kernel.org, bpf@vger.kernel.org X-Mailman-Version: 3.3.8 Precedence: list Subject: [xdp-hints] Re: [PATCH bpf-next v8 00/17] xdp: hints via kfuncs List-Id: XDP hardware hints design discussion Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: From: Stanislav Fomichev Date: Mon, 23 Jan 2023 10:55:52 -0800 > On Mon, Jan 23, 2023 at 10:53 AM Martin KaFai Lau wrote: >> >> On 1/19/23 2:15 PM, Stanislav Fomichev wrote: >>> Please see the first patch in the series for the overall >>> design and use-cases. >>> >>> See the following email from Toke for the per-packet metadata overhead: >>> https://lore.kernel.org/bpf/20221206024554.3826186-1-sdf@google.com/T/#m49d48ea08d525ec88360c7d14c4d34fb0e45e798 >>> >>> Recent changes: >>> - Keep new functions in en/xdp.c, do 'extern mlx5_xdp_metadata_ops' (Tariq) >>> >>> - Remove mxbuf pointer and use xsk_buff_to_mxbuf (Tariq) >>> >>> - Clarify xdp_buff vs 'XDP frame' (Jesper) >>> >>> - Explicitly mention that AF_XDP RX descriptor lacks metadata size (Jesper) >>> >>> - Drop libbpf_flags/xdp_flags from selftests and use ifindex instead >>> of ifname (due to recent xsk.h refactoring) >> >> Applied with the minor changes in the selftests discussed in patch 11 and 17. >> Thanks! > > Awesome, thanks! I was gonna resend around Wed, but thank you for > taking care of that! Great stuff, congrats! :) Olek