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 93C50A0C4C; Tue, 5 Oct 2021 18:47:47 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 5F7CD413DD; Tue, 5 Oct 2021 18:47:47 +0200 (CEST) Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by mails.dpdk.org (Postfix) with ESMTP id 309684138A for ; Tue, 5 Oct 2021 18:47:45 +0200 (CEST) X-IronPort-AV: E=McAfee;i="6200,9189,10128"; a="225694016" X-IronPort-AV: E=Sophos;i="5.85,349,1624345200"; d="scan'208";a="225694016" Received: from orsmga005.jf.intel.com ([10.7.209.41]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 05 Oct 2021 09:47:22 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.85,349,1624345200"; d="scan'208";a="656652834" Received: from fmsmsx605.amr.corp.intel.com ([10.18.126.85]) by orsmga005.jf.intel.com with ESMTP; 05 Oct 2021 09:47:20 -0700 Received: from fmsmsx610.amr.corp.intel.com (10.18.126.90) by fmsmsx605.amr.corp.intel.com (10.18.126.85) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2242.12; Tue, 5 Oct 2021 09:47:19 -0700 Received: from fmsmsx612.amr.corp.intel.com (10.18.126.92) 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.2242.12; Tue, 5 Oct 2021 09:47:19 -0700 Received: from FMSEDG603.ED.cps.intel.com (10.1.192.133) by fmsmsx612.amr.corp.intel.com (10.18.126.92) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2242.12 via Frontend Transport; Tue, 5 Oct 2021 09:47:19 -0700 Received: from NAM10-DM6-obe.outbound.protection.outlook.com (104.47.58.106) 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.2242.12; Tue, 5 Oct 2021 09:47:18 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=PmdS0q0Pvqk1KXUoDPwf49yOW9pp+pTcdFsE7H2hphHmf1IBZz8G+b5G/hDIljN1UR1VRx8VfT+2MSLxmzlPH1JBlZs+nJ1PmjZCL0Qh/4msUKn0AMbw1mXXeYT0kTH3B5CluuuBI76Q9/DleNKPFEGQE/UtH9Vbop895zQvp6N+80nHYzV5gNDEav7CfrAfm/E6nQdQu6+YSSDh/u61fZEiFS+rAjjinfW3TvdV7HwUQyNIJS51qQVfQOZpj0Um8JsoBTnuYtojl0DSkf4IdatmyaspvrHkoeBgE33kHCvPYEsqrY0ds0GNODstyuoLpT0uqcJY3fsdJX6+vmkk7w== 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=tztnAz0NCrIQhteuUxkM6E0kM8hLMujVxdo9Cj63rwQ=; b=heRA2tB2egnQMJIlcGUEYFCEowBkkSJF8wuh90GMY2G8/ZYuaza1xeQOBySVhT8QCLQk62oMUImlL6+9SqFOXULGeg5TZwzLMdoDSSUlfsVTmehyEdQ/KLxSN+TqcGLSq0Mwjso2Heu1eNdjDk54k/U+h+qIbPnaLS30XMBFBdA9pTDn1k274VY97JFfDGPOmerwC3N+DmsvlC9kX4lZoLxFrxV+4jMvYaG7sZbA1nM0FOMuf90nF3X85G4roGZgZ3K42VkJeBstgaVavg39YF+BhNH/qM1yDfgjz8YrFCcED350APx34oF/X2iFB2p2DZmHzr9WEKfGvYVG9qAiRw== 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 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=intel.onmicrosoft.com; s=selector2-intel-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=tztnAz0NCrIQhteuUxkM6E0kM8hLMujVxdo9Cj63rwQ=; b=fZ1u5UC1QL6koJx5EOZXvLAiBRS4w9ZJXz4bguNeJ82vKcNHqYxWcFak3iXnfPpLfJqxZI3cjPuAF9fNz71dhoHBUWYhSj+y4MrCvkKYpMMDycBwL3cOBVjwM+vB8gqQPCrHspgng95DTrSxaIjedhqtgbQ81d674VgVN4ZMbQI= Authentication-Results: networkplumber.org; dkim=none (message not signed) header.d=none;networkplumber.org; dmarc=none action=none header.from=intel.com; Received: from PH0PR11MB5000.namprd11.prod.outlook.com (2603:10b6:510:41::19) by PH0PR11MB4918.namprd11.prod.outlook.com (2603:10b6:510:31::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4566.15; Tue, 5 Oct 2021 16:47:06 +0000 Received: from PH0PR11MB5000.namprd11.prod.outlook.com ([fe80::747b:3a08:d1ec:31fc]) by PH0PR11MB5000.namprd11.prod.outlook.com ([fe80::747b:3a08:d1ec:31fc%4]) with mapi id 15.20.4566.022; Tue, 5 Oct 2021 16:47:06 +0000 Message-ID: <3094d047-fe1d-ee27-fa3c-dd0efce9be03@intel.com> Date: Tue, 5 Oct 2021 17:46:48 +0100 Content-Language: en-US To: Stephen Hemminger CC: Andrew Rybchenko , Thomas Monjalon , Jerin Jacob , Xiaoyun Li , Chas Williams , "Min Hu (Connor)" , Hemant Agrawal , Sachin Saxena , Qi Zhang , Xiao Wang , Matan Azrad , Viacheslav Ovsiienko , Harman Kalra , Maciej Czekaj , Ray Kinsella , Bernard Iremonger , Konstantin Ananyev , Kiran Kumar K , Nithin Dabilpuram , David Hunt , John McNamara , "Bruce Richardson" , Igor Russkikh , Steven Webster , "Matt Peters" , Somalapuram Amaranath , Rasesh Mody , Shahed Shaikh , Ajit Khaparde , "Somnath Kotur" , Sunil Kumar Kori , Satha Rao , Rahul Lakkireddy , Haiyue Wang , "Marcin Wojtas" , Michal Krawczyk , Shai Brandes , Evgeny Schemeilin , "Igor Chauskin" , Gagandeep Singh , John Daley , Hyong Youb Kim , Ziyang Xuan , Xiaoyun Wang , Guoyang Zhou , Yisen Zhuang , Lijun Ou , Beilei Xing , Jingjing Wu , Qiming Yang , Andrew Boyer , Rosen Xu , Shijith Thotton , Srisivasubramanian Srinivasan , Zyta Szpak , Liron Himi , Heinrich Kuhn , Devendra Singh Rawat , Keith Wiles , Jiawen Wu , Jian Wang , Maxime Coquelin , Chenbo Xia , "Nicolas Chautru" , Harry van Haaren , Cristian Dumitrescu , Radu Nicolau , Akhil Goyal , Tomasz Kantecki , Declan Doherty , "Pavan Nikhilesh" , Kirill Rybalchenko , Jasvinder Singh , References: <20210722172113.3236450-1-ferruh.yigit@intel.com> <20211001143624.3744505-1-ferruh.yigit@intel.com> <20211001080755.21647298@hermes.local> From: Ferruh Yigit X-User: ferruhy In-Reply-To: <20211001080755.21647298@hermes.local> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-ClientProxiedBy: DB6PR0301CA0097.eurprd03.prod.outlook.com (2603:10a6:6:30::44) To PH0PR11MB5000.namprd11.prod.outlook.com (2603:10b6:510:41::19) MIME-Version: 1.0 Received: from [192.168.0.206] (37.228.236.146) by DB6PR0301CA0097.eurprd03.prod.outlook.com (2603:10a6:6:30::44) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4587.18 via Frontend Transport; Tue, 5 Oct 2021 16:46:53 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: ceba35a3-241e-4955-23e9-08d9881fc3b5 X-MS-TrafficTypeDiagnostic: PH0PR11MB4918: X-LD-Processed: 46c98d88-e344-4ed4-8496-4ed7712e255d,ExtAddr X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:10000; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 7GZIUzqw9espVkj+rl7Eidswyv6uLchOKCRf/SaU0JQ1oOLjNz6MPcmEIoHn0swUS7ZKAAme0sOzGwlCGO0fzKX5CIhP2x0yihzHMkAlkfCpgrqP4WrZgixQ72S7/M44WXCdiC0uxgW4O4f2EtEIs7uCLQgVqjxVELnEC1ooN4zmgHxyf2HMFkKHtCoRyGUTS0x7MpcTZvawMmPFNPiaIpaLb5j4z2XIbKofM378tK3wkQddIjpmv+3FWIS3mKQnm/8oWzRfAhyxnW9dRVf/6BkILGzOnKxEmmgZb/zGoZ5ZnmiVp3oxTV24JNlKmhXGkjfPreJ51KrmbEXeGYTQ4zbCfCTaaGirUD0XdDNfyJt6xW7DjLkN3K0x9FOMcLgUGDvhl87hpYpqBxvldSNIepJiAzB8FPWcOpsjPekmG85MarN4JNUqLh5KqpN2VbhqtM/QhgQFNtO+um3NPnGDUR+CXByzAjW93MgiDzhHkZKxanQpqwrvfLAJRp+K/OTVh7y+bLPOmzkeNep7yFCeQhXz5UwOwvSVAKnARvxI0mh7tvbtXUvYBkXGAd/+b0+W/uB8J412DU19zycnAjOI+KVGIq6J5w5OSDjrTjNoub7eT+OTqYbpT5TBE2B7+ZOsgcKqp3OOKhfdYgZyuzsKRAD4wb5FFfs2P/9fl0U9KTlNRr46RXf+LvMYehiAgyNBBdFdPfkR/qm+gwm7UJZ1PQ== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:PH0PR11MB5000.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(366004)(6916009)(6486002)(5660300002)(26005)(16576012)(8936002)(7366002)(53546011)(4326008)(44832011)(8676002)(54906003)(2906002)(66476007)(7406005)(66946007)(66556008)(6666004)(316002)(2616005)(956004)(186003)(83380400001)(7416002)(508600001)(38100700002)(36756003)(86362001)(31696002)(31686004)(45980500001); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?NkNmQ2VDT3ZFVFpNcDhrZXgrRzZBSnZPTElLTFhlbk9Ia2UrRllVWmMySnYv?= =?utf-8?B?NHhwdFQ4T1ROd0Z5V2VsdkV1MzRDWDR3cklBUjlGc0pyNlZOQS82SkMrMERz?= =?utf-8?B?UzBnVDBPYXhvM2l4TXhrcVVBSXBRQ29tTE13a3p2YXVpOTc2NU9WTjFZQks3?= =?utf-8?B?b0JiYlVIQnRodUl4RTY0Ylo2akdEMk9MTnlnRU9YTEtYSGRHQ2lORXhOU3ZJ?= =?utf-8?B?eXZiODdFS29HeFZGLzZ2NTVRTWorN28rN0M0NXBuMFZ5NFgvUDh6cVZaQTNS?= =?utf-8?B?ckNrblY4Q1hPQUJxM01va2RJN2p5YzVkUHQ2bmNyYzMwdVRSSTdoTmYweWRI?= =?utf-8?B?dUxSTTM2Smg3YWdhUG5qMDgyTW0wemhneU42SVpQRU9NMkRORXdNOUtSaFRV?= =?utf-8?B?ZDFHYmZadjdTYW5KenJjenp2V3Y3eVpVQi9YUEZadS9QSC8vT2w3UDkwQU94?= =?utf-8?B?ei9GdTV0QlpsTDFsd3N5cG1EdWNSSXloTkZKTzJvbjIzR0h1SERZblpkVDBP?= =?utf-8?B?a3BBQTBjelRYR0RabnVsb2lkRjNFY2Vab3RSV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a2RmeVVQaDFWTEcyNVAyTVcxS0tPVEh2b1lLRU0ya0d4OHlz?= =?utf-8?B?eFFnSHdlVHVPNWJ4eHJGVHZtL1VzRFVRdnZLcU50eURWeGdia21lTS8wS2Z3?= =?utf-8?B?QkZ5WW1rL3hpK0lYelhYdEF2eWxtOHZLbjFqWFJ1VVlZMFJPVnlwWjNONHVv?= =?utf-8?B?MHNhcDN5MzZvR0YzRmFOdk1ydHZBbmhxUmJ4Rm96NUxCc01oUm94RmxKQkpz?= =?utf-8?B?ZGlmMmxsMjFPcWtWQWdrdzB5c1BJbThOeTU3MEJBam5xR3Zkc2M4MWdiSnI1?= =?utf-8?Q?i4PCXe3pr78B5p6eKiwobw98hDl7CuXi7wNt9/e?= X-MS-Exchange-CrossTenant-Network-Message-Id: ceba35a3-241e-4955-23e9-08d9881fc3b5 X-MS-Exchange-CrossTenant-AuthSource: PH0PR11MB5000.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 05 Oct 2021 16:47:06.3147 (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: mgJaFoOndwITOcawc1wRI1S2IcLFk6O2aE8gNDdhJWlxUAi66v4EOKyt7ZCOt9ynk87g5jhoxpXtt5QftmVK5A== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH0PR11MB4918 X-OriginatorOrg: intel.com Subject: Re: [dpdk-dev] [PATCH v3 1/6] ethdev: fix max Rx packet length 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 Sender: "dev" On 10/1/2021 4:07 PM, Stephen Hemminger wrote: > On Fri, 1 Oct 2021 15:36:18 +0100 > Ferruh Yigit wrote: > >> Other issues causing confusion is: >> * maximum transmission unit (MTU) is payload of the Ethernet frame. And >> 'max_rx_pkt_len' is the size of the Ethernet frame. Difference is >> Ethernet frame overhead, and this overhead may be different from >> device to device based on what device supports, like VLAN and QinQ. >> * 'max_rx_pkt_len' is only valid when application requested jumbo frame, >> which adds additional confusion and some APIs and PMDs already >> discards this documented behavior. >> * For the jumbo frame enabled case, 'max_rx_pkt_len' is an mandatory >> field, this adds configuration complexity for application. > > One other issue which DPDK inherits from Linux and BSD is that > MTU (Maximum Transmission Unit) is overloaded to mean MRU (Maximum Receive Unit). > > On Linux, network devices are allowed to receive packets of any size they > want. MTU is used as a hint about "you need to accept at least MTU size > packets on receive". So MRU >= MTU. > > In practice, and documentation, MRU and MTU are used synonymously. > Yes MTU is used to refer both MTU & MRU, same config value (MTU) is used to configure both. I don't know if there is a need to configure them separately, if there is we can address it in another patch.