Received: by 2002:ab2:2994:0:b0:1ef:ca3e:3cd5 with SMTP id n20csp250012lqb; Thu, 14 Mar 2024 10:11:19 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVcBSZI9QZ8iRVjqiqNAepcsDhZRqIDE94CQsO9+WC/sfPT9NaEGxJcdzCsIZd6Vcn8vw+UxqHpGx0EpDHuliHbSBLI24mQqszAP9oj+w== X-Google-Smtp-Source: AGHT+IFstVfT7Px97jnj1ExnmzbX3bO42Uv2W39aPu+j6/z5qXW/ceacAgsU5mqtjU1njkD/aLAl X-Received: by 2002:a05:6358:2799:b0:17c:9b4:8172 with SMTP id l25-20020a056358279900b0017c09b48172mr2751595rwb.15.1710436279602; Thu, 14 Mar 2024 10:11:19 -0700 (PDT) Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id d70-20020a633649000000b005e430f8622asi888828pga.714.2024.03.14.10.11.19 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Mar 2024 10:11:19 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-103609-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@criteo.com header.s=selector2 header.b=akUxFeHJ; arc=fail (signature failed); spf=pass (google.com: domain of linux-kernel+bounces-103609-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-103609-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=criteo.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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 1CEB3283CF6 for ; Thu, 14 Mar 2024 17:11:19 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 192FE745F4; Thu, 14 Mar 2024 17:11:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=criteo.com header.i=@criteo.com header.b="akUxFeHJ" Received: from EUR02-DB5-obe.outbound.protection.outlook.com (mail-db5eur02on2044.outbound.protection.outlook.com [40.107.249.44]) (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 78A2C7441E; Thu, 14 Mar 2024 17:10:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.249.44 ARC-Seal:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710436260; cv=fail; b=Yjj/CxDvKQUeQzY2liSLlQBKE2F8iyBP/BavYzycVm/d4lOTxjM8Lk2xgjC7EUzF7p3wNQXPHLFbUt+0ULSJYyc4yy43BqJ7HDtaeXK3vVOINN6AAToRcsLv7wR0SO0fahttA62Y9SQsIbBhqxm+g3DMPqn009x0OC6J+14eFVQ= ARC-Message-Signature:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710436260; c=relaxed/simple; bh=VFxtvec4lKBvbhB0+lLOXGMYZaMT8ACPWJLcfkyUepM=; h=Message-ID:Date:Subject:To:Cc:References:From:In-Reply-To: Content-Type:MIME-Version; b=kHNqnrM0ZfLosKaIJWJeNe0vDlmcjotKEX0UOctUrAzTiUynMDRdeBnRGs1kSQYeR2gna9CDPRIfuSODP4zWZZmXDovYGgst9vFFmyxPnjhztl7TDm8ZHiWG/ytOdUqDFd8ziZZgxRtr61VJgGwHQA0e3OHyijqhdYFBi5khq08= ARC-Authentication-Results:i=2; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=criteo.com; spf=pass smtp.mailfrom=criteo.com; dkim=pass (2048-bit key) header.d=criteo.com header.i=@criteo.com header.b=akUxFeHJ; arc=fail smtp.client-ip=40.107.249.44 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=criteo.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=criteo.com ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=eOu4A4NU/IDz3c/PZn8EAxMnx8V91QOoVT3JtSnWuX8PS4+LHx5J/M3zXVZznA1STmrThovqNjVYMpB87stJ3BQs6HBxR/Q71+mMqqMsjD0t70V8IX3/HcXBSB6HkWUbmBFVqJtIcP3HiY8JqfAXfl1D6gS4iDhbj0JkVkqVmhJmeUduVk5fafRoMfT1XpI6t/GypD4D53dIPEEULN5zsDfxbnu4LFRmTo1rgMUo5n38hRcNrUjnSqWAxM+vCQkYFK+CeHkaVHZOM0KVkRBGHC7+MJ707+etLwOc1Fdh47lqO7I5yHiHjxkjRgSGSR+bn97WnAU6Gr6wlgToCPNtnA== 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=8GfkSxjQtCspKgywt4dLTD4cE3UbCh5ybjoGOUC88rw=; b=VY/Rs+pru7M+7MQLxbZYDGHc7wL5xPhW2c4CAIjIhKoHoo/UVa9AxH9YbrCbZoWL3poOjwgHoxWkCj9eSuLMZiI9pxBq6xhYF89nPi7Wx6WkYk2PHXNZ2dTGS4JWS5AZLtIo+sbw4Q6zQi6cAb+sZShR7aCWwWiaw5F98tKEkvxUkPlDs0iQB3TBmKi2+OT2rk7bj/K1A+NNEiWPb8YlPvWe9Xc52XIBE3qL6EomCYYUX0TgAoNmHX3bRq9AuQqWr3lKavcwyAJfNjLb692RK2X6tAf9iUkbC5qePPF0ndOSbE6mxUfHuVq5UXnk1tyipoEbsKCfVUiPqPzrPSWGxw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=criteo.com; dmarc=pass action=none header.from=criteo.com; dkim=pass header.d=criteo.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=criteo.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=8GfkSxjQtCspKgywt4dLTD4cE3UbCh5ybjoGOUC88rw=; b=akUxFeHJtav2EIeTK7l3cbxnlWQOzLwGwHu1+8r4Vrtl7CfaTlU115EIcpzbN7iwANFZB+Q22bNBoG9TKo2Ngh0TgW4FOBAhWXdw3TedcMsm1Tx8a1ZdBE9Myt9I/6oqTAZ3ZDghLbL8Ni+75nu5EVxvRJd9/x7nwPDSlpw7pCFnee3xRdpIyIrmDSTyxTkWXvDhBArK/EM8YS3/mdpPGaI3ALvX4YNJ68aCEdDuBdsl5SfyqeeSjdZwUI8ekAWdm2gVAYyEZhE7SGQ2yuiLda1NeQZCvW8WGvr2AghigETZ3cMWG95qfg5fZ3Gd4HZMGGAiC6rVoGI3h+IjrtJ2iw== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=criteo.com; Received: from PAXPR04MB8989.eurprd04.prod.outlook.com (2603:10a6:102:20c::11) by PA1PR04MB10177.eurprd04.prod.outlook.com (2603:10a6:102:465::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7386.18; Thu, 14 Mar 2024 17:10:55 +0000 Received: from PAXPR04MB8989.eurprd04.prod.outlook.com ([fe80::c508:de0c:3808:6f2]) by PAXPR04MB8989.eurprd04.prod.outlook.com ([fe80::c508:de0c:3808:6f2%4]) with mapi id 15.20.7386.020; Thu, 14 Mar 2024 17:10:55 +0000 Message-ID: Date: Thu, 14 Mar 2024 18:10:52 +0100 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v4 iwl-net] i40e: Prevent setting MTU if greater than MFS Content-Language: en-US To: Brett Creeley , Erwan Velu Cc: Jesse Brandeburg , Tony Nguyen , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , intel-wired-lan@lists.osuosl.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org References: <20240313090719.33627-2-e.velu@criteo.com> <4e203331-62f7-44e7-acd9-f684c30662de@amd.com> From: Erwan Velu In-Reply-To: <4e203331-62f7-44e7-acd9-f684c30662de@amd.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-ClientProxiedBy: PA7P264CA0490.FRAP264.PROD.OUTLOOK.COM (2603:10a6:102:3dc::9) To PAXPR04MB8989.eurprd04.prod.outlook.com (2603:10a6:102:20c::11) 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: PAXPR04MB8989:EE_|PA1PR04MB10177:EE_ X-MS-Office365-Filtering-Correlation-Id: 48bd102b-5909-41c5-00a1-08dc4449b586 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: IljjuwnepYzHvmHCs/2HLGyiLqeR9UXOhBywPVLUtanMcAYqETGHzgN228QzMW0WDcP1d5M5HeBF5aZVTl8C+eod/jczXgFx1ejDqo2A/ZCMgEkw/uYyLCLFiGKIoyO+Acf+RE+4BAsGW0U7woJTvunM7UKZTyTlg6Nxe4rAP4mLWY7arLFR4aPfoolVIi5S5zZuV4jqL5/PZsMWUhSRSOeoEkr+YhqRsaJ0AD/l+ilv6gQT/LHgjlIeRiMDw9uqPPSIHXHrJ09mDPEFNlzW3XCxG5BJOxW05k7XccSpQyoEmt+exTo33y0lMoIVCiE8JQYkBujhiST/GzkWIwVB8tZfvJfXqAd409tPErO4jjSNd8ZZKTRKtbWXPngOVb/qCEVImiMtW1IWvvMeFjM+PmUmMULjPouWtw1Hf1qtYGvZwJSVIiVqwsDXDlnDRdR5hTYXvB+6A+SyCmJXsqBve115IESea/VTaZU4IqegBCfINVb8f9QVEZ7VGnHJbqfAaB4eGh/+HDf5yoDyGKvnQ6XnFTwu40mu+lb5ox77KEpi8LuLv3X9iXPc+Z97S/Q0il1/6x3nj04JR3FjEoVnIcW1djRlBpXRaWLWalRFSRR5g3/OamzktWlahnIaEzYBWmpzUo8FBpScbyrXHnyn3pXXQgL0PDl7dauaOCSZJD8= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:PAXPR04MB8989.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(1800799015)(7416005)(376005);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?NTN6dzg5cmpVZHF3eWM2VTA2UllyQ01CNStMcHZYaDFkaXhZZFFhSzR1Mlkz?= =?utf-8?B?RERMTWlnTHJOYmM2V0phV1RqQVVSQWlrcjVJQklFTCs4eFduTWFIdHhFYWJP?= =?utf-8?B?UzVtMHdCNDZZV0VZNFl4bHBjSmdPdENlMUNrdGVRU1pZRWU3TVA3N2RCbU1l?= =?utf-8?B?eHdvZ3pZRVlQakduQkhqQTZEUnVjek9FYWZraVZOL2ttczVTMGMzSkJNMERu?= =?utf-8?B?eklydnZhYWI4UXBVZS9XWUp6WUhuRDJYTURibytreHVIem5SaE1FNmZWN2sw?= =?utf-8?B?cTVUc1hpckttZHV1VnJVRFMwTXFjbEdvQmlWV0tJT3ZsNURvQTJXeU5iRmdU?= =?utf-8?B?VGZCVWRnMyt6ZnlSSjFqdG5BUU9TOW5Qa09rQno4OE5xQ3dVNW9ZY1ZHVkta?= =?utf-8?B?akVIa1V6U0RMR0pwOURoK1lOZ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Id: 48bd102b-5909-41c5-00a1-08dc4449b586 X-MS-Exchange-CrossTenant-AuthSource: PAXPR04MB8989.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 14 Mar 2024 17:10:54.9657 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 2a35d8fd-574d-48e3-927c-8c398e225a01 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: OehxWiFxaBNFccW1Ag22wVGbM9C+twf9Ytj7ITxQ5AbPek++9o3kTaaa1PN2He26cr75DYhDpjI6OyfpvevzDA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PA1PR04MB10177 Le 14/03/2024 à 17:10, Brett Creeley a écrit : [...] > If this is how the max_mtu is determined, does it make sense to set this > before registering the netdev, i.e. netdev->max_mtu in > i40e_config_netdev()? The absolute max is properly set but I think that's only true if we ensure the value of the MFS. So if with another patch to set the MFS to the right value when asking a bigger MTU, having this value makes sense this is the absolute max for this device. Erwan,