Received: by 2002:a89:413:0:b0:1fd:dba5:e537 with SMTP id m19csp64039lqs; Thu, 13 Jun 2024 04:06:44 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXvKj24mZ6ZcchkyVbg0RrT6mfQI5dQ3dAjBmOE99xJ5+vKeroEuWG63spCKpF83Z8QcLd8HJ/7f97eG7Wd11bg/xrritKQZ7YLyvUK8g== X-Google-Smtp-Source: AGHT+IEt1IlbHXCnBfQ4F10MX8P9axQAvX3NxT8yCW84BYtfMExZAm0rP9Mc4QNKsH/04hNl+evy X-Received: by 2002:a05:6122:3088:b0:4ed:75b:e872 with SMTP id 71dfb90a1353d-4ed07af6c68mr5185814e0c.5.1718276804059; Thu, 13 Jun 2024 04:06:44 -0700 (PDT) Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id 71dfb90a1353d-4ed41a23e30si128517e0c.271.2024.06.13.04.06.43 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 13 Jun 2024 04:06:44 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-213073-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=cUT9Cufw; arc=fail (signature failed); spf=pass (google.com: domain of linux-kernel+bounces-213073-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-213073-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id B33481C240A3 for ; Thu, 13 Jun 2024 11:06:43 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 3EA49143725; Thu, 13 Jun 2024 11:06:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="cUT9Cufw" Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.20]) (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 362231420A6; Thu, 13 Jun 2024 11:06:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=198.175.65.20 ARC-Seal:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718276791; cv=fail; b=jUAVQJM9GMGmkyNnBfHvTGlCwLgSV4nYERinVeRhCz8YO00C+59ofwOFxljbH9vzJjIKNmZvRQ5CovQQnDIh8Nx3dF7kzXlhyTHcm7060aBmfhkpkX/ESTsiS95WvVfCQnsrbMZMzonH4F4KACO6upb5q2lu0u+jgHna3orL38M= ARC-Message-Signature:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718276791; c=relaxed/simple; bh=tcOgmfQdQ7ySzXz37xq4UWbkM7lydpC8mGXYlI/y91c=; h=Message-ID:Date:Subject:To:CC:References:From:In-Reply-To: Content-Type:MIME-Version; b=qG8Z8Zs4duwQgpP7yRGoeVxMGz/X63UibD7eWqz0hgz+FVuzpzP7q50mKHs0JrosJBB0aMt8fqrci77Qslps230xs5CppDHBGEG1eXU8Mz7fHOyoJ4HZLV7/ExH4lhes8Wu7YTPwDGkN0oVbNriAEu+DJjhT6T4Fh9MHQzV72Cw= 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=cUT9Cufw; arc=fail smtp.client-ip=198.175.65.20 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=1718276791; x=1749812791; h=message-id:date:subject:to:cc:references:from: in-reply-to:content-transfer-encoding:mime-version; bh=tcOgmfQdQ7ySzXz37xq4UWbkM7lydpC8mGXYlI/y91c=; b=cUT9CufwvbfH9rTcxBvYvRZxz1KcVxGMJPgGlW83Pwm4UKiYKtQjJiTd F6xrQ/Exa8r1/CKcbOsQcyNBUhwrLf1X/zmT433Pl1xSGOSHGxJqvGFIM MSjlixSM+MlUtk82JYqccm/0x84+8P3kpzJ2jByVE/pKCwPr+n7bi+lei o1OY+QPUIrW7Lox0RLvJCxcZK+0PnRDZRbM50UdYnH2RVKUkXK6BSMAy7 h9zH0I0L9xlm+j8jN+i30vmm/4yI5OF5lwq3YiXQBDy/9kDmLbWiS8BP3 93PtY9/S+SV6BykKWb7tn8xjC1kmESR897J7lANpBviHw4UWWx0XweG+C w==; X-CSE-ConnectionGUID: ITujY2U6TGCOE/HZ+AC7Qw== X-CSE-MsgGUID: 7VwQXcuvSkulwcZMZUZTNA== X-IronPort-AV: E=McAfee;i="6700,10204,11101"; a="14926290" X-IronPort-AV: E=Sophos;i="6.08,234,1712646000"; d="scan'208";a="14926290" Received: from orviesa007.jf.intel.com ([10.64.159.147]) by orvoesa112.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 13 Jun 2024 04:06:30 -0700 X-CSE-ConnectionGUID: 8VYmvPf5R96NyvoPUPH7Wg== X-CSE-MsgGUID: eeJq11G8QMSFUdcxPQBFlA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.08,234,1712646000"; d="scan'208";a="40809914" Received: from orsmsx603.amr.corp.intel.com ([10.22.229.16]) by orviesa007.jf.intel.com with ESMTP/TLS/AES256-GCM-SHA384; 13 Jun 2024 04:06:30 -0700 Received: from orsmsx610.amr.corp.intel.com (10.22.229.23) by ORSMSX603.amr.corp.intel.com (10.22.229.16) 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 04:06:29 -0700 Received: from ORSEDG602.ED.cps.intel.com (10.7.248.7) by orsmsx610.amr.corp.intel.com (10.22.229.23) 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 04:06:29 -0700 Received: from NAM10-DM6-obe.outbound.protection.outlook.com (104.47.58.101) by edgegateway.intel.com (134.134.137.103) 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 04:06:28 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=oVNIWQx/+6aGjPJw2dYeTOHma7FaToP9BRiZE4cJDtV954tlNiQwXimOqPZCYXQGG1I5msR8NuyKaf5i/do3HVk+miH8+n2gA97fts5Ya/E5E9H8ss+lPRHWc+VuI1s7k2B3rxEbZireKPXIYEUCgFjtJ14+7s9uJYOoDS/3B+Gw8jwazun2fGegxkmgstjbPWsDDZ9mFAJEz/xFJpT4Z3uRCC+baEBEfTb93IsEXH0AmQadGCU1FPgMNNtvlALlFZvomYtBTx7ZaaRCMsSHHhhrm7aB4ivPOLsiAYXSVJ4/CBXaAlOCpyecCadVr+qvpDnFQnllzYVLK0tz+5kLMw== 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=k78aAs6CoRm1fXzSHH0d56d/EV0siz6FGT9vt46nhhU=; b=Y/Jeg5RHjn3iZhk3/4NFGg7buwhjW8B9HK8NHiqwkLWQWHqyLH+qrGfq9ulkQYZt6JuILflcy1bgdKo2J6RSQ6BQwQON9/f3RpkKO9Ch2FdzhlowfLDXWBa2KOS3t3QFhB3ODRBOM6NeTInSzltNsfmZvljNiZRyDTEoLpXZYZ4XEny8ikU84ep90ERCkiL8y5qjah6DwMFccGglASqwAF5x/hmaibhYZmfZ9igKpPxhUsudX7sFx60QSj6c3B8yxE8mYDj8UoOnyxRShKhihmGGmhgONL2YObDYy+BHEeCUSMznbet555cv9hBjaG1pjdlSekAmbMWMvaM6x+wx5Q== 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 PH8PR11MB6997.namprd11.prod.outlook.com (2603:10b6:510:223::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7633.36; Thu, 13 Jun 2024 11:06:26 +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 11:06:25 +0000 Message-ID: <2c22ba85-2338-4f16-b3c2-70c4270cd96b@intel.com> Date: Thu, 13 Jun 2024 13:05:58 +0200 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH iwl-next 12/12] idpf: use libeth Rx buffer management for payload buffer To: Simon Horman CC: , Tony Nguyen , "David S. Miller" , "Eric Dumazet" , Jakub Kicinski , Paolo Abeni , Mina Almasry , , , , Dan Carpenter References: <20240528134846.148890-1-aleksander.lobakin@intel.com> <20240528134846.148890-13-aleksander.lobakin@intel.com> <20240601090842.GZ491852@kernel.org> From: Alexander Lobakin Content-Language: en-US In-Reply-To: <20240601090842.GZ491852@kernel.org> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-ClientProxiedBy: DUZPR01CA0288.eurprd01.prod.exchangelabs.com (2603:10a6:10:4b7::21) 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_|PH8PR11MB6997:EE_ X-MS-Office365-Filtering-Correlation-Id: bd2deb8b-d288-46e6-1b25-08dc8b98de16 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230034|376008|1800799018|366010|7416008; X-Microsoft-Antispam-Message-Info: =?utf-8?B?dGFHU1dWQlB6cE1yaU9tTmNKcXZzR2RiV0FHK25PTHZOdnBWMEFqcDR5Um5u?= =?utf-8?B?K1VsWmgvRWUwNnpFM1g1cXR6VEJXUFR4eUxmNnVGZHFzYVpRaDFyT2pRUjlr?= =?utf-8?B?eWE3SWw5d244YzJDN0l5WHMxNWhHaFJyVEovQXdIcG5HaVM1bUFiZDBWamRJ?= =?utf-8?B?Vm1NVG0rQnVnMFV6MmZyYjFxZ3NxakVBTWRiclNJM1NCY3JocnIzeXNSZWZt?= =?utf-8?B?QUJkYTBzOTNYS0dKdE1IYmw0UEVjb3RoYWlxYmQ2RExFZTFnQ1p0ckZpL2Zm?= =?utf-8?B?MU5NbUJldGVDNE44WHJOQ09WZU9BMS9CbU1Manp1Tms0VkxnSlJScDM3ZmFI?= =?utf-8?B?Z1RzSzZtamlwZDQ5eTlXRzZMYnR5bWJjOUhNY3VK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lKbUM2MkYzTnBCZFJiM3pwYzNsUjdsYU5lNmVo?= =?utf-8?B?RzY2eFMzeEhrSzFFOXRpMyt2Yk9UcU5aU3RmRG9pWnp0QnRnbitGU1B6NitW?= =?utf-8?B?LzYzaHd5YzZNWk5KWDFud1Z1YWtiSGtmYmdLUzZjOGhkSzQ3dG9LODVUdS9u?= =?utf-8?B?bnVtbG5BWWZiUzNWL1RWYndTSjIrcDcwcER4VmcvelVERUZLMlZBYTlRbEdo?= =?utf-8?B?Q2Fwd2ZCeVZlbGNIajZvRENqbXE1d2M5Rm5pNHlWV0xRcS9LcThQTVFpUklY?= =?utf-8?B?M3dtVktFRHYyTXBEWFMzMU8zRHFZRjVpcFduVXlwbW0yQzJNZTQ3djdUWnFD?= =?utf-8?B?QXVkSmMzT05oNVZhT3RkbTlLeE1STVJLQU5QNGVMMHhNRGpqckpjTmtZbU5k?= =?utf-8?B?MXlpYXhuS1ZhSHBZVW1TaTBBME1wK1lwU3dhcWRLNGU2WFAyb1p5UlhvSSth?= =?utf-8?Q?K8Bsi6Ubg/vMdAM2V8=3D?= 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)(1800799018)(366010)(7416008);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?Yjl6WWRqdnVMSWxuMUlLS3RMNXNtUHdCM2ZZUjNzTHROb3c2cDBIenpCVHlF?= =?utf-8?B?ZE9VNzhCUVBoOEtlWnUxaGhobW1UQjREUktNWU8rN3l4L0hEcGJseGQzVXhW?= =?utf-8?B?eGhSMnVYNXRHZmhLbElsd21zdjM5MEZIVjgzem1NbXI3cDBPSGluaTQrR25z?= =?utf-8?B?eUo3Wkp6dVY3dFNOMHl0SW1KVGVjWlB0VURVZWlOQUh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F0Ym9Ed3BiWGQrQnVuL1Z1M25YbmNUSFRLdHpCNGpodnF0?= =?utf-8?B?aFZJMmJXU1lsYmMxdjJuUDBQN05jN2Y4VWpDUG1QY0poQUV2S2FmbkVTWVZD?= =?utf-8?B?SlVFM2ZuUXJlTnJGcmZyYmVIZktkek85dmoxNXNJZ2R4Z0MzcjFLdFFQZ2Z4?= =?utf-8?Q?T3CjP0shGQCPIuNoFgR1SEA=3D?= X-MS-Exchange-CrossTenant-Network-Message-Id: bd2deb8b-d288-46e6-1b25-08dc8b98de16 X-MS-Exchange-CrossTenant-AuthSource: DS0PR11MB8718.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 13 Jun 2024 11:06:25.7886 (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: 9fHf7B4XplKKrp8CurovZ7HNN4w/3QJAT66EMvri4aYfMOsX26rGXeTV6Aq9k3gc2nlsMQYu4IK3oE4J3XHp23tO+Z15oYdXk/YRPGyVSOI= X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH8PR11MB6997 X-OriginatorOrg: intel.com From: Simon Horman Date: Sat, 1 Jun 2024 10:08:42 +0100 > + Dan Carpenter > > On Tue, May 28, 2024 at 03:48:46PM +0200, Alexander Lobakin wrote: >> idpf uses Page Pool for data buffers with hardcoded buffer lengths of >> 4k for "classic" buffers and 2k for "short" ones. This is not flexible >> and does not ensure optimal memory usage. Why would you need 4k buffers >> when the MTU is 1500? >> Use libeth for the data buffers and don't hardcode any buffer sizes. Let >> them be calculated from the MTU for "classics" and then divide the >> truesize by 2 for "short" ones. The memory usage is now greatly reduced >> and 2 buffer queues starts make sense: on frames <= 1024, you'll recycle >> (and resync) a page only after 4 HW writes rather than two. >> >> Signed-off-by: Alexander Lobakin > > ... > >> diff --git a/drivers/net/ethernet/intel/idpf/idpf_txrx.c b/drivers/net/ethernet/intel/idpf/idpf_txrx.c > > ... > > Hi Alexander, > > The code above the hunk below, starting at line 3321, is: > > if (unlikely(!hdr_len && !skb)) { > hdr_len = idpf_rx_hsplit_wa(hdr, rx_buf, pkt_len); > pkt_len -= hdr_len; > u64_stats_update_begin(&rxq->stats_sync); > u64_stats_inc(&rxq->q_stats.hsplit_buf_ovf); > u64_stats_update_end(&rxq->stats_sync); > } > if (libeth_rx_sync_for_cpu(hdr, hdr_len)) { > skb = idpf_rx_build_skb(hdr, hdr_len); > if (!skb) > break; > u64_stats_update_begin(&rxq->stats_sync); > u64_stats_inc(&rxq->q_stats.hsplit_pkts); > u64_stats_update_end(&rxq->stats_sync); > } > >> @@ -3413,24 +3340,24 @@ static int idpf_rx_splitq_clean(struct idpf_rx_queue *rxq, int budget) >> hdr->page = NULL; >> >> payload: >> - if (pkt_len) { >> - idpf_rx_sync_for_cpu(rx_buf, pkt_len); >> - if (skb) >> - idpf_rx_add_frag(rx_buf, skb, pkt_len); >> - else >> - skb = idpf_rx_construct_skb(rxq, rx_buf, >> - pkt_len); >> - } else { >> - idpf_rx_put_page(rx_buf); >> - } >> + if (!libeth_rx_sync_for_cpu(rx_buf, pkt_len)) >> + goto skip_data; >> + >> + if (skb) >> + idpf_rx_add_frag(rx_buf, skb, pkt_len); >> + else >> + skb = idpf_rx_build_skb(rx_buf, pkt_len); >> >> /* exit if we failed to retrieve a buffer */ >> if (!skb) >> break; >> >> - idpf_rx_post_buf_refill(refillq, buf_id); >> +skip_data: >> + rx_buf->page = NULL; >> >> + idpf_rx_post_buf_refill(refillq, buf_id); >> IDPF_RX_BUMP_NTC(rxq, ntc); >> + >> /* skip if it is non EOP desc */ >> if (!idpf_rx_splitq_is_eop(rx_desc)) >> continue; > > The code following this hunk, ending at line 3372, looks like this: > > /* pad skb if needed (to make valid ethernet frame) */ > if (eth_skb_pad(skb)) { > skb = NULL; > continue; > } > /* probably a little skewed due to removing CRC */ > total_rx_bytes += skb->len; > > Smatch warns that: > .../idpf_txrx.c:3372 idpf_rx_splitq_clean() error: we previously assumed 'skb' could be null (see line 3321) > > I think, but am not sure, this is because it thinks skb might > be NULL at the point where "goto skip_data;" is now called above. > > Could you look into this? This is actually a good catch. skb indeed could be NULL and we needed to check that in the same condition where !eop is checked. Fixed already in my tree, so it will be fixed in v2. Thanks for catching! (BTW I fixed that in iavf when submitting the libeth series, but forgot to fix that here lol >_<) (Also, it was implicitly fixed in the later commits where I convert skb to xdp_buff here, so I didn't catch this one) Thanks, Olek