From mboxrd@z Thu Jan 1 00:00:00 1970 From: Chas Williams <3chas3@gmail.com> Subject: MTU vs MRU Date: Tue, 25 Sep 2018 20:38:34 -0400 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit To: dev@dpdk.org Return-path: Received: from mail-qt1-f170.google.com (mail-qt1-f170.google.com [209.85.160.170]) by dpdk.org (Postfix) with ESMTP id 86A4E7EC7 for ; Wed, 26 Sep 2018 02:38:36 +0200 (CEST) Received: by mail-qt1-f170.google.com with SMTP id l16-v6so15000618qtq.10 for ; Tue, 25 Sep 2018 17:38:36 -0700 (PDT) Received: from [192.168.1.10] (pool-173-79-169-217.washdc.fios.verizon.net. [173.79.169.217]) by smtp.gmail.com with ESMTPSA id q18-v6sm2468841qtk.57.2018.09.25.17.38.34 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 25 Sep 2018 17:38:34 -0700 (PDT) Content-Language: en-US List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" What does (or should) rte_eth_dev_set_mtu() do? The documentation says "Change the MTU of an Ethernet device." At least of few of the PMDs do something similar to the following: eth_em_infos_get(dev, &dev_info); frame_size = mtu + ETHER_HDR_LEN + ETHER_CRC_LEN + ... /* check that mtu is within the allowed range */ if ((mtu < ETHER_MIN_MTU) || (frame_size > dev_info.max_rx_pktlen)) return -EINVAL; /* update max frame size */ dev->data->dev_conf.rxmode.max_rx_pkt_len = frame_size; What does max_rx_pkt_len mean here? MRU or is pkt here really frame?