Received: by 2002:a89:413:0:b0:1fd:dba5:e537 with SMTP id m19csp59352lqs; Thu, 13 Jun 2024 03:59:36 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVOb7zI0uZ4SqTo2cnFNoVUvzcypy35PbS/KGPEqoYko/huGRW7Pi7RoJ7tjedV1egX8kqTjskn2o9l4ZibTkbLS7+n0siEBWYKfpyKKA== X-Google-Smtp-Source: AGHT+IENDGFnE/+Y1J3Cclxa6oYkTObmuG/CPxiSLMYYvI+PkXqN4GVkk/EQSe+d29iQlzr0EH9j X-Received: by 2002:a50:cd09:0:b0:56e:99e:1fac with SMTP id 4fb4d7f45d1cf-57caaae5221mr3377784a12.39.1718276376761; Thu, 13 Jun 2024 03:59:36 -0700 (PDT) Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id 4fb4d7f45d1cf-57cb7477b60si619085a12.634.2024.06.13.03.59.36 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 13 Jun 2024 03:59:36 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-213068-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=htHCIpCy; arc=fail (signature failed); spf=pass (google.com: domain of linux-kernel+bounces-213068-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-213068-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 52B121F21C5E for ; Thu, 13 Jun 2024 10:59:36 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B00FA14290A; Thu, 13 Jun 2024 10:59:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="htHCIpCy" Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D153013D534; Thu, 13 Jun 2024 10:59:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=198.175.65.18 ARC-Seal:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718276362; cv=fail; b=ZoGNIczSS/pBmirPLBAqIfMc0Qe3I0TaqR7/Ly9kEjaH8FJMDt5NVAmCogE5mb1ORoLMoBg19sfj7ZqULu2BtZIJuVd7yTipXS8pSTmPlZYOVH97yUJzw7j9dKHc7OmdIRj+GnBPTqo5Wp8R3eI9A0Z+mWddPFN7PPQGxdM8OrI= ARC-Message-Signature:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718276362; c=relaxed/simple; bh=KmHxBUvOnAmAwelX44pOSpW45oxaFcXUNAkOr70Fhns=; h=Message-ID:Date:Subject:To:CC:References:From:In-Reply-To: Content-Type:MIME-Version; b=CpsuYO/fZtp/hadoJffPPPwW4lZASeDp5qySll51Sn4pql3lZvhrftqIeqeb7Px6pzQEPYrh7B5uWHhQWigSOJBRBBmQ3QxitSWhswyEcPO3oPh34ZscMZELSX83Ey+lwWW16W2KtIk5+skTUlW7+Ix3Bs76rs7IBnkP+VyD+60= ARC-Authentication-Results:i=2; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com; spf=pass smtp.mailfrom=intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=htHCIpCy; arc=fail smtp.client-ip=198.175.65.18 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1718276361; x=1749812361; h=message-id:date:subject:to:cc:references:from: in-reply-to:content-transfer-encoding:mime-version; bh=KmHxBUvOnAmAwelX44pOSpW45oxaFcXUNAkOr70Fhns=; b=htHCIpCy20uIbOzPqEaBuA5lseO7D/HR4+rzK5mcFX3ca1dQEvasNSOF Vw3oXX/5AHy8yZs0SJVZ1KGv+t1xe3DIUKGa8jAqCJ5DbC8CnHB8PSzUH Jt2dlgn4JjBGc9tN04BNqr7ZFTLh762VmMRO+4/dJel6dtlOAT5YUCvVg h4DGmrZxhApTJWEpMUr8CRZVM2lqSng3j7LrvgzzcAK7Ltb3jk7pLU8Bx 28bBI4CmG1Rxiqw+3NWn2S5ICt1uhNut17m0WI4hagEZ7tPnXUGrzarOz UIHwYly6qExg4QIVGiAXxui0VX/939Dw8rC9IukcM/nx+0zm3ayF0N368 g==; X-CSE-ConnectionGUID: Pes5O0AEQtSdCWSEVXanbg== X-CSE-MsgGUID: JBFSO41ERxOyjUrUyW80ZA== X-IronPort-AV: E=McAfee;i="6700,10204,11101"; a="15241791" X-IronPort-AV: E=Sophos;i="6.08,234,1712646000"; d="scan'208";a="15241791" Received: from fmviesa010.fm.intel.com ([10.60.135.150]) by orvoesa110.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 13 Jun 2024 03:59:20 -0700 X-CSE-ConnectionGUID: Av8X2qg/TjeJxfBtnaC4Cg== X-CSE-MsgGUID: WC/7iUcQR76Jn3YcxQTxkg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.08,234,1712646000"; d="scan'208";a="40171956" Received: from fmsmsx601.amr.corp.intel.com ([10.18.126.81]) by fmviesa010.fm.intel.com with ESMTP/TLS/AES256-GCM-SHA384; 13 Jun 2024 03:59:19 -0700 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.39; Thu, 13 Jun 2024 03:59:19 -0700 Received: from fmsmsx610.amr.corp.intel.com (10.18.126.90) 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.39; Thu, 13 Jun 2024 03:59:19 -0700 Received: from FMSEDG603.ED.cps.intel.com (10.1.192.133) 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.39 via Frontend Transport; Thu, 13 Jun 2024 03:59:19 -0700 Received: from NAM10-BN7-obe.outbound.protection.outlook.com (104.47.70.42) by edgegateway.intel.com (192.55.55.68) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.39; Thu, 13 Jun 2024 03:59:18 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=jSb8uDl0vPlRdFZutk/iQTJ6nmYgeQPrfRL5Wvl1z6q0T0/mBzQCxDPqtTD8rgNxUgZg6Nm+R7v/nSKqx/oPN0l/nID+6ybc3XQWevdiLXUyH3XRv8m32zyvic6Q5wWOUGjvvFrc9w7X9lOpI0nDMZUIstNHyHIdOmib4ReZtboPtkKbwiRB/Km2XrueDob8aBg2lOszVty4Z0/ccFKcN13e30YNiC/iugf+mOeCf2RRBvAbvChM2WmKufmpJ2EZRCC2LVoKToWqtCi5vb0dnYM7ECR6epPsIVETzOSYO4uDfzQjwjAmAZngNjWmKSrhrMGZh95J7Hsx53FoekTQ7g== 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=CyVLPHX6juifFE5EU3sg1Hw+hOwuj/eNLtQq8HIilbU=; b=FUczs9B/WorqpT3MeYblhDI4jLShDkfKHjXp+mLPgcdR4J2P92rW6FrLC1uZgcE1HsqScctkZHf3EAUnRx7xkceooZhXizMz4ENVh6tSOfq0qEo4SCIPlUW76kblWlLJfrGrwpfplI3HTMz25gvNEbh+eFyW1HQQ5ok0gzn6E9JmAkyRk/Mon7FNLZHSDfzsjIJD0RHClIZHvORAyjNrWl3VYDlBrpZ8yqISpD2SFhjc7+sZfGJr9fMda9izR+TtyEJUCGeZQ6Sxa/j68LeXD7P0ajWh6i8l2WKrXi7w2kMe8/SDuj/OlHVh7Wq/yu7+VkPGBOCn6s91nDZzWnEBzQ== 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 DS0PR11MB8718.namprd11.prod.outlook.com (2603:10b6:8:1b9::20) by PH7PR11MB6547.namprd11.prod.outlook.com (2603:10b6:510:211::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7677.25; Thu, 13 Jun 2024 10:59:16 +0000 Received: from DS0PR11MB8718.namprd11.prod.outlook.com ([fe80::4b3b:9dbe:f68c:d808]) by DS0PR11MB8718.namprd11.prod.outlook.com ([fe80::4b3b:9dbe:f68c:d808%4]) with mapi id 15.20.7633.037; Thu, 13 Jun 2024 10:59:16 +0000 Message-ID: Date: Thu, 13 Jun 2024 12:58:48 +0200 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH iwl-next 11/12] idpf: convert header split mode to libeth + napi_build_skb() To: Jakub Kicinski CC: , Tony Nguyen , "David S. Miller" , "Eric Dumazet" , Paolo Abeni , Mina Almasry , , , References: <20240528134846.148890-1-aleksander.lobakin@intel.com> <20240528134846.148890-12-aleksander.lobakin@intel.com> <20240529184012.5e999a93@kernel.org> From: Alexander Lobakin Content-Language: en-US In-Reply-To: <20240529184012.5e999a93@kernel.org> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-ClientProxiedBy: DB9PR06CA0022.eurprd06.prod.outlook.com (2603:10a6:10:1db::27) To DS0PR11MB8718.namprd11.prod.outlook.com (2603:10b6:8:1b9::20) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DS0PR11MB8718:EE_|PH7PR11MB6547:EE_ X-MS-Office365-Filtering-Correlation-Id: 16b4cbeb-62dd-4f3f-3c0f-08dc8b97de00 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230034|376008|366010|1800799018; X-Microsoft-Antispam-Message-Info: =?utf-8?B?SWVWcDJoRndITDkyUVdnTmJnelBuQWtzbVVDbzZnRnFGS1loc1NiWDRycy9U?= =?utf-8?B?a0x4Q2ZCb25IS2tOd2k1V0VJTHZEaFpUQkJJbW5yYkhLT3g2cUZ5Z0U3RWw0?= =?utf-8?B?V1lrTUZlZkVxT2w4QWg0ZVllcklWcWRvQmlIOWN1SjFoZWxRTm9MZlFnQWNH?= =?utf-8?B?cFl4a3lxUThNalNISklZczhKVFNVQk8zbnpMZmFMREdVT1Y2NUpMbnJlMHRW?= =?utf-8?B?b0pOcmhvZWQwMVpQMzQyUUFaTWVETFZhRmovOWlJakdidVh3T3ZYen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VBTEw5Uk11d2M4eVM0?= =?utf-8?B?UnhFWEhVRWhtNU5YUDU1MUl4S0J0YWZxZi9DS2JlZ0R2ell0UFQvVzV0dGRw?= =?utf-8?B?Ync0R2ZEWXVxeW1pK3Z2c1E4d1BXNnhJMlhORmM1QXdrQTdWUUlQMVB0ZFFl?= =?utf-8?B?ZTJrZUJydjhQWmZTbUlDV0RUY0NIYlY2UlRDbTdTRFk4bm1oR3pwZW5KTEpQ?= =?utf-8?B?ZldlVm1vMW4wVnQ4ZytvNlVjUFNOVTgrOGltVEFKREVxSzZiUktaVGZ4QWRG?= =?utf-8?B?cG44ZnZyQ0JKT0dNQm41WTdmVzZ0bGVpTTdMZi9KeDNhWS8vd1c2UkFoVGdt?= =?utf-8?B?cmErUkpwWmdsSldsZ2I4V1Y2c0hweWZEMGRVTjA1OWlYbHRZWllid2FvZGpm?= =?utf-8?B?Z1Z1Kyt2aUh1MXBXY1hSN29NSlAxallqMDFWRGJnTlowbHZSNi9PcjRzV0lh?= =?utf-8?B?TFNuSTNnekozYSs3WmRmY3o5MndOMUgwVlIxcjluMlRZYVd0eUxqUStnaUV4?= =?utf-8?B?eVpHYm50dGxvelNwNGVHeVlWNmFLWW9KWHJJT1N5UzAvSSt2QkJoeVpYdXNE?= =?utf-8?Q?6C0e/bvbrxo2UIX0nDP7whrds7ff86gZM8hJBYP?= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DS0PR11MB8718.namprd11.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230034)(376008)(366010)(1800799018);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?anZjZXgwZlZXcnhzV1RIV2ZPd2NKaG5WS2xUTFA4RVBGNHJrWWE4aVNJYkNm?= =?utf-8?B?enIrV3JOcXZmbk1xZDRTL1A3eTJHYjRndmE5UGVGazk0T001c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crVkFmSVVpci9Jak5Tdi9Zb1htdDJmakFqeHJmbE9KMFlvZHZpTHZj?= =?utf-8?B?WFBoOSsxQkNxYUhFb1ovYmFwa09MczNBc2xmazMyT1psdlBlYzNhWVMwKzhl?= =?utf-8?B?UG9KektVTWw2V2kyc2M4UnlrVmFkTXpFT0VOUWxLbkRQREQxbnZQTHJtcFlR?= =?utf-8?B?TnVVeVF1VWpxL3FsRnFMVGZDcFlydHpWdW81UTF1NGduY0cxNmtVUWdDQTdU?= =?utf-8?B?ajJPWU1FaVhSRkIyLzNlNXlmZmRLTXBMVmtxcXhGYnpPaEx6T2Z6SXFSb2lk?= =?utf-8?B?U0E9PQ==?= X-MS-Exchange-CrossTenant-Network-Message-Id: 16b4cbeb-62dd-4f3f-3c0f-08dc8b97de00 X-MS-Exchange-CrossTenant-AuthSource: DS0PR11MB8718.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 13 Jun 2024 10:59:16.1677 (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: 9UnZpCU+Um9tdpcPl9C36PcjKxyc1WJvtvAFqxmvPUUJqrri8HEsaAUamOUX1QKqDYsIZr6m5qkvj10XjQjRNKfneG7VTT/uQx+zTfYUQjE= X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH7PR11MB6547 X-OriginatorOrg: intel.com From: Jakub Kicinski Date: Wed, 29 May 2024 18:40:12 -0700 > On Tue, 28 May 2024 15:48:45 +0200 Alexander Lobakin wrote: >> Currently, idpf uses the following model for the header buffers: >> >> * buffers are allocated via dma_alloc_coherent(); >> * when receiving, napi_alloc_skb() is called and then the header is >> copied to the newly allocated linear part. >> >> This is far from optimal as DMA coherent zone is slow on many systems >> and memcpy() neutralizes the idea and benefits of the header split. Not >> speaking of that XDP can't be run on DMA coherent buffers, but at the >> same time the idea of allocating an skb to run XDP program is ill. >> Instead, use libeth to create page_pools for the header buffers, allocate >> them dynamically and then build an skb via napi_build_skb() around them >> with no memory copy. With one exception... >> When you enable header split, you except you'll always have a separate > > accept "expect" :D Thanks for spotting, nice catch. > >> header buffer, so that you could reserve headroom and tailroom only >> there and then use full buffers for the data. For example, this is how >> TCP zerocopy works -- you have to have the payload aligned to PAGE_SIZE. >> The current hardware running idpf does *not* guarantee that you'll >> always have headers placed separately. For example, on my setup, even >> ICMP packets are written as one piece to the data buffers. You can't >> build a valid skb around a data buffer in this case. >> To not complicate things and not lose TCP zerocopy etc., when such thing >> happens, use the empty header buffer and pull either full frame (if it's >> short) or the Ethernet header there and build an skb around it. GRO >> layer will pull more from the data buffer later. This W/A will hopefully >> be removed one day. > > Hopefully soon, cause it will prevent you from mapping data buffers to > user space or using DMABUF memory :( Correct. The HW team is informed and some work on it is happening right now. I told them that stuff like devmem etc., i.e. when the kernel doesn't have access to the data buffers, will just choke on this. I mean, I don't care about unknown packet types since it's very unlikely and it's almost always some garbage, as well as when the header doesn't fit into 256 bytes (I can't imagine such situation with known protocols, but if it can happen, I can bump to 512 or so), but currently, and it's a shame, idpf does header split only for TCP/UDP/SCTP, on my setup it didn't want to split even regular ICMP, although it parsed the type correctly =\ I dunno why they did it this way. There are some configuration bits which in theory allow you to enable hsplit for other types of frames, but enabling them didn't change anything unfortunately. Thanks, Olek