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 C8A9B432D9; Wed, 8 Nov 2023 18:23:37 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 8E88F402BB; Wed, 8 Nov 2023 18:23:37 +0100 (CET) Received: from NAM12-DM6-obe.outbound.protection.outlook.com (mail-dm6nam12on2063.outbound.protection.outlook.com [40.107.243.63]) by mails.dpdk.org (Postfix) with ESMTP id B526E402A7 for ; Wed, 8 Nov 2023 18:23:35 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=KOgCCVLBPHTxsNyLRkB8GYp/rfDuROPvzxlVvspgOuzqMMYr2AzLhaGr2xRXvZgSr2MpFq6aUH4y3bCet9dH46yKWxbree0uyCIEZLWJ91/YCJG8/OoV4fxuNC7sq0qZXL70Fa1hAwSKgqTDa7fVLRG/4KCQxikdxKjGnoR2V8tb4P4u4/Ddi0MvgV0oMdDPbC0iMI0rCAjL2HQOA7mF6m4xCL/SdDcagdwyyX7i5xuhG9jW2s62PRwj1j2wVJUYBY9ii4K8E7wT0B+kF6KZTwaKMlzzGiY9vOEXolBephliegoCeQcOlnWuMe/JZEd2dCl7Yb+bfW4sCiuKv0xHeA== 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=o5NUmpNhDk2oTFL613uuPxEwQ3rjpi9QH+uEu2jP1uA=; b=WURNGicFR0PyNiE19Q/kSt49eOvLWhNoyOetbJh3dBSFU6a9pbKSJ6IAyXd3iAI9ucgjRtwW9jrLQ+2LnjMT1mGJxpQKmktUn+ITE6iIoc3VxDLZwlNFqg0RUyEVbHBNBj00jLc/KK5IPjlaPtqFxKD0E0Ji4mKJ4jYeEVAi6Us58L2xo9AT0fiu5OgqsNws+GGO+XPj0kLlq7xj3RXFfFgXR7hFidWcjUF6BG+dLupNlYvxoXVBsCa3uqf7GHj83ZqowiT5MGJ0WpIHkaZgWeuikvF3HG1fwzEQ9VQO+RM+Ah482OC0bYpkS1RrCc83Du3o8Sz0u/Dtd2wZXdhplQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=amd.com; dmarc=pass action=none header.from=amd.com; dkim=pass header.d=amd.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amd.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=o5NUmpNhDk2oTFL613uuPxEwQ3rjpi9QH+uEu2jP1uA=; b=qvMc+IB9S3WOcq6+Er1WNi0w4hTS0nU2NwJBI1FA9g0QYJ23xtHhpjdiQZ7bHsCznxHgoTRGjQNeTHkBCPwGp9tNXDVAJAKR9QlKAZrZDW/4wE4xX3/afshhS0xW3wcyS85b2Ma1LsDu7dJhlx9EDSFJF9YNACygpPeQD20kY90= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=amd.com; Received: from CH2PR12MB4294.namprd12.prod.outlook.com (2603:10b6:610:a9::11) by DS0PR12MB8478.namprd12.prod.outlook.com (2603:10b6:8:15a::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6954.28; Wed, 8 Nov 2023 17:23:31 +0000 Received: from CH2PR12MB4294.namprd12.prod.outlook.com ([fe80::2569:edb2:670f:816f]) by CH2PR12MB4294.namprd12.prod.outlook.com ([fe80::2569:edb2:670f:816f%6]) with mapi id 15.20.6954.029; Wed, 8 Nov 2023 17:23:31 +0000 Message-ID: <4fc89af2-45e2-4588-9c3c-4e3c5833302b@amd.com> Date: Wed, 8 Nov 2023 17:23:09 +0000 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v2] ethdev: account for smaller MTU when setting default Content-Language: en-US To: Ajit Khaparde , Andrew Rybchenko Cc: Joshua Washington , Thomas Monjalon , Hyong Youb Kim , Rosen Xu , Somnath Kotur , Huisong Li , dev@dpdk.org, Rushil Gupta References: <20231108060535.1249507-1-joshwash@google.com> From: Ferruh Yigit Autocrypt: addr=ferruh.yigit@amd.com; keydata= xsFNBGJDD3EBEAC/M7Tk/DfQSmP1K96vyzdhfSBzlCaGtcxNXorq4fALruqVsD3oi0yfyEz9 4YN8x7py0o9EL8ZdpOX0skc0AMCDAaw033uWhCn0GLMeGRKUbfOAPvL6ecSDvGD7CJIO9j0J eZUvasBgPdM/435PEr9DmC6Ggzdzt8IuG4PoLi5jpFSfcqxZFCCxLUDEo/w0nuguk2FTuYJg B2zEZ4JTBZrw7hIHiFh8D8hr6YA6a5uTofq1tr+l048lbtdFUl8TR0aIExVzE4Z8qKZlcE+9 RQaewjK5Al1jLE4sHdmd3GN+IvgDF3D/fLsi25SKJDeGSdeHkOmaX0qGeM4WKIfU6iARRCiQ N3AmBIxZ/A7UXBKLaOyZ+/i3sE6Wb53nrO4i8+0K2Qwyh6LjTeiJAIjYKN43ppxz3DaI+QwQ vI+uyHr4Gg0Da9EPPz/YyKauSeOZCfCB5gIfICO0j6x0SCl8uQ2nLpjxcZkf0gjcwUzP3h+S 3x6NfDji9YEij0zczW/dcSpGgZ6vsFpPrtnP9ZXy6J53yp0kJtOJoOlkEFFdU2yCZnCDseum CoudmGLZVvS0/DzHDJejq+3kK3FDGktZBOxZIIpal+nFqS7lVgOZc4+huVv3jyhzoAUOEyXA XK5j6o7g8STUY+z33QNnHpdLvecMwuzmvqy0jR54yAbZ64mB9QARAQABzSNGZXJydWggWWln aXQgPGZlcnJ1aC55aWdpdEBhbWQuY29tPsLBlwQTAQgAQQIbAwULCQgHAgYVCgkICwIEFgID AQIeAQIXgA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LKBH dZUMTzME5PFCXJIZ83qkZQ795MTe2YScp9dIV7fsS5tpDwIs7BZNVM1l3NAdK+DLHqNxKuyO 8Zk= In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-ClientProxiedBy: FR4P281CA0292.DEUP281.PROD.OUTLOOK.COM (2603:10a6:d10:e7::8) To CH2PR12MB4294.namprd12.prod.outlook.com (2603:10b6:610:a9::11) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CH2PR12MB4294:EE_|DS0PR12MB8478:EE_ X-MS-Office365-Filtering-Correlation-Id: 36b60714-2454-40ef-3def-08dbe07f6dc2 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: VQUhByZS2AfC019j29+xItu8o3FX6lIYWko1egT/7Y4UVaO6/BSzbt0ALMyKV5FqzX2IR8Mhcfy/T8HYt+QUPqxDpUEmJC3Pw7rvQr/MbO17Ws43MZDlRJ/n0tpx9YByimg09wLAObr+PzFH84qLRLoMCVkJTZnWg2WBKv9Or8dmiHc1fZ1370XF2QL3ycrUkJA5YQydevR/ygEpoMDwsCygNPQ7XlsgbsnEoeVHBaexdIxyzlIUoJX9ekdJ0sB0QDh/XcSA38zVQKJ6fSIFscJXQVRMs2UOooBK7C9sz98pCGCXlef8VV4z2c/q8w70VEF3QRJuw4tPxtkq73oZ8gUVe8kZCG+gGDpAXUJBjGyh7t7lHTbdfbKmWHj/J9ww1PjfxHC3OUa6VB7nbR4k62Q5LTFxCFh+ieGJESWt5XRIS8HduFe6quF+bArca7N2ni0L/SWg2PLqZRJrEnOD68rnnBWlMQG/i5ky+cFD/05zuj3ISIYg9YO1xCdz0DITWqYWyqpX65Elm/7ndtjf5fvnVDzhbROdciaDIB10xk4pxFt/hrNU1lTpgO1G3V6WmgIrqj6VqCMyO6g88vD2WoGsfDUgoXgaFq0/2G4zRZp2tLk+G1rr8EjUItWpMwk9uIgKqaVjlDT9zTlh/3aqKg== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:CH2PR12MB4294.namprd12.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230031)(39860400002)(366004)(136003)(396003)(376002)(346002)(230922051799003)(186009)(451199024)(64100799003)(1800799009)(2906002)(53546011)(2616005)(6666004)(6512007)(478600001)(6486002)(6506007)(83380400001)(4326008)(66556008)(26005)(5660300002)(4744005)(54906003)(66946007)(41300700001)(66476007)(7416002)(8676002)(8936002)(44832011)(110136005)(316002)(38100700002)(36756003)(86362001)(31696002)(15650500001)(31686004)(43740500002)(45980500001); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?WW96SXBTUWJCU2MwalJ3YXh4SXpOcmY5MzJVTlpmSkh5U0VCN3BGMHd1S1B1?= =?utf-8?B?WjRPb21tWlNZSzN0NThkbmpVSXErREFlMDBpK1ZxRkFqRythZFMvREZ1ZTFq?= =?utf-8?B?dllOYXJyajFwVTk5UlBTSE5KWGlWQXd0a1VqUFhRNXk0Rm1hTWZGQzFsdVVP?= =?utf-8?B?T0hyeWpDVVUzNWNVcmV1bVROVHI3YS9xQUtGTnA3bmtHSXdTK29yNDFVb1F2?= =?utf-8?B?VXlmYndkMTRLeDUrSVIyRTc3MUNOQlVGckZhRjBmcWR1eElwS3Rmcll0R1Bh?= =?utf-8?B?allhQUhKUnhnZmlmSGRNYW5teGViT05MYWdub2hzU0k0bWxmRXo2VTMxSm00?= =?utf-8?B?UStzQzRudFlrU3FHZi95bnFWSGdCamY3Nm5na3Z2RDB4c1ZzUldiRTdzWVo5?= =?utf-8?B?bmZNRW9uMEJudFZmVEhoOXhmWW9vQmlYV1AxcTRvWTNuWkt3ajVUWVl1YjhT?= =?utf-8?B?YlIwQXRZZDY2aHQ4MnYvbD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QzZkhQN3A5SEY1Z2s2RHYxVVl0d0M0Vk9NSWRqZnpFNHZBbHQ2U1RtNDZI?= =?utf-8?B?WGtkZjVkeUJ1Ryt4UWFWV2xWazJyR2k1S0pRdmVIRTR3KzJkTzM3YkRYTGZ2?= =?utf-8?B?eEI3bzlFYUhOWlJ1aE0zcEsrSWVIU0V6ZlhmU0FFQnd3RDBoRG5ld3RJTDJE?= =?utf-8?B?cm5jWHBETE1CakJzdC9EWFRnSklVbE9lL1Ivb0o0RWF1cWxGazI1Z096YmdG?= =?utf-8?B?WjNzdlQyZ3o2YVlnZFZDQXBNT3p0TzFlSktJUUJxZzhPb1puNFdiQ3JSeENz?= =?utf-8?B?c2xxUUF6ZjlYWTdqQ0pyYVUzVWVpdER6TkgyRUxudURRbEFneVJNVmtJUHh5?= =?utf-8?B?YTBLNE1qTGpmSW5ZRFlUZzZrUjN3WWJzcllGWjl0YnJvSWtqSE56NlJ5bFVN?= =?utf-8?B?S3N4NEZlMk81SHRWaE1EdGRiQUdwUlQ0aGF1a1NtZGsxL1NmZjg2TlBNTVNY?= =?utf-8?B?VDZWZDYrRWdtUDBUWE9ObTZhTWZwUDRFZVRhVUVLMVFYT1ZkVjRCQ01VbU1a?= =?utf-8?B?d0JaZWgwZDlnK0p4MXN5Y2ZpVTI0SVUzbFVpRWxlMHkyRU8yNTRpbzQrUE1k?= =?utf-8?B?T2c3RW9VZXdCRDhpTmhoT2VSWGxJOGR3MGYyRDFxdnhVMXhOTmt5RGdGYTB1?= =?utf-8?B?UUZGMko2c1dGOUdEclF4SzF6WFlsZ3dyZ1JYRGZIWlVvSVlFTXFEM3ZyNjRi?= =?utf-8?Q?EQ+I=3D?= X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-Network-Message-Id: 36b60714-2454-40ef-3def-08dbe07f6dc2 X-MS-Exchange-CrossTenant-AuthSource: CH2PR12MB4294.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 08 Nov 2023 17:23:31.2593 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: uLSTjzDczV0Fg/kOek3L6mwLY5a6f6zYt246btYPUDdXYYDVTVMwW1UojHicVQz7 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DS0PR12MB8478 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 11/8/2023 5:05 PM, Ajit Khaparde wrote: > On Wed, Nov 8, 2023 at 7:07 AM Andrew Rybchenko > wrote: >> >> On 11/8/23 09:05, Joshua Washington wrote: >>> Currently, if not specified in the user configuration, >>> rte_eth_dev_configure() sets the MTU of the device to RTE_EHTER_MTU. >>> This value could potentially be larger than the MTU that the device >>> supports. This change updates the configured MTU to be the minimum of >>> the maximum suported MTU and the default DPDK MTU. >>> >>> Fixes: 1bb4a528c4 ("ethdev: fix max Rx packet length") >>> Signed-off-by: Joshua Washington >>> Signed-off-by: Rushil Gupta >> >> Acked-by: Andrew Rybchenko > > Acked-by: Ajit Khaparde > Applied to dpdk-next-net/main, thanks.