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 EA23EA0032; Fri, 1 Oct 2021 17:08:03 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 83F974118F; Fri, 1 Oct 2021 17:08:03 +0200 (CEST) Received: from mail-pj1-f53.google.com (mail-pj1-f53.google.com [209.85.216.53]) by mails.dpdk.org (Postfix) with ESMTP id EFA4D4118A for ; Fri, 1 Oct 2021 17:08:01 +0200 (CEST) Received: by mail-pj1-f53.google.com with SMTP id qe4-20020a17090b4f8400b0019f663cfcd1so3082703pjb.1 for ; Fri, 01 Oct 2021 08:08:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20210112.gappssmtp.com; s=20210112; h=date:from:to:cc:subject:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=EvqL5FzJpMtf7GAMymo7q5g+7T9A0Dn+EkmLvs4Aq5k=; b=LlGju+9ZdbFJSR1FxZIyjM6S5L1DYGy3kB4HdYiwixxPkPB5LdIoLnayqGhL0KYC1G X6E93kidLB5M/hvDzDPkWaxhYCpHW6jxM0EUnJc1uZYh4C+V0HZsUjmPJSRNOPQtwtx6 HJyNinC4xtOD4sLvW/T9LB3CzLiv3EFUR5wwpMxaaf2wUPiwODiBZxgQYn2eWtLW+Rub OHVj+jwq4Fm7LT5pOMBkY0nhSDoPd9FlvrH/asvTNDvbPNIUBETuDD6AIKhGJsZpuF4O OTaQZ3RgHUw80D3/IcjOnNo6OKtj+o7+B5wgPx+uXoBnV/OdGbiBLeIIorbumf9AMFVj EaBw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=EvqL5FzJpMtf7GAMymo7q5g+7T9A0Dn+EkmLvs4Aq5k=; b=Gc0skPnHrqM8qOKmdXe7icbUKc3AU73RuVSE7QsWvvc7QxoMwVKsavLyWpRO2noWzl I9tE2v8zWURXcaX2+J1FBeJABPSM4hswxslInVeynNxCy9ezzxGShaV2igdstlsLXOq8 PKOQyg14CyFXIwyeHNoAQ69WLAmBEZZl7woRF/OUbi3rPvSYpE5dwnwTELhjpArjg8Gl PLxtE/mOhFlcm9mDm4buT4TZw7x7w9KaGuGmQzgwFib1+vEYpWdmy67ZMLH5vJPWXt3I 9Q6iVQw0DDp9Db5zbFlLk8KP31L7btNrnqk5qg96gBfNHUZwSG7LnF9xFRUWmj39eBw1 OfxA== X-Gm-Message-State: AOAM533iPwdcBRYhpZMB9mx9ilp1vOWnNZhz+hIhS1sEvSoUTOSM4P2m Uka+SN28Qk9PBdifZj6ctQCyPA== X-Google-Smtp-Source: ABdhPJwPQQifKlz2wvBCujKshUSwAncAjAyPtjVRK4odFCEZZOglSDZPBRRsyTJaN3Vo/47yWlxLMQ== X-Received: by 2002:a17:90b:3149:: with SMTP id ip9mr9140086pjb.13.1633100880808; Fri, 01 Oct 2021 08:08:00 -0700 (PDT) Received: from hermes.local (204-195-33-123.wavecable.com. [204.195.33.123]) by smtp.gmail.com with ESMTPSA id u6sm6335035pgr.3.2021.10.01.08.07.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 01 Oct 2021 08:08:00 -0700 (PDT) Date: Fri, 1 Oct 2021 08:07:55 -0700 From: Stephen Hemminger To: Ferruh Yigit 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 , dev@dpdk.org Message-ID: <20211001080755.21647298@hermes.local> In-Reply-To: <20211001143624.3744505-1-ferruh.yigit@intel.com> References: <20210722172113.3236450-1-ferruh.yigit@intel.com> <20211001143624.3744505-1-ferruh.yigit@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit 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 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.