From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm0-f50.google.com (mail-wm0-f50.google.com [74.125.82.50]) by dpdk.org (Postfix) with ESMTP id 76B8937A6 for ; Wed, 10 Feb 2016 11:53:54 +0100 (CET) Received: by mail-wm0-f50.google.com with SMTP id p63so20880162wmp.1 for ; Wed, 10 Feb 2016 02:53:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=6wind-com.20150623.gappssmtp.com; s=20150623; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; bh=/WJR8yMlWZxtrG7ozVMzoKcFpSZCjcqTgYRE/Fa7YVw=; b=d7+lQve0dT9vQyu39ikQX5Fn1mILA1Sm+3QsF1kDzu9PgwMs/LujA3FtoH3SL04vLU QCZ4bHuGw+8FEh4Vr++Cw0Ga+WNopXPdkt38cEFj7851Me3cbL1dpecA25JnWyBQCQqP TR43CPibRAxrOQsvzHStiURXivqTTqImV22TpEz0brpE/ZpXbQ9ivLWSt6Xh4ZDYTxGM jqmGNcGcdntjP0PnTgaaOg7SjdxYAENQbp3XPKH9xBaL3Mxn2u7OJWmf4weXzRMsXoKg F0oeahLTS2VXvBMWJYmnLLzksWja7+zWFrDZ6ehwd6kdti7ZXzAd7yJqxBeycYaYUcGv ED2g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:message-id:date:from:user-agent:mime-version:to :subject:references:in-reply-to:content-type :content-transfer-encoding; bh=/WJR8yMlWZxtrG7ozVMzoKcFpSZCjcqTgYRE/Fa7YVw=; b=UWNNCpJAH4QuR4fnuCPBC9sy0scJeIi9LjO/XW99Pm9UZf918ZK2IzVFK48XUJs8Jq ACIHHoUWiBvbyo8FexJobsGfEgh1Ja4ZVNTAye45ZfObzWCgUAugjLtBzXARxShwrNW9 28rLyCj/+KLxu0sBanSnrjTfW6SMRR1YkGvU38DHWZ+OGFj5XYr9ieMN+mNxij+QURV0 qD/fdgXhOpUluXnWVG0rIhypAeWFmPyTqoZwvWCyaLD8Jy0FSiUDHKwbMV8Vws0Hcoub hIhCDznn7hVA18fAGeVP3NWgER0SDD7lCrUJ7LWsNsFmi9oHAD5Ug4GEmtEMKol43WIO TAWw== X-Gm-Message-State: AG10YOQxB88UNmN5ed0jn0Jgq0qAZeCup4C6nZVfIcbmnMge7dxDrQ3it546hMS2vzep78Xz X-Received: by 10.194.85.161 with SMTP id i1mr43920149wjz.95.1455101634304; Wed, 10 Feb 2016 02:53:54 -0800 (PST) Received: from [10.16.0.205] (guy78-3-82-239-227-177.fbx.proxad.net. [82.239.227.177]) by smtp.gmail.com with ESMTPSA id q129sm2858784wmd.14.2016.02.10.02.53.53 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 10 Feb 2016 02:53:53 -0800 (PST) Message-ID: <56BB16B3.2040003@6wind.com> Date: Wed, 10 Feb 2016 11:53:39 +0100 From: Julien Meunier User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Icedove/31.8.0 MIME-Version: 1.0 To: "Zhu, Heqing" , "Zhang, Helin" , "dev@dpdk.org" References: <56BA1561.3060201@6wind.com> In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [dpdk-dev] i40e: cannot change mtu to enable jumbo frame X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 10 Feb 2016 10:53:54 -0000 On 02/09/2016 08:05 PM, Zhu, Heqing wrote: > Helin is still in Chinese New Year Vacation. Will the below command option help ? > > 4.5.9. port config - max-pkt-len > Set the maximum packet length: > > testpmd> port config all max-pkt-len (value) > This is equivalent to the --max-pkt-len command-line option. > > > -----Original Message----- > From: dev [mailto:dev-bounces@dpdk.org] On Behalf Of Julien Meunier > Sent: Tuesday, February 9, 2016 9:36 AM > To: Zhang, Helin ; dev@dpdk.org > Subject: [dpdk-dev] i40e: cannot change mtu to enable jumbo frame > > Hello Helin, > > I tried to send jumbo frames to a i40e card. However, I observed that all frames are dropped. Moreover, set_mtu function is not implemented on i40e PMD. > > > testpmd --log-level 8 --huge-dir=/mnt/huge -n 4 -l 2,18 --socket-mem > 1024,1024 -w 0000:02:00.0 -w 0000:02:00.2 -- -i --nb-cores=1 > --nb-ports=2 --total-num-mbufs=65536 > > ============= > Configuration > ============= > > +-----------+ +-------------+ > | | | | > | tgen | | | > | +----------+ port 0 | > | | | | > | | | | > | | | | > | | | | > | +----------+ port 1 | > | | | | > +-----------+ +-------------+ > > DPDK: DPDK-v2.2 > > ========== > MTU = 1500 > ========== > Packet sent from a tgen > > p = Ether / IP / UDP / Raw(MTU + HDR(Ethernet)- HDR(IP) - HDR(UDP)) > len(p) = 1514 > > testpmd> start > PMD: i40e_rxd_to_vlan_tci(): Mbuf vlan_tci: 0, vlan_tci_outer: 0 > testpmd> stop > Telling cores to stop... > Waiting for lcores to finish... > PMD: i40e_update_vsi_stats(): *** VSI[13] stats start *** > PMD: i40e_update_vsi_stats(): rx_bytes: 1518 > PMD: i40e_update_vsi_stats(): rx_unicast: 1 > PMD: i40e_update_vsi_stats(): *** VSI[13] stats end *** > PMD: i40e_dev_stats_get(): *** PF stats start *** > PMD: i40e_dev_stats_get(): rx_bytes: 1514 > PMD: i40e_dev_stats_get(): rx_unicast: 1 > PMD: i40e_dev_stats_get(): rx_unknown_protocol: 1 > PMD: i40e_dev_stats_get(): rx_size_1522: 1 > PMD: i40e_dev_stats_get(): *** PF stats end *** > > -------------- Forward statistics for port 0 -------------- > RX-packets: 1 RX-dropped: 0 RX-total: 1 > TX-packets: 0 TX-dropped: 0 TX-total: 0 > > ---------------------------------------------------------------------------- > PMD: i40e_update_vsi_stats(): *** VSI[14] stats start *** > PMD: i40e_update_vsi_stats(): tx_bytes: 1514 > PMD: i40e_update_vsi_stats(): tx_unicast: 1 > PMD: i40e_update_vsi_stats(): *** VSI[14] stats end *** > PMD: i40e_dev_stats_get(): *** PF stats start *** > PMD: i40e_dev_stats_get(): tx_bytes: 1514 > PMD: i40e_dev_stats_get(): tx_unicast: 1 > PMD: i40e_dev_stats_get(): tx_size_1522: 1 > PMD: i40e_dev_stats_get(): *** PF stats end *** > > -------------- Forward statistics for port 1 -------------- > RX-packets: 0 RX-dropped: 0 RX-total: 0 > TX-packets: 1 TX-dropped: 0 TX-total: 1 > > ---------------------------------------------------------------------------- > > +++++ Accumulated forward statistics for all ports+++++ > RX-packets: 1 RX-dropped: 0 RX-total: 1 > TX-packets: 1 TX-dropped: 0 TX-total: 1 > > ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ > > => OK > > ========== > MTU = 1600 > ========== > Packet sent > > p = Ether / IP / UDP / Raw(MTU + HDR(Ethernet)- HDR(IP) - HDR(UDP)) > len(p) = 1614 > > testpmd> port config mtu 0 1600 > rte_eth_dev_set_mtu: Function not supported Set MTU failed. diag=-95 > testpmd> port config mtu 1 1600 > rte_eth_dev_set_mtu: Function not supported Set MTU failed. diag=-95 > testpmd> start > testpmd> stop > Telling cores to stop... > Waiting for lcores to finish... > PMD: i40e_update_vsi_stats(): *** VSI[13] stats start *** > PMD: i40e_update_vsi_stats(): rx_bytes: 1618 > PMD: i40e_update_vsi_stats(): rx_unicast: 1 > PMD: i40e_update_vsi_stats(): *** VSI[13] stats end *** > PMD: i40e_dev_stats_get(): *** PF stats start *** > PMD: i40e_dev_stats_get(): rx_bytes: 1614 > PMD: i40e_dev_stats_get(): rx_unicast: 1 > PMD: i40e_dev_stats_get(): rx_unknown_protocol: 1 > PMD: i40e_dev_stats_get(): rx_size_big: 1 > PMD: i40e_dev_stats_get(): *** PF stats end *** > > -------------- Forward statistics for port 0 -------------- > RX-packets: 1 RX-dropped: 0 RX-total: 1 > TX-packets: 0 TX-dropped: 0 TX-total: 0 > > ---------------------------------------------------------------------------- > PMD: i40e_update_vsi_stats(): *** VSI[14] stats start *** > PMD: i40e_update_vsi_stats(): tx_bytes: 0 > PMD: i40e_update_vsi_stats(): tx_unicast: 0 > PMD: i40e_update_vsi_stats(): *** VSI[14] stats end *** > PMD: i40e_dev_stats_get(): *** PF stats start *** > PMD: i40e_dev_stats_get(): tx_bytes: 0 > PMD: i40e_dev_stats_get(): tx_unicast: 0 > PMD: i40e_dev_stats_get(): tx_size_big: 0 > PMD: i40e_dev_stats_get(): *** PF stats end *** > > -------------- Forward statistics for port 1 -------------- > RX-packets: 0 RX-dropped: 0 RX-total: 0 > TX-packets: 0 TX-dropped: 0 TX-total: 0 > > ---------------------------------------------------------------------------- > > +++++ Accumulated forward statistics for all ports+++++ > RX-packets: 1 RX-dropped: 0 RX-total: 1 > TX-packets: 0 TX-dropped: 0 TX-total: 0 > > ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ > > Done. > > => Frame correctly received on port 0, but never forwarded or xmit on port 1. > > Does a mtu_set function will be developed soon in order to support jumbo frame ? > > Regards, > > -- > Julien MEUNIER > 6WIND > On testpmd, this command enables jumbo frame, you are right. However, all ports need to be stopped: jumbo frame cannot be enabled at runtime through the DPDK API on i40e PMD. Other Intel PMD, like ixgbe, support this feature with the set_mtu API. Why not on i40e ? Regards, -- Julien MEUNIER 6WIND